bdd - JBehave - best way to reuse/refer already existed story -


each story in bdd tests starts same bunch of steps. there way refer steps or maybe somehow "refer" repeatable story. best way extract common part? currently, using @composite annotation provided jbehave.

the solution use background scenario.

what execute steps background each scenario. disadvantage if background fails scenarios feature skipped , feature marked failed.

i guess assuming if steps common , fail once fail every time. can see example in jbehave documentation.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -