Returns the type of the current Test.
[ lType = ] GetTestType ( )
The GetTestType procedure syntax has the following parts:
|
Name |
Type |
Description |
|
lType |
enumATestType |
Test type |
enumATestType can be one of the following values:
|
Name |
Value |
Description |
|
atestTypeMinMax |
1 |
MinMax |
|
atestTypeOther |
2 |
Other |
|
atestTypeRef2 |
3 |
Ref2 |
|
atestTypeRefx |
4 |
RefX |
|
atestTypeTolerance |
5 |
Tolerance |
|
atestTypePrecise |
6 |
Precise |
|
atestTypeString |
7 |
String |
The Test type is defined using the Task/Test Property page.
The following example uses GetTestType to customize the Log output.
OnEndTest()
{
If GetTestType( ) = 1 Then
sType="MIN-MAX"
Else
sType="Other"
Endif
Print , GetTestNum();".";sType;".";
Print GetTestName();
Print "-";asStatus[TestStatus]
}