Re: beforeStory method from StoryReporter executed before @BeforeStories

2016-08-11 Thread Mauro Talevi
Hi thanks for the sample project.The issue you are seeing is a consequence of the fact that there are two special “stories” called (BeforeStories and AfterStories - used to report issues in the execution of the @BeforeStories and @AfterStories annotated steps).If you disregard

Re: beforeStory method from StoryReporter executed before @BeforeStories

2016-08-08 Thread Mauro Talevi
Yes, the beforeStory() event will be invoked for each story and after the @BeforeStories annotated method. But if you don’t share your project which reproduces your behaviour you can’t be helped. Please ensure that it is a self-contained (and as simple as possible) Maven project. > On

Re: beforeStory method from StoryReporter executed before @BeforeStories

2016-08-08 Thread jms2mail
Actually its working like below (BeforeStories) ==In CustomStoryReporter beforeStory= ==In Jbehave @BeforeStories= ==In CustomStoryReporter aftertory= Running story Login_Story.story Login story (Login_Story.story) ==In CustomStoryReporter

Re: beforeStory method from StoryReporter executed before @BeforeStories

2016-08-07 Thread Mauro Talevi
BeforeStories events are reported in a separate file from the other story-specific reports. But why are you getting the NPE? > On 7 Aug 2016, at 14:22, jms2m...@gmail.com wrote: > > Yes I did in the configuration part only.I created the custom reporter and > added ib the cobfiguration

beforeStory method from StoryReporter executed before @BeforeStories

2016-08-06 Thread jms2mail
Hi I am trying integrate extent report by implementing "StoryReporter" interface In my class I have @BeforeStories there I am initializing the extent report In the beforeStory() method I am trying to start the test, but it throws null pinter exception. The problem is beforeStory() method