axlImportPreRunScript
axlImportPreRunScript(t_sessionName t_testName t_preRunScriptName) =>t_preRunScriptName/ nil
Description
Imports and attaches the given script to the specified test. In the GUI of the application, you can right-click the test name and choose Add/Edit Pre Run Script to view or edit the pre-run script attached to the test.
If you make any changes to the test script in the Add/Edit Pre Run Script form, the original script is not modified. Instead, the changes are saved in a new script, which is then attached to the test.
Arguments
Value Returned
Examples
The following example attaches script myscript to test AmpTest1 in the current session.
axlsession=axlGetWindowSession( hiGetCurrentWindow())
=> "session0"
axlImportPreRunScript("session0", "AmpTest1", "./myscript")
=> "myscript"
Related Topics
Return to top