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

Scenario count (including rows of test data) is not updated properly in Serenity 2.0.xx #1802

Closed
hariharanravichandran opened this issue Sep 10, 2019 · 8 comments

Comments

@hariharanravichandran
Copy link

hariharanravichandran commented Sep 10, 2019

Serenity Core Version: 1.8.1
Serenity Cucumber Version: 1.6.5
image

Serenity Core Version: 2.0.56
Serenity Cucumber Version: 1.9.40
image

Scenario Results (including rows of test data) should be Total of 168 in which 166 Automated and 2 Manual. But, it is displayed as 93 Total in which 91 Automated and 2 Manual.

Similarly for feature file having 2 Scenario outline(totals 6 scenarios), the count is mentioned as 2 in the Functional Coverage Overview instead of 6.

@wakaleo
Copy link
Member

wakaleo commented Sep 10, 2019

Can't reproduce with serenity-core 1.0.70 and serenity-cucumber 1.0.25. Can you provide a sample project that reproduces the issue?

@hariharanravichandran
Copy link
Author

Hi @wakaleo , Issue is resolved in the version mentioned(serenity-core 1.0.70). But, the issue is still reproducible when we execute our tests in Jenkins.

@hariharanravichandran
Copy link
Author

hariharanravichandran commented Sep 19, 2019

This issue happens in Zalenium - Jenkins when we execute multiple features with scenario outline. When we execute a single feature with Scenario outline, Report is generating correctly

@hariharanravichandran
Copy link
Author

Hi @wakaleo , I am not able to run the test using -Dcucumber.options.

@wakaleo
Copy link
Member

wakaleo commented Sep 19, 2019

Do the multiple files have different feature and scenario outline names?

@hariharanravichandran
Copy link
Author

Yes. multiple files have different features and scenario outline names. There is one more weird observation. When I executed my whole test suite in Zalenium(Jenkins) without the -Dcucumber.option"--tags @something", the total scenario count is displayed as expected.

@RAS-2112
Copy link

RAS-2112 commented Sep 25, 2019

I've been able to re-create this issue in serenity-cucumber4-starter by using Dfailsafe.rerunFailingTestsCount. When re-running failures in a scenario outline, the successful tests are still counted in the overall test count, but not in scenario results.

Full config:

clean verify "-Dcucumber.options=--tags '(@Test)'" -Dfailsafe.rerunFailingTestsCount=1

Running the above Maven command in this sample project should show you the issue.

@wakaleo
Copy link
Member

wakaleo commented Sep 25, 2019

Thanks for reproducing this. There isn't any special support for the failsafe retries feature, so apparently something about the. way it records the results confuses the Serenity reporting. If you want to have a look at the code to see what is going on, I'd be happy to review a PR.

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

No branches or pull requests

3 participants