Skip to content

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.

So we will select the Toggle start point at storeText and execute the test until assertText for Result Header - You are younger than 19. Hence, our breakpoint will be after Result Header, which is on the instruction with 'else' command.


2. Practice
On the Test Script, go to Actions column and follow the steps below
  1. On the Instruction with 'storeText' command, click on the radio button and select the 'Toggle Start Point'
  2. On the Instruction with 'else' command, click on the radio button and select the 'Toggle Break Point'
  3. Ensure that you are on the Results page of the AUT.
  4. Execute the tests by clicking on the play icon, select the environment and existing tab.
  5. 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.
  6. Go to 'Execute and Debug' tab and notice the playhead where the execution is in the pause mode, instead of Stop mode.
  7. 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.





Feedback and Knowledge Base