beautypg.com

Testruncreationdate, Testruncreationtime – MTS Multipurpose Elite User Manual

Page 225

background image

TestRunCreationDate

Note:

This function replaces the SampleCreationDate function from the TW4 application.

Returns

Returns the creation date of the test run.

Syntax

TestRunCreationDate([ datePattern])

Parameters

datePattern—Formats the date according to the specified pattern. For example, “d” is a short date pattern
(MM/dd/yyyy); “D” is a long date pattern (dddd, MMMM dd, yyyy).

Detailed date and time pattern format specifier information is available from the MSDN resources Web
site.

Examples

TestRunCreationDate([ “d”])

Returns a test run creation date in a short date format, assuming a United States English culture (us en):

4/15/2012

TestRunCreationDate([ “D”])

Returns a test run creation date in a long date format, assuming a United States English culture:

Saturday, March 31, 2012

Unit Class

String

TestRunCreationTime

Note:

This function replaces the SampleCreationTime function from the TW4 application.

Returns

Returns the creation time of the test run.

Syntax

TestRunCreationTime([ timePattern])

MTS TestSuite | 225

Working with Variables