Yes, I know about Scenario outline

穿精又带淫゛_ 提交于 2020-02-08 11:29:31

问题


But we use group of scenarios as 1 Test Case, so the one scenario is a one step in a test and therefore we need to define parameters for group of scenarios.

In case of Scenario outline and several scenarios only scenario with Outline performs with different parameters:

Scenario Outline: scenario A
When bla
Then bla bla
Examples:
| Param |
| 1     |
| 2     |

Scenario: Scenario B
When param 'Param'
Then do 'Param'

In this case Scenario A will be executed 2 times then it goes to Scenario B. But I need to perform: Scenario A, Scenario B with Param=1, then Scenario A, Scenario B with Param 2

来源:https://stackoverflow.com/questions/59883996/yes-i-know-about-scenario-outline

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!