Description
(thanks for the recent upgrade to cucumber 6 🥳)
Are there any ongoing efforts for supporting parallel execution?
After some failed attempts, it seems that it fails on the 2 following points (depending on the timing of the threads):
-
io.cucumber.guice.SequentialScenarioScope
enter/exit methods throw IllegalStateException
https://stackoverflow.com/questions/44166354/cucumber-guice-injector-seems-not-to-be-thread-safe-parallel-execution-exec -
RestAssured -> Apache HttpClient -> BasicClientConnManager. Maybe replace with
PoolingHttpClientConnectionManager
? I think that one is thread-safe.
java.lang.IllegalStateException: Invalid use of BasicClientConnManager: connection still allocated.
Make sure to release the connection before allocating another one.
... at lv.ctco.cukes.rest.api.WhenSteps.perform_Http_Request(WhenSteps.java:19)
Not sure if there are other issues related to cukes-rest specifically, like how some variables are used (e.g. world
).
Probably there needs to be some more thread-isolation changes :/