prashant-ramcharan / courgette-jvm

Multiprocess | Parallel Cucumber-JVM | Parallelize your Java Cucumber tests on a feature level or on a scenario level.
MIT License
132 stars 38 forks source link

Can you explain how to handle webdriver, test data in parallel mode? #47

Closed iam500 closed 6 years ago

iam500 commented 6 years ago

I have a junit cucumber selenium setup which is running single threadedly. If I use this jvm, how would i need to handle webdriver, test data(csv) files for parallel execution like threadlocal etc

prashant-ramcharan commented 6 years ago

Hi,

Take a look at the Courgette-JVM Example project.

This shows exactly how to use this library alongside Selenium.

Unless there are restrictions to the resources you trying to access, you wouldn't have an issue running your tests in parallel.

The library simply allows you to run all your features / scenarios independently of one another as each tests is executed in a separate JVM. You will not need to add any extra logic to your code.

iam500 commented 6 years ago

Ok. I am seeing Missing artifact io.github.prashant-ramcharan:courgette-jvm:pom:2.2.1 when i add the dependency. will courgette run different test cases in parallel mode?

prashant-ramcharan commented 6 years ago

You need to refresh your project dependancies.

will courgette run different test cases in parallel mode? -- Yes, each test case will run independently in parallel.