Directory functions, Currentprojectdirectory, Currenttestdirectory – MTS Multipurpose Elite User Manual
Page 226

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
TestRunCreationTime([ “hh:mm:ss tt”])
Displays the time as 10:04:01 PM.
Unit Class
String
Directory Functions
This section provides reference information for directory functions that return information about the default
project, test, test run, external files, and data export directories that are configured in Preferences >
Configuration > Project.
CurrentProjectDirectory
Returns
Returns the current project directory.
Syntax
CurrentProjectDirectory()
Unit Class
String
CurrentTestDirectory
Returns
Returns the current test directory.
Syntax
CurrentTestDirectory()
Unit Class
String
226 | MTS TestSuite
Working with Variables