Skip to content

gotoIf (Looping & Flow Control)

Compatible with:
  • Purpose
  • This command forces the execution to skip an immediate set of commands/scenrios and jump to the set of commands identified by the label ONLY IF the condition evaluates to true, else the execution continues with the immediate set of command(s).  'label' is the mandatory field. If a variable used as the label does not exist in any of the scripts, the test run will be aborted during the execution of goto or gotoIf commands.
  • Syntax
  • gotoIf(condition, labelname)
  • Target
  • condition
  • Value
  • labelname - label name to jump.
  • Return Value
  • N/A

Example(s):

Click here to see the example


 

Feedback and Knowledge Base