Skip to content

goto (Looping & Flow Control)

Compatible with:
  • Purpose
  • This command forces the execution to skip immediate set of commands (in the test script) and/or Test Scenrios(s) and start executing the test from the given label. 'label' is a mandatory field.  If the label is not mentioned in Target field, the command fails during execution. If a variable used as label does not exists in any of the scripts, the test run will be aborted during the execution of goto or gotoIf commands.
  • Syntax
  • goto(labelname)
  • Target
  • labelname - label name to jump.
  • Value
  • N/A
  • Return Value
  • N/A

Example(s):

Click here to see the example


 

Feedback and Knowledge Base