beautypg.com

Testmodificationtime – MTS Multipurpose Elite User Manual

Page 224

background image

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

TestModificationDate([ “d”])

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

4/15/2012

TestModificationDate([ “D”])

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

Saturday, March 31, 2012

Unit Class

Integer

TestModificationTime

Note:

This function replaces the SampleModificationTime function from the TW4 application.

Returns

Returns the last modification time of the test run.

Syntax

TestModificationTime([ 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

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

Displays the time as 10:04:01 PM.

Unit Class

String

224 | MTS TestSuite

Working with Variables