Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grasshopper7/junitcuke4sharedwebdriver
Parallel execution in JUnit for Selenium and Cucumber-JVM using PicoContainer & ThreadLocal
https://github.com/grasshopper7/junitcuke4sharedwebdriver
Last synced: about 2 months ago
JSON representation
Parallel execution in JUnit for Selenium and Cucumber-JVM using PicoContainer & ThreadLocal
- Host: GitHub
- URL: https://github.com/grasshopper7/junitcuke4sharedwebdriver
- Owner: grasshopper7
- License: mit
- Created: 2019-04-05T14:43:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T05:37:45.000Z (over 1 year ago)
- Last Synced: 2023-10-03T15:51:36.107Z (over 1 year ago)
- Language: Java
- Homepage: https://grasshopper.online/732/
- Size: 13.7 KB
- Stars: 4
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Refer to this for more details - https://ghchirp.site/732/
Cucumber-JVM 4 supports parallel execution across threads out of the box and also with JUnit and TestNG. The easiest way to integrate Selenium with Cucumber in parallel mode is to use Before and After hooks to create and close the driver respectively. But this is expensive and time consuming.
This will look at allocating a driver to a specific thread and using it for all the scenarios assigned to the thread. The driver will only be closed at the end of the test execution. The drivers will be stored in a ThreadLocal object. Cucumber implementation of PicoContainer will be used for creating and sharing objects.