maeCreateRunCondition
maeCreateRunCondition(
t_sourceRunName
[ ?name t_name ]
[ ?run t_run ]
[ ?test t_test ]
[ ?output t_output ]
[ ?status t_status ]
[ ?session t_session ]
)
=> t / nil
Description
Adds a run condition to the specified run in the run plan.
Arguments
|
t_sourceRunName
|
Name of the run for which a run condition is to be created.
|
|
?name t_name
|
Name of the run condition to be created. When not specified, the default condition name condx is used, where x is in incremental number starting from 1.
|
|
?run t_run
|
Name of the run for which the condition is to be created. The default value for this argument is "".
|
|
?test t_test
|
Name of the test to be checked in the condition. The default value for this argument is "".
|
|
?output t_output
|
Name of the output to be checked in the condition. The default value for this argument is "".
The valid values are All and Any.
|
|
?status t_status
|
Status to be checked for the new condition. The default value for this argument is "".
The valid values are pass, fail, and error.
|
|
?session t_session
|
Name of the session. If not specified, the current session is used.
|
Value Returned
|
t
|
A run condition is created.
|
|
nil
|
Indicates an error.
|
Examples
Adds a run condition named COND1 for Run.0. In this condition, the tool needs to look for the fail status for any output of the test testA:
maeCreateRunCondition("Run.0" ?name "COND1" ?run "Run.1" ?test "testA" ?output "Any" ?status "fail")
=> t
Related Topics
Executing a Run Plan Based on Conditions
Return to top