The working example is provided in the links below in github. You can
run as a JUnit test in your IDE or via Maven.
As you can see you need to set a string value in the useStoryTimeout()
method.
Do note that this is an example of a custom timeout parser (using a
rather dumb format "Nsecs"), but the out-of-box formats for the string
value of the storyTimeout property are different:
http://jbehave.org/reference/stable/story-timeouts.html
If your example does not work then what you should do is create a
working example project in github that reproduces the problem and share
it. Please don't post fragments or morsels of configuration, as it's
not very useful.
On 10/06/2015 16:17, igal epshtein wrote:
Thanks for the reply !
I'm new to "jbehave world" therefore I'm not so familiar with the
configuration of the test.
I was wondering how I can extend the story timeout execution.
I've tried to use
|
publicEmbedderControls
<http://jbehave.org/reference/stable/javadoc/core/org/jbehave/core/embedder/EmbedderControls.html>useStoryTimeoutInSecs(longstoryTimeoutInSecs)
|
in Story runner file but it didn't work, the story didn't stop after
the overridden timeout ...
could you post some code example ?
Thanks
On Tuesday, June 9, 2015 at 6:23:56 PM UTC+3, mauro.talevi wrote:
There is an example of story timeouts (and a custom timeout
parser) in the threads examples:
https://github.com/jbehave/jbehave-core/blob/master/examples/threads/src/main/java/org/jbehave/examples/threads/ThreadsStories.java
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fjbehave%2Fjbehave-core%2Fblob%2Fmaster%2Fexamples%2Fthreads%2Fsrc%2Fmain%2Fjava%2Forg%2Fjbehave%2Fexamples%2Fthreads%2FThreadsStories.java&sa=D&sntz=1&usg=AFQjCNGehYZUVQol4F2i6j7XShQnDxe1sA>
For backward compatibility, the property storyTimeoutInSecs still
works but it deprecated.
If you have a specific use case in mind, feel free to share it and
we can amend the example.
On 09/06/2015 16:14, igal epshtein wrote:
Hi,
Could you please provide an example , how story timeout might be
changed through the code.
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] <javascript:>.
To post to this group, send email to [email protected]
<javascript:>.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/jbehave-user/8f66d5ec-1b50-434c-9154-a5946f566c89%40googlegroups.com
<https://groups.google.com/d/msgid/jbehave-user/8f66d5ec-1b50-434c-9154-a5946f566c89%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/jbehave-user/8a7b634d-d903-4670-98eb-0dbdb4adfd9b%40googlegroups.com
<https://groups.google.com/d/msgid/jbehave-user/8a7b634d-d903-4670-98eb-0dbdb4adfd9b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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/557880B5.5000504%40aquilonia.org.
For more options, visit https://groups.google.com/d/optout.