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

After adding @Step, Serenity BDD report NOT printing parameterize data into report #3354

Closed
kavimukh opened this issue Dec 13, 2023 · 2 comments

Comments

@kavimukh
Copy link

What happened?

Scenario Outline reading data from Examples and serenity report not printing actual data into report

What did you expect to happen?

Serenity BDD report need to print Actual data which is in Scenario Outline Examples

Serenity BDD version

4.0.14

JDK version

Java(TM) SE Runtime Environment (build 17.0.9+11-LTS-201)

Execution environment

No response

How to reproduce the bug.

This is my feature file
Scenario Outline: Check Page Status and JQuery
Given Page is loaded

Examples:
| URL | SIZE |
| https://www.google.com/online/ |

=== StepDefinitions.java
@steps
CommonActions commonActions;

@given("Page {word} is loaded")
public void pageURLIsLoaded(String pageURL) throws MalformedURLException {
System.out.println("Navigating to => "+pageURL);
commonActions.navigateTo(pageURL);
}

===
CommonAction.java
https://github.com/step("Page {word} is loaded")
public void navigateTo(String goToURL) throws MalformedURLException {
System.out.println("platform.contains "+ environmentVariables.getProperty("environment"));
Serenity.setSessionVariable("return_user_flow").to(false);
getDriver().navigate().to(goToURL);
}

In Serenity Report it's not printing URL
Refer to screen capture
Screenshot 2023-12-13 at 5 39 20 AM

How can we make it happen?

Work on this myself and propose a PR (with Serenity BDD team guidance)

@wakaleo
Copy link
Member

wakaleo commented Dec 16, 2023

This is a scenario outline, it will show the variable not the value (since in a scenario outline you typically have more than one example).

@kavimukh
Copy link
Author

Thanks @wakaleo for the update

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

2 participants