The Precise test is an analog test in which the numeric value of the TestResult variable is compared to a precise Value. If TestResult is equal to the Value, then TestStatus is Pass. Use the Precise test for tests in which you want the TestResult to equal an exact integer value. You can also use Precise tests with floating point numbers, but this is not recommended, since floating point number comparisons require some tolerance for accuracy.
To define a Precise Test's properties:
1. Select
the test and click
(Properties) on the ATEasy
toolbar. The Test Properties dialog
appears:
2. In the Value field, enter the precise integer value to which TestResult is to be compared.
3. Make other selections and entries as needed in the dialog box. For descriptions of the common test properties (name, ID, etc.), see Test Properties Window.
4. Click the Windows Close button in the upper-right corner of the dialog box to close it.
Here is an example of Precise test log output in text format:
Here is an example of the same Precise test log output in HTML format:
The following code simulates the way ATEasy calculates TestStatus in a Precise test:
if TestStatus=NONE and VarType(TestResult) <> vtEmpty then
if TestResult = Test.Value
TestStatus=PASS
else
TestStatus=FAIL
endif
endif
! The status now is in TestStatus into which ATEasy
! writes the status value.
Value Property (ATest), TestResult Variable, TestStatus Variable