Just add a newline before GivenStories. This will allow the parser to know that the Meta section had ended. Meta tags can in principle be across multiple lines.
On 9 Oct 2012, at 15:25, अजय सिंह <sir...@gmail.com> wrote: > > > 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 > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email