Skip a module based on a previous result
Posted: Thu Nov 21, 2013 10:34 am
Is it possible to make a test skip a module depending on the result of a previous module? I'll explain. I have two modules:
CheckNameModule - This checks the displayed name of the center the user is currently connected to.
ChangeCenterModule - This changes the center for the user.
These are setup in a test case like so:
1. CheckNameModule
2. ChangeCenterModule
3. CheckNameModule
Scenario 1 - The current center is "Alpha" and the required center is "Gamma". When the CheckNameModule runs it checks if the current is the same as the required. In this case it is not so I want it to run steps 2 & 3.
Scenario 2 - The current center is "Alpha" and the required center is "Alpha". When the CheckNameModule runs it checks if the current is the same as the required. In this case it is so I want it to skip steps 2 & 3.
I can probably convert all this into user code and achieve what I want but I'm wondering if there is an easier way to do this.
CheckNameModule - This checks the displayed name of the center the user is currently connected to.
ChangeCenterModule - This changes the center for the user.
These are setup in a test case like so:
1. CheckNameModule
2. ChangeCenterModule
3. CheckNameModule
Scenario 1 - The current center is "Alpha" and the required center is "Gamma". When the CheckNameModule runs it checks if the current is the same as the required. In this case it is not so I want it to run steps 2 & 3.
Scenario 2 - The current center is "Alpha" and the required center is "Alpha". When the CheckNameModule runs it checks if the current is the same as the required. In this case it is so I want it to skip steps 2 & 3.
I can probably convert all this into user code and achieve what I want but I'm wondering if there is an easier way to do this.