Skip to content

feature request: parallel execution #168

Open
@Kidlike

Description

@Kidlike

(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):

  1. 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

  2. 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 :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions