beautypg.com

Testcreationtime, Testmodificationdate – MTS Multipurpose Elite User Manual

Page 223

background image

Examples

TestCreationDate([ “d”])

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

4/15/2012

TestCreationDate([ “D”])

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

Saturday, March 31, 2012

TestCreationTime

Returns

Returns the creation time of the test.

Syntax

TestCreationTime([ timePattern])

Parameters

timePattern—Formats the time according to the specified pattern. Set the time pattern to the exact format
desired. For example, to obtain the pattern h-mm-ss for hours-minutes-seconds, the function should specify
"hh-mm-ss".

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

Example

TestCreationTime([ “hh:mm:ss tt”])

Displays the time as 10:04:01 PM.

Unit Class

String

TestModificationDate

Note:

This function replaces the SampleModificationDate function from the TW4 application.

Returns

Returns the last modification date of the test run.

Syntax

TestModificationDate([ datePattern])

MTS TestSuite | 223

Working with Variables