Hi,

we already have the Lifecycle and After keywords that allow you specify a 
number of steps depending on outcome: 

http://jbehave.org/reference/stable/story-syntax.html 
<http://jbehave.org/reference/stable/story-syntax.html>

The outcome can be ANY, SUCCESS or FAILURE. 

MetaFilters can be applied to allow application of the outcome to one or more 
scenarios. 

Have a look at lifecycle.story in examples. 

Cheers

> On 8 Feb 2017, at 16:30, Alan Quintiliano <[email protected]> wrote:
> 
> Hi guys, I'm here to suggest a new keyword: Finally
> 
> its behavior would be likely the behavior of finally on a try/catch 
> statement, even if a step fails, the finally statements would run, so the 
> scenario would be something like:
> 
> Given a state of the application
> When the user changes something
> Then I verify if something has changed
> Finally I rollback this change to avoid errors
> 
> Am I being clear? (English is not my native language)
> 
> -- 
> 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/bd97f805-9bb3-43f5-9025-1824620b7f33%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jbehave-user/bd97f805-9bb3-43f5-9025-1824620b7f33%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].
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/28B3DAE8-C93D-4883-8DC2-EDF3AA785E6D%40aquilonia.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to