Forum Discussion

naveens33_'s avatar
naveens33_
Contributor
3 years ago

How to create dependency between BDD scenarios

I want my scenario should run only when the other scenario result gets passed. For example, In below case,  I want to make a dependency between Scenario A and B. Such that If the Scenario A get fai...
  • AlexKaras's avatar
    3 years ago

    Hi,

     

    To my knowledge, pure BDD by design does not support dependencies.

    As a kind of workaround you may try the following:

    -- (Optionally) move dependent scenario(s) to separate file(s);

    -- Organize test items in the Execution Plan according to the required dependencies. E.g. like this:

    | Item for Scenario A

    | |- Item for Scenario B

    | Item for Scenario C

     

    -- And then set 'Stop current item' option for the On Error column in the Execution Plan editor.