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 report links to the same result #39

Closed
marktigno opened this issue May 8, 2017 · 3 comments
Closed

Serenity report links to the same result #39

marktigno opened this issue May 8, 2017 · 3 comments

Comments

@marktigno
Copy link

Hello! I have an issue dealing with serenity report when I use a scenario outline. Given I have this feature content:

Scenario Outline: View items added in cart
Given I am in the Cart page
When I view the items in cart
Then I expect to see the added title of <Title>, with unit price of <Unit Price>, quantity of <Quantity> and total price of <Total>

Examples:
|Title                                        |Unit Price|Quantity|Total    |
|The Singular Universe and the Reality of Time|£19.99    |1       |£19.99   |
|The Reader's Brain                           |£12.99    |1       |£12.99   |

But in my serenity report, the links are only referring the same report page only after you click and it only displays the last test data executed on the report. Refer to screenshots below for clarity. Cheers!

URL links:
url links

Scenario durations:
scenario durations

Last scenario execution only displayed:
last scenario execution only displayed

@jan-molak
Copy link
Member

Hey, @marktigno! There's a difference between CucumberJVM and Cucumber.js where the former notifies its listeners of the fact that a given Scenario is, in fact, a Scenario Outline, and the latter doesn't.

What this means is that from the point of view Serenity/JS, both examples refer to the same scenario.

However, what you can do is to add the name of the example to the scenario title, for example:

Scenario Outline: View items added in cart - <Title>       # <-- I've added <Title> here

Given I am in the Cart page
 When I view the items in cart
 Then I expect to see the added title of <Title>, with unit price of <Unit Price>, quantity of <Quantity> and total price of <Total>

Examples:
|Title                                        |Unit Price|Quantity|Total    |
|The Singular Universe and the Reality of Time19.99    |119.99   |
|The Reader's Brain12.99    |112.99   |

Does this help?
Jan

@marktigno
Copy link
Author

Hello @jan-molak! Thanks for the tips, now it looks good on the reports. Cheers!

@jan-molak
Copy link
Member

Sweet! Thanks for letting me know :-)

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