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

maeSetTestEnvVar

maeSetTestEnvVar(
t_testName
t_varName
g_varValue
[ ?session t_sessionName ]
)
=> t_value / nil

Description

Sets the value for the given environment variable at the test level. The value is used only by the specified test. Other tests in the session use the value set at the global level or specific values set for them, if any.

Arguments

t_testName

Name of the test for which you need to set the value for an environment variable.

t_varName

Name of the environment variable.

g_varValue

Valid value for the environment variable.

?session t_sessionName

Name of the session.

If not specified, the current session is used.

Value Returned

t_value

The value of the environment variable is set successfully for the given test.

nil

The value of the environment variable is not set for the given test.

The function also returns an error if the given value is invalid.

Examples

Sets the values for PinCheck Term Mismatch Action and PinCheck Term Direction Mismatch Action in the Environment Options form for test AC in ADE Assembler:

; load the setup
sess=maeOpenSetup("opamp090" "full_diff_opamp_AC" "maestro11" ?mode "a")
=> "fnxSession0"
testnames=maeGetSetup()
> ("AC" "TRAN")
maeSetTestEnvVar( "AC" "termDirectionMismatch" "ignore" ?session "fnxSession0") =>"ignore"

Return to top
 ⠀
X