From version 1.6, in addition to, getStatus()
and getSourceTagNames()
, there is another method, getName()
that returns the scenario's description.
For example, for a scenario as follows:
Scenario: verify number of topics shown in the UI
scenario.getName()
returns "verify number of topics shown in the UI"
I initialize scenario in @Before as follows:
@Before
public void before(Scenario scenario) {
this.scenario = scenario;
}
Hope this helps.