Execution of Instructions with Toggle points
This article is a part of the Self-paced Learning Series for the Course: First-Hand Experience of Worksoft SaaS.Please refer to the link for more details on the Course.
Mapping the Worksoft SaaS feature to the Course Context :: Lesson 13:: Topic 2
1. Execution of Instructions with Toggle points
In our case, we will use toggle points because we want to execute the test only for the instructions that have been newly added.
2. Practice
On the Test Script, go to Actions column and follow the steps below
- On the Instruction with 'storeText' command, click on the radio button and select the 'Toggle Start Point'
- On the Instruction with 'else' command, click on the radio button and select the 'Toggle Break Point'
- Ensure that you are on the Results page of the AUT.
- Execute the tests by clicking on the play icon, select the environment and existing tab.
- Execution has successfully completed until the breakpoint. In this case, we executed the storeText function and verifyText function hence we did not see any movement in the AUT.
- Go to 'Execute and Debug' tab and notice the playhead where the execution is in the pause mode, instead of Stop mode.
- Also, open the variable inspector of the Test Script and go to Premium, notice that there is no Premium value stored. That means, the 'IF' condition is satisfied, execution will stop with IF Block & hence there is no need to go to the else block.