Open ritunegi04 opened 4 years ago
Scenarios are collected based on the logic that feature\scenario outline names will be unique across the test project. If there are two features with same names the scenarios in them will get clubbed and result will be mixed up. Similar for a scenario outlines with same name. Simple way is to make sure that u have unique names. This is the logic for previous three or four versions of the cucumber and extent adapter.
What is the criterion for having the same scenario outline in two different feature files?
I have two feature files which have a common scenario with same parameter values :
Feature File 1 :
Feature File 2 :
Now on executing the Runner File, the failed scenario : Scenario Outline: FreeCRM login scenario "" of feature file 1 is clubbed with feature file 2 common scenario Scenario Outline: FreeCRM login scenario "" . And the Feature 1 is displayed as passed in the report.
Feature 1 report section :
Feature 2 report section :