Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serenity reports do not show steps executed via GPars #1882

Closed
pards opened this issue Nov 26, 2019 · 1 comment
Closed

Serenity reports do not show steps executed via GPars #1882

pards opened this issue Nov 26, 2019 · 1 comment
Labels
can't-fix We don't know how to do this at the moment

Comments

@pards
Copy link

pards commented Nov 26, 2019

The Serenity HTML report (target/site/serenity/index.html) does not show the steps that are executed in parallel using the Groovy parallels library, GPars.

import static groovyx.gpars.GParsPool.withPool

@RunWith(SerenityRunner.class)
class ParallelTest {
    @Steps
    ApiSteps apiSteps

    @Test
    void parallelTest() {
        withPool {
            def accountSummary = apiSteps.&accountSummary.asyncFun()
            def customerProfile = apiSteps.&customerProfile.asyncFun()
            accountSummary()
            customerProfile()
        }
    }
}

The steps are executed correctly but are omitted from the report.

Moving the parallel block withPool into its own @Step inside ApiSteps gets it onto the report but the component steps (accountSummary, customerProfile) do not show up so the critical details about the REST call are lost.

@wakaleo
Copy link
Member

wakaleo commented Nov 26, 2019

I don’t think this will be possible - the step listeners are associated with the main execution thread be so if stuff happens in other threads there is no way for it to be detected.

@wakaleo wakaleo added the can't-fix We don't know how to do this at the moment label Nov 27, 2019
@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't-fix We don't know how to do this at the moment
Projects
None yet
Development

No branches or pull requests

2 participants