How to run the cucumber test parallelly_Junit/TestNg [duplicate]

人盡茶涼 提交于 2019-12-08 03:59:39

问题


Iam using cucumber test with testng , iam planning to run the test parallely.I have previous experience by using testng framework and executed parallely , how can i achieve the same without using mavensurfire plugin (pom.xml)

Configuration which i have,

Cucumber JVM,TestNGCucumberRunner.java file to trigger the feature file


回答1:


Here is an example of what you ask, but using jUnit. With testNG is the same, but you have tu change the dependency in the pom.xml.

Here is a link in which explain that better http://www.opencredo.com/2013/07/02/running-cucumber-jvm-tests-in-parallel/

and here is the project of github, that can help you as a example. https://github.com/tristanmccarthy/Cucumber-JVM-Parallel/



来源:https://stackoverflow.com/questions/28239531/how-to-run-the-cucumber-test-parallelly-junit-testng

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