Closed jakimcho closed 5 years ago
Feel free to make a PR, but I don't think this is an easy thing to do.
This should work now.
This is still not working , could you please suggest which version of serenity need to be used
2.3.12
Still facing issue , I have update pom xml with this verison
Can you put a screenshot of what you see and a copy of your feature file?
Thanks for the Reply
Feature File
Feature: Sample Test Feautre for Report
Scenario Outline: Title of your scenario outline is
Examples:
| name | value | status |
| name1 | 5 | success |
| name2 | 7 | Fail |
What behaviour are you expecting?
I am expecting Title of your scenario outline is name1
The title reflects what you write in the feature file. This looks like normal behaviour.
But the name is not getting replaced with the parameter value
It's the title of the scenario outline. If you put a variable placeholder, that's what will appear. You have 2 examples, how would Serenity know which one it should use for the title?
ok , if I am having only one example for each scenario like
That's just not the way the Serenity reporting works, under no circumstances will there be any variable substitution in a scenario outline heading.
thank you... what about the steps in Given and When
It's the same principle - in a scenario outline, it makes no sense to insert any particular value into the text.
I gone through some PR with the same issue and I saw it some fix has been provided for this issue
Cannot make Serenity report display examples values in Scenario outlines titles serenity-bdd/serenity-core#1188
It's not an issue, this is the correct, expected, and normal behaviour. That defect is referring to something else (the tags were not being rendered)
Thank you for your Quick Response..
Hello, Moved issue 1188 here.
I have a cucumber feature file with a scenario outline that has examples placeholders in its title:
My expectation is to have more descriptive scenarios titles for each scenario outline run in the report. Something like the one I get in cucumber report:
But in the actual serenity report I'm getting:
The examples placeholders in scenario titles are not populated with the values from the examples table
I'm using
serenity-core
,serenity-cucumber
andserenity-maven-plugin
versions -1.9.4