[英]Selenium : How to execute test cases at parallely using cucumber with maven
We have execute the different test scenarios in different feature file using cucumber with maven in eclipse . 我们使用Eclipse中带有Maven的黄瓜在不同的功能文件中执行了不同的测试场景。
EX: 例如:
FeatureFile1:Login1 FeatureFile1:Login1
Scenario:UserLogin
Given:the userName is "aaa"
When:the login button is clicked
Then:the user login as successfully
FeatureFile2:Login2 FeatureFile2:Login2
Scenario:UserLogin01
Given:the userName is "bbb"
When:the login button is clicked
Then:the user login as successfully
In above example how to run in parallels and also how to configure in pom.xml file . 在上面的示例中,如何并行运行以及如何在pom.xml文件中进行配置。
Regards, 问候,
Gopal 戈帕尔
I have no idea how to solve it using maven only. 我不知道如何仅使用Maven来解决它。 I'm using jbehave and run tests in parallel with testng.
我正在使用jbehave并与testng并行运行测试。 It provides xml which operates test running and there you could specify amount of parallel threads and what exactly should be paralleled (metods, tests, suits).
它提供了运行测试运行的xml,您可以在其中指定并行线程的数量以及应该并行并行化的内容(方法,测试,西装)。 On build server use maven command:
在构建服务器上,使用maven命令:
mvn test -Dtestng.xml.file=suite.xml
Also you could use surefire plugin with any test provider. 您也可以在任何测试提供程序中使用surefire插件。 http://testng.org/doc/index.html http://maven.apache.org/surefire/maven-surefire-plugin/index.html
http://testng.org/doc/index.html http://maven.apache.org/surefire/maven-surefire-plugin/index.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.