GetTestType Procedure

Returns the type of the current Test.

Syntax

[ lType = ] GetTestType ( )

The GetTestType procedure syntax has the following parts:

 

Name

Type

Description

lType

enumATestType

Test type

Where

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

Comments

The Test type is defined using the Task/Test Property page.

Example

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]

}

See Also

GetTestPin, GetTestUnit