Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description: This command is used to add an If statement under which another step(s) will be executed based on the result of comparison.

...

Procedure: Use Get_Web_Value command to retrieve the current value in Country text box. Add a step with If command and in the Left Value, enter the variable name preceded by @. Leave the Right Value blank. The operator needs to be “Equal” which means our next step will perform only if the value in Country text box is blank. Your next step is to use a Fill command with value “USA”. The remaining Print steps will execute depending on which condition is met. Your step steps will look like this:

...

See the Test Library path: subject7_samples/subject7_advanced_suite/subject7_modify_profile_information