serenity-bdd / serenity-demos

64 stars 170 forks source link

in grid setup with 2 nodes , test cases are run twice #22

Closed vikramvi closed 8 years ago

vikramvi commented 8 years ago

@YamStranger I am trying to use this project to reproduce other issue ( docker + VM )

But strangely with command

mvn clean verify -Dwebdriver.remote.url=http://192.168.99.100:4444/wd/hub -Dwebdriver.remote.driver=chrome -Dwebdriver.remote.os=LINUX

I see all the 7 test cases being run 2 times instead of just one.

First run test cases are distributed to both nodes

Second run , test cases just run on single node.

I spent an hours and not able to find the root cause , can you please help with this ?

vikramvi commented 8 years ago

@YamStranger https://github.com/serenity-bdd/serenity-demos/blob/master/junit-webtests/pom.xml

wrt this pom.xml , can you please clarify changes I need to do to run test cases on single browser on single machine and running single browser on each of the nodes on grid setup.

Once I'm done with this , I can use the example to reproduce issue https://github.com/serenity-bdd/serenity-core/issues/353 and share code with you

Thanks in advance

vikramvi commented 8 years ago

solved this issue

https://github.com/vikramvi/junit-webtests-parallel-grid-docker-jenkins-debug/blob/master/junit-webtests/pom.xml

maven-failsafe-plugin has bug with parallel execution , so need to use skip flag not to run integration-tests once they are run by maven-surefire-plugin.

YamStranger commented 8 years ago

It's good news, thanks