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
Post a Comment