如何并行运行黄瓜测试_Junit / TestNg [英] How to run the cucumber test parallelly_Junit/TestNg

查看:163
本文介绍了如何并行运行黄瓜测试_Junit / TestNg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用带有testng的黄瓜测试,IAM计划并行运行测试。我以前有使用Testng框架并并行执行的经验,如何在不使用mavensurfire插件(pom.xml)的情况下实现相同的目标b
$ b

我具有的配置


黄瓜JVM,TestNGCucumberRunner.java文件触发功能文件



解决方案

下面是您要使用jUnit的示例。与testNG相同,但是您已经在pom.xml中更改了相关性。



这里是一个链接,在其中说明了更好的
http://www.opencredo.com/2013/07 / 02 / running-cucumber-jvm-tests-in-parallel /



这是github的项目,可以为您提供帮助。
https://github.com/tristanmccarthy/Cucumber-JVM-Parallel/


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

解决方案

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/

这篇关于如何并行运行黄瓜测试_Junit / TestNg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆