Parallel Execution of feature files - maven-failsafe-plugin vs cucumber-jvm-parallel-plugin

778 views
Skip to first unread message

80Vikram

unread,
Aug 1, 2017, 7:10:19 AM8/1/17
to Serenity BDD Users Group
Hi All,

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

I'm basic questions as below

1.  when to use cucumber-jvm-parallel-plugin ?
2.  what benefits / disadvantages of cucumber-jvm-parallel-plugin over maven-failsafe-plugin  parallel execution ?

Thanks in advance.

Regards,
Vikram

John Smart

unread,
Aug 1, 2017, 8:14:49 AM8/1/17
to 80Vikram, Serenity BDD Users Group
The cucumber-jvm-parallel-plugin will need you to define a custom template to get it to use the right runner class. This plugin generates a runner class for each of your scenarios and runs these in parallel. The maven-failsafe-plugin will only run your test runners in parallel, not your Cucumber scenarios or features.

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better
http://johnfergusonsmart.com  |  john....@wakaleo.com
___________________________________________________

We love breaking down silos and helping smart teams collaborate better! Ask about our tailored on-site workshops in Agile Product Planning, BDD Requirements Discovery,  BDD, TDD and Clean Coding, and Advanced BDD Test Automation.

Need some help with Serenity BDD? Check out our Serenity BDD training and support packages here.
___________________________________________________

80Vikram

unread,
Aug 1, 2017, 8:35:01 AM8/1/17
to Serenity BDD Users Group, vikra...@gmail.com
Hi John,

I didn't understand it fully.

Currently I've below setup

@RunWith(CucumberWithSerenity.class)
@CucumberOptions(features="src/test/resources/features/List/create_new_list.feature")
public class WLC_List {}

1. similarly I've got single test class for each of the feature files and these are run in parallel. How is this different from cucumber-jvm-parallel-plugin plugin running feature files in parallel ?

2. What advantage will I get using cucumber-jvm-parallel-plugin, which runs cucumber scenarios in parallel.

3. What's your recommendation for CD cycle ?

Thanks,
Vikram



On Tuesday, August 1, 2017 at 2:14:49 PM UTC+2, John Smart wrote:
The cucumber-jvm-parallel-plugin will need you to define a custom template to get it to use the right runner class. This plugin generates a runner class for each of your scenarios and runs these in parallel. The maven-failsafe-plugin will only run your test runners in parallel, not your Cucumber scenarios or features.
On 1 August 2017 at 12:10, 80Vikram <vikra...@gmail.com> wrote:
Hi All,

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

I'm basic questions as below

1.  when to use cucumber-jvm-parallel-plugin ?
2.  what benefits / disadvantages of cucumber-jvm-parallel-plugin over maven-failsafe-plugin  parallel execution ?

Thanks in advance.

Regards,
Vikram

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

80Vikram

unread,
Aug 1, 2017, 1:05:22 PM8/1/17
to Serenity BDD Users Group, vikra...@gmail.com
Hi John,

I tried integrating plugin but it's failing please check https://github.com/serenity-bdd/serenity-core/issues/868

Thanks,
Vikram

80Vikram

unread,
Aug 2, 2017, 4:51:40 AM8/2/17
to Serenity BDD Users Group, vikra...@gmail.com
Dear All,

Has anyone used cucumber-jvm-parallel-plugin successfully with serenity ?

I couldn't get it working, kindly help.

I've tried as per https://github.com/vikramvi/junit-webtests-parallel-grid-docker-jenkins-debug/commit/c421408bcf656e74c83dddf49b9c362a1654bbb4 , but couldn't get it working.


Thanks in advance.

Regards,
Vikram

John Smart

unread,
Aug 2, 2017, 5:03:43 AM8/2/17
to 80Vikram, Serenity BDD Users Group
You will most likely need to use the customVmTemplate option and write your own template (see https://github.com/temyers/cucumber-jvm-parallel-plugin). The default template is here: https://github.com/temyers/cucumber-jvm-parallel-plugin/blob/master/src/main/resources/cucumber-junit-runner.java.vm


To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

80Vikram

unread,
Aug 2, 2017, 5:37:43 AM8/2/17
to Serenity BDD Users Group, vikra...@gmail.com
Thanks John, I'll try this today again and update back in this thread.

Regards,
Vikram

80Vikram

unread,
Aug 4, 2017, 9:44:59 AM8/4/17
to Serenity BDD Users Group, vikra...@gmail.com
Hi John,

If my current test runner is as below

package com.vikramvi.cucumber;

import cucumber.api.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import org.junit.runner.RunWith;


@RunWith(CucumberWithSerenity.class)
@CucumberOptions(features="src/test/resources/features/List/create_new_list.feature")
public class WLC_List {}

how should this be put in customVmTemplate ?

Why is this parameter mandatory ? is it Serenity requirement ?

Thanks,
Vikram

Reply all
Reply to author
Forward
0 new messages