有没有办法并行运行单个黄瓜方案大纲?

时间:2019-06-19 03:06:12

标签: java maven cucumber junit4

我正在使用黄瓜BDD进行硒测试的简单练习。我已经为一个测试数据编写了方案,并对其进行了转换,以允许在我的步骤中运行多个测试数据。我使用了方案大纲和excel表来读取测试数据,并逐个执行每个测试数据,这显然很耗时间。我想知道是否可以并行运行场景概述的每个示例,或者我是否应该尝试另一种方式来运行多个测试数据。

功能文件:

 Feature Insurance Quote - User is wanting to acquire a green slip quote
for their current vehicle.

Scenario Outline: User wants to generate insurance quote
Given I'm on the homepage
And I navigate to getting a quote in NSW
When I select quote type from excel <rowIndex>
And I enter my vehicle details
And I enter insurance preferences from excel <rowIndex>
Then I'll be provided with a quote and test <rowIndex> passed

Examples:
|rowIndex  |
|1         |
|2         |
|3         |
|4         |

我的步骤定义和测试运行程序都可以正常运行,因为我可以顺利运行所有方案,只是每个excel行都一一对应,我想找到一种能够并行执行它们的方法。

任何建议都会非常感谢。

0 个答案:

没有答案
相关问题