We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
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 failed then Scenario B should not run rather it has to be skipped.
Note: At the same time the dependency is only between A and B so, C should run.
How can we make in TestComplete. Any hope.
Feature: Description of the new feature1
Scenario: Scenario A
Given some precondition
When an action is performed
Then validate a condition
Scenario: Scenario B
Given some precondition
When an action is performed
Then validate a condition
Scenario: Scenario C
Given some precondition
When an action is performed
Then validate a condition
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.
Hi Naveen,
I hope you are keeping well.
In Test Complete you can use the "Treat each example in Scenario Outline as a separate test case " this can be configured in
Tools -> Current Project Properties -> BDD and enable the following
For more details here is the documentation on the properties;
https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/bdd/general.html
Please let me know if this resolves your query or if you have any additional questions.
Thanks,
Shane
Hi naveens33_
No problem, hope that guide helps.
Regarding dependencies, there is an option to Parameterize BDD Tests details can be found here;
https://support.smartbear.com/testcomplete/docs/bdd/parameterize.html
Please let me know if this resolves your query or if you have any additional questions.
Thanks,
Shane
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.