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 Not Getting Created Properly #37

Open
jacob-hanbeen-kim opened this issue Mar 10, 2020 · 0 comments
Open

Scenario Not Getting Created Properly #37

jacob-hanbeen-kim opened this issue Mar 10, 2020 · 0 comments

Comments

@jacob-hanbeen-kim
Copy link

With your latest modifications to the onTestCaseStarted function. Scenarios are not getting created properly in reportportal.

Current Code
if (context.lastScenarioDescription !== name) { context.lastScenarioDescription = name; context.outlineRow = 0; } else if (event.attemptNumber < 2) { context.outlineRow++; name += [${context.outlineRow}]; } // BeforeScenario if (isScenarioBasedStatistics() || event.attemptNumber < 2) {

Previous Code
if (context.lastScenarioDescription !== name) { context.lastScenarioDescription = name; context.outlineRow = 0; } else { context.outlineRow++; name += [${context.outlineRow}]`;
}

// BeforeScenario`

This requires scenarioBasedStatistics to be ticked on to true or event.attemptNumber to be less than 2 to create the scenario. Which will not create the scneario at all if I'm not using the scenarioBasedStatisctics or retry functionality.
And furthermore, even with the scenarioBasedStatisctics it will not name the scenario outlines (ones with examples) correctly like it used to because it never case into the else if (event.attempNumber < 2) block.

@AmsterGet AmsterGet added this to the 5.0.0 milestone Aug 27, 2020
@AmsterGet AmsterGet linked a pull request Aug 27, 2020 that will close this issue
@AmsterGet AmsterGet modified the milestones: 5.0.0, 5.0.1 Aug 28, 2020
@AmsterGet AmsterGet removed a link to a pull request Aug 28, 2020
@AmsterGet AmsterGet reopened this Aug 28, 2020
@AmsterGet AmsterGet modified the milestones: 5.0.1, 5.0.2 Oct 30, 2020
@AmsterGet AmsterGet modified the milestones: 5.0.2, 5.0.3 Aug 30, 2021
@AmsterGet AmsterGet removed this from the 5.0.3 milestone Nov 30, 2022
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

4 participants