另一种方法:
Run jbehave scenario multiple times sequentially
Narrative:
In order to run jbehave scenario multiple times sequentially
As a development team
I want to use examples table
Scenario: run jbehave scenario multiple times sequentially
GivenStories: path/to/story/we/want/to/run/multiple/times/storyname.story
Then some null step
Examples:
|x|
|1|
|2|
...
...
...
|100000|
Run Code Online (Sandbox Code Playgroud)
如果您不想在故事中复制/粘贴示例表的行,请从文件中加载表:
Examples:
/path/to/file/with/parameters/somefile.table
Run Code Online (Sandbox Code Playgroud)
请参阅:从外部资源加载参数以获取详细信息
| 归档时间: |
|
| 查看次数: |
1795 次 |
| 最近记录: |