Establishes a connection to the application repository to retrieve the following information:
The statement is typically followed by a Script.RunApp or Script.ConnectToProcess statement unless the script is called by another script.
If the SetContext statement is deleted, the application cannot run and the script fails.
Note: If a script needs to run more than one application or connect to additional running processes, you must use the Script.ClearContext statement to terminate the existing connection. You also need to add another SetContext statement to the script to establish a new connection to the repository.
To establish a connection in a load test script, use the Script.SetLoadTestContext statement.
Syntax
SetContext("Application/Version")
Arguments
Argument | Description |
---|---|
Application/Version | Application name and version number to use in the application repository, separated with a forward slash. |
Note: If the application has the same name in the local and global repository, QA Wizard Pro uses the application in the local repository by default. To change the repository used during playback, add 'Global:' before the application name.
Supported objects
Script
Example
Script.SetContext("WysiCorp Login/1.0")
Script.RunApp()