You can implement org.jbehave.core.reporters.StoryReporter (or just extend org.jbehave.core.reporters.NullStoryReporter if you don't need to implement all methods). You can save story meta in beforeStory(Story, boolean) method and scenario meta in scenarioMeta(Meta) method to some local context which can be used in steps to retrieve meta info.
On Saturday, January 6, 2018 at 12:45:25 AM UTC+3, Brent Barker wrote: > > I'm having troubles getting meta information inside of my step method. > > I know i can write something like this: > http://jbehave.org/reference/stable/meta-parametrisation.html > > but the problem is some of my stories, for example, are not annotated with > 'theme' and the 'I have some step that implicitly requires meta params' > step becomes pending. If i try to overload the step then I get a duplicate > step exception. > > Is there a way to simply obtain all of the meta information for the > current running story? > > Thanks > -- You received this message because you are subscribed to the Google Groups "JBehave User" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/jbehave-user/2ae4e8f5-ad3d-48f9-a919-ab7a870dcce7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
