You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: