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

No failure screenshots in serenity report when running scenarios in parallel #3176

Open
dragos-panzaru-md opened this issue Jun 29, 2023 · 0 comments

Comments

@dragos-panzaru-md
Copy link

dragos-panzaru-md commented Jun 29, 2023

I have the following libraries in my pom.xml:
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<cucumber-junit.version>7.12.1</cucumber-junit.version>

<appium-java-client.version>8.3.0</appium-java-client.version>

<org-json.version>20211205</org-json.version>

<selenium.version>4.1.4</selenium.version>

<junit.version>5.9.3</junit.version>

<junit.platform.version>1.9.2</junit.platform.version>

<logback.version>1.2.10</logback.version>

<serenity.version>3.8.1</serenity.version>

<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>

<maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>

<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>

<jackson.version>2.13.2.2</jackson.version>

<jsonpath.version>2.7.0</jsonpath.version>

and in junit-platform.properties, in order to run scenarios in parallel, I have the following:
cucumber.execution.parallel.enabled=true

cucumber.execution.parallel.config.strategy=fixed

cucumber.execution.parallel.config.fixed.parallelism=5

cucumber.execution.parallel.config.fixed.max-pool-size=20

cucumber.plugin=io.cucumber.core.plugin.SerenityReporterParallel,pretty
However when I execute my tests with mvn clean verify I don't see any failure screenshots in the serenity report although in serenity.properties I have:
serenity.take.screenshots=FOR_FAILURES

P.S: when using older serenity, junit and cucumber versions to run my features in parallel (under the old version running scenarios in parallel was not possible) the failure screenshots are appearing in the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant