当我试图在故事文件下面运行时,声明" "执行两次,但我希望这次执行只发生一次,声明" 引用数据databasetable记录,其中sds id =和swift bic = "应该执行两次。
Scenario: Parametrised Scenarios Test
Given scenario parameter - swiftBic = JBEHAVEXXX
Given scenario parameter - receiverBic = JBEHAVEYYY
Given scenario parameter - extSdsId = 1111
Given scenario parameter - sdsId = 22222
Given reference data databasetable record <alias> with sds id = <sId> and swift bic = <bic>
Given a stock of.
Examples:
|alias |sId |bic |
|DEF |${sdsId} |${swiftBic} |
|DEFF |${extSdsId} |${receiverBic} |
答案 0 :(得分:2)
在黄瓜中使用Example
s是使用不同数据两次写入相同方案的快捷方式。所以你上面的代码是等价的:
Scenario: test with fisrt set of data
Given reference data databasetable record DEF with sds id = 2222 and swift bic = JBEHAVEXXX
Given a stock of.
Scenario: test with second set of data
Given reference data databasetable record DEF with sds id = 1111 and swift bic = JBEHAVYYY
Given a stock of.
因此,如果您只想在Given a stock of.
快捷方式使用Example
快捷方式后执行MFMessageComposeViewController
步骤,则必须有两个具有明确步骤的单独方案。