![]() |
OTX Reference
|
|
Evaluate assertions. More...
Public Attributes | |
BooleanTerm | condition |
Cardinality [1] The expression to evaluate. More... | |
StringTerm | errorMessage |
Cardinality [0..1] An error message which may be included in the report to the runtime system, if the assertion fails More... | |
![]() | |
OtxLink | validFor |
Cardinality [0..1] Validity of ActionRealisation. More... | |
Evaluate assertions.
If the runtime is configured to evaluate assertions
, it evaluates the given boolean expression. If the expression evaluates to true
, nothing happens. If the expression evaluates to false, the execution of OTX procedure will be stopped (the exact runtime behaviour is unspecified), and the failed assertion
is reported to the runtime system (out of OTX scope). The errorMessage
term, if present, will only be evaluated when the assertion failed. In particular, the errorMessage
term cannot throw any exceptions unless the assertion failed. If the runtime is configured not to evaluate assertions, the Assert
action does nothing. In particular, the condition
and errorMessage
terms will not be evaluated, and thus cannot throw any exceptions.
BooleanTerm OpenTestSystem.Otx.Extensions.Assertion.Actions.Assert.condition |
Cardinality [1]
The expression to evaluate.
StringTerm OpenTestSystem.Otx.Extensions.Assertion.Actions.Assert.errorMessage |
Cardinality [0..1]
An error message which may be included in the report to the runtime system, if the assertion
fails