StartTime Property (ATest)

Version 7

Returns the time that this test started.

Syntax

 [ dateStart = ] Object.StartTime

The StartTime property syntax has the following parts:

 

Name

Type

Description

Object

ATest

ATest object

dateStart

DateTime

A floating number (Double) specifying the time that this test started.

Comments

StartTime is the time when the test get executed after all OnIniTest event were called.

Example

The following code fragment from the OnInitTest event of the program aborts the application if this test is starting after a hard deadline:

if Test.StartTime > m_dtmDeadline

print "*** Test "; Test.Name; " failed to start before deadline ***"

Abort

endif

Applies to

ATest

See Also

EndTime, DataTime data type, SDate, STime, FormatDateTime,  ParseDateTime, VarChangeType