Hi,
For one of my story, I have define story file as below
Meta:
@storyName ReuseBitrate
GivenStories:EndToEnd.story
Scenario: Verifying ReuseBitrate functionality
Given Step1
Then Step2
And in BeforeAndAfter Story
@BeforeScenario
public void beforeScenario( @Named("storyName") String storyName) {
System.out.println("StoryName "+storyName)
}
The Story Name is printed as
ReuseBitrate
GivenStories:EndToEnd.story
I think this is because of no end of line character for @storyName
ReuseBitrate
UPDATE:
I added dummy meta tag after story name as below
Meta:
@storyName ReuseBitrate
@dummy
GivenStories:EndToEnd.story
and it was working.But this is not the right way.Isnt it???
Thansk
Ajay