在AfterScenario的方法,我想从表“示例”中的行方案大纲中,它获得的值,然后搜索数据库如何获取场景大纲示例表?
我知道,这可以通过使用Context.Scenario.Current
达到特定值...
Context.Scenario.Current[key]=value;
...但由于某些原因,我希望能够得到它以更简单的方式
这样的:
ScenarioContext.Current.Examples();
-----------情景--------------------------------
Scenario Outline: Create a Matter
Given I create matter "<matterName>"
Examples:
| matterName |
| TAXABLE |
----------后台-----------------------------------
[AfterScenario()]
public void After()
{
string table = ScenarioContext.Current.Examples();
}
什么是你的问题? – 2014-10-20 07:56:41