并行执行功能文件:maven-failsafe-plugin与黄瓜-jvm-parallel-plugin [英] Parallel execution of features files : maven-failsafe-plugin vs cucumber-jvm-parallel-plugin

查看:124
本文介绍了并行执行功能文件:maven-failsafe-plugin与黄瓜-jvm-parallel-plugin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在使用maven-failsafe-plugin与Selenium Grid +节点(均在docker容器中运行)并行运行多个功能文件

Currently I'm using maven-failsafe-plugin to run multiple feature files in parallel with Selenium Grid + nodes ( all running in docker containers )

如下基本问题


  1. 何时使用黄瓜-jvm-parallel-plugin?

  2. 有什么好处/ cumber-jvm-parallel-plugin相对于maven-failsafe-plugin并行执行的缺点?

预先感谢。

推荐答案

下面是答案

一种并行运行Cucumber功能的常用方法是要创建一组Cucumber运行程序,每个要并行运行的测试套件一个,为了最大程度地提高并行度,每个功能文件都应该有一个运行程序
这是很难维护的,而且不是很干。

"A common approach for running Cucumber features in parallel is to create a suite of Cucumber runners, one for each suite of tests you wish to run in parallel. For maximum parallelism, there should be a runner per feature file. This is a pain to maintain and not very DRY."

https://github.com/temyers/cucumber-jvm-parallel-plugin/issues/139

其他详细信息-

..尽管它的名字黄瓜-jvm-parallel-plugin不会运行任何测试,它只是自动运行为您生成黄瓜赛跑者。这样可以节省您制作空白运行文件的时间,也可以通过更改cumul-jvm-parallel-plugin的配置来节省时间。.

..Despite its name cucumber-jvm-parallel-plugin does not run any tests, it just automatically generates the Cucumber runners for you. This saves you time from making empty runner files and also just by changing the config of the cucumber-jvm-parallel-plugin you can have brand new set of runner files..

复制自 http://automationrhapsody.com/running-cucumber- tests-in-parallel /#comment-3455579028

这篇关于并行执行功能文件:maven-failsafe-plugin与黄瓜-jvm-parallel-plugin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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