Result Property (ATest)

Returns or sets the result of the test after the test is complete.

Syntax

Object.Result [ = vResult ]

The Result property syntax has the following parts:

 

Name

Type

Description

Object

ATest

ATest object

vResult

Variant

A value specifying the result of this Test.

Comment

This Result property value is set by the ATEasy run-time from TestResult after the test ends (after OnEndTest event). The test code need to set the TestResult during the test (and not the Test.Result which you should not use to set the result). You use the Result property after the test is complete. For example you can check the result of previous tests which already completed, please see an example below.

Example

The following statement checks the result of the second test of the current task :

if Task.Tests(1).Result > 1.5

! do something

endif

Applies to

ATest

See Also

Mask, Ref, Ref2, Type, TestResult