background image
<< Opening and Editing a Best Script in Robot | Creating a Custom TestFactory Script >>
<< Opening and Editing a Best Script in Robot | Creating a Custom TestFactory Script >>

The SQAShellExecute statement

Opening and Editing a Best Script in Robot
5-31
To replace the StartApplication statement in a Robot script with the
SQAShellExecute statement:
1. Start Robot and open the script that you want to run from TestFactory.
2. Find and delete the "StartApplication" statement near the beginning of the
script.
3. On the line that contained the StartApplication statement, type the following
SQAShellExecute statement:
SQAShellExecute "LaunchAUT.exe", _
"<path to folder where TestFactory is installed>", _
"<project name>|:ExeName:<path to AUT>"
To get code coverage information for a Robot script, run it from TestFactory.
StartApplication statement
in a recorded Robot script
SQAShellExecute statement
NOTE: The underscore character at the end of the first two lines is a line
continuation character that makes the statement more readable. If you want
to keep the statement all on one line, delete the underscore characters.
NOTE: The SQAShellExecute statement starts the AUT when you play back the
script again from Robot. It is not necessary to restore the StartApplication
statement after you run the script from TestFactory.