You can use meta parameters.

http://jbehave.org/reference/stable/meta-parametrisation.html

https://github.com/jbehave/jbehave-core/blob/master/examples/trader/src/main/java/org/jbehave/examples/trader/steps/BeforeAfterSteps.java

On 23/05/2013 16:54, Rafael Farias Silva wrote:
Hello ppl,

I would like to get the Story name in a method annotated with @BeforeStory, is there a way to do this?

I need this for debugging purposes, cause i'm running a bunch of stories with runStoriesAsPaths and with multiple threads, and I'm trying to log wich thread is running wich story.

Could someone help me? Did'nt found any question like that on google / stackoverflow, so i'm asking here.

Thanks in advance.

Reply via email to