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

maeSetPreRunScript

maeSetPreRunScript(
t_scriptName
[ ?tests l_testNames ]
[ ?enabled g_enabled ]
[ ?session t_sessionName ] 
)
=> t / nil

Description

Sets the given script as a pre-run script for the given test and sets its status.

Arguments

t_scriptName

Name of the script.

?tests l_testNames

List of the tests for which the script needs to be enabled.

?enabled g_enabled

Status of the script. The valid values are:

  • t: Enabled
  • nil: Disabled

Default value: t

?session t_sessionName

Name of the session.

If not specified, the currently active session is used.

Value Returned

t

The given script was set as the pre-run script.

nil

The command was not successful.

Examples

Sets preRun.il as the pre-run script for all tests and marks it enabled for all tests.

maeSetPreRunScript("preRun.il") 
=> t

Sets preRun.il as the pre run script for tests test1 and test2.

maeSetPreRunScript("preRun.il" ?tests '("test1" "test2")) 
=> t

Return to top
 ⠀
X