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

Cucumber-6-spark-report-test-scenario-outline-displayed-twice #2

Open
SelvazhaganR opened this issue Apr 1, 2022 · 7 comments
Open

Comments

@SelvazhaganR
Copy link

Scenario layout is displayed twice.

cucumber issue

@grasshopper7
Copy link
Owner

Please add the relevant scenario outline or a similar one which reproduces this.
Will have to check the code, but as far as I remember the scenario outline name is used for contained scenario names.

@SelvazhaganR
Copy link
Author

image (3)
Please find the image

@SelvazhaganR SelvazhaganR changed the title ucumber-6-spark-report-test-scenario-outline-displayed-twice Cucumber-6-spark-report-test-scenario-outline-displayed-twice Apr 4, 2022
@SelvazhaganR
Copy link
Author

Please let me know,for any updates on this question!

@grasshopper7
Copy link
Owner

Planning to analyze this tonight. Try this to get a different scenario name.
Scenario Outline: User login to CA <columnname1>
If my understanding is correct you should see different names for Scenario outline and scenaio

@SelvazhaganR
Copy link
Author

Please let me know,for any updates on this question!

@grasshopper7
Copy link
Owner

The scenario outline is not displayed twice. This is due to the hierarchical nature of Extent Reports.
The top "Expense Report ....." refers to the ExtentTest for the Scenario Outline level. The child (example row) "Expense Report ....." refers to the child ExtentTest.
If you have more than one example rows, these will also be child tests under the scenario outline. The easiest way to differentiate, is to use some data from the examples row as I have mentioned in a comment above.
Consider this a bug or a feature but this is how Scenario Outline is handled in the Cucumber-Extent adapter code. If you have a better solution, do mention it.
Thanks.

@SelvazhaganR
Copy link
Author

Thank You for the explanation!

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

2 participants