TestStatus Variable

The current ATest object status.

Type

enumATestStatus Public

Comment

The TestStatus variable contains the status of the current Test as set by the test code or calculated by ATEasy at the end of the test. This value is used to set the value of the Status property of the ATest object.

ATEasy initializes the TestStatus to None in the beginning of each test before calling the OnInitTest. At the end of the test and before OnEndTest is called, ATEasy uses the TestResult variable to determine and set the value of TestStatus according to the test type and the test requirements. If during the test TestStatus is set by the application to a value different than None, ATEasy does not calculate TestStatus at the end of the test and the TestStatus is left as is.

The TestStatus is also used by ATEasy when printing the log output to the test log.

When running multiple UUTs the TestStatus variable holds the current UUT log. Each execution thread have its own TestStatus variable.

Example

The following example uses the TestStatus to set the status of a test status:

if TestResult<2.3 then TestStatus=Err

See Also

ATest, ATest.Status, enumATestStatus, Log, Program, Task, Test, TestRefResult, TestResult