Versions Compared

Key

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

...

The variables defined in save variable commands such as in Save and Use Variables that are executed inside of scripts will still be usable in parent or sibling scripts (or in the Workspace).

CommandExamplesExplanation

include script "<Script Name>"

include script "Open Home Page"

Retrieves the named script if it exists and places all of the steps inside of the script at the head of the commands to be executed.

If the script does not exist, the step will return with an error.

include script with short code "<Short code>"

include script with short code "openWP"

Retrieves the script with the given short code if it exists and places all of the steps inside of the script at the head of the commands to be executed.

If the script does not exist, the step will return with an error.

include script "<Script Name>" where <Variable> is "<Value>" and <Variable> is "<Value>"

include script "Log in to Composer" where browser is "chrome"

Retrieves the named script if it exists and places all of the steps inside of the script at the head of the commands to be executed.

When this occurs, any variables that are defined in the include command will replace any occurrances of the named variables in the steps of the script.

 Otherwise

Otherwise, if the script does not exist, the step will return with an error.

include script "Log in to Composer" where browser is "chrome" and username is "khoerr@toffeetesting.io"

include script "<Script Name>" with <Variable> = "<Value>", <Variable> = "<Value>"

include script "Rotten Potatoes" with movieTitle = "TMNT"

include script "Access secret safe" with MFAcode = "868431", print = "!!@@sa57"
include script with short code "<Short code>" where <Variable> is "<Value>" and <Variable> is "<Value>"

include script with short code "Calc-sqrt" where y is "144", and result is "12"

Retrieves the script with the given short code if it exists and places all of the steps inside of the script at the head of the commands to be executed.

When this occurs, any variables that are defined in the include command will replace any occurrances of the named variables in the steps of the script.

Otherwise, if the script does not exist, the step will return with an error.

include script with short code "Calc-mult" where x0 = "11", y0 = "17", z0 = "187"

include script with short code "<Short code>" with <Variable> = "<Value>", <Variable> = "<Value>"

include script with short code "ML_LOOKUP" with artist = "The Beatles" and record = "sgt-pepper"