Product Documentation
Virtuoso ADE SKILL Reference
Product Version IC23.1, November 2023

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

t_session

Name of the session.

t_testName

Name of the test to which the imported script is attached.

t_preRunScriptName

Location path and name of the script to be imported.

Value Returned

t_preRunScriptName

Name of the pre-run script imported for the given test.

nil

Unsuccessful operation.

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

axlSetPreRunScriptEnabled


Return to top
 ⠀
X