Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

""SERVERMACHINEInstallPath
NameDescriptionTypeUsage Example
HostnameThe Continua server hostnameString$Server.Hostname$"SERVERMACHINE"
InstallPathThe Continua server install pathString$Server.InstallPath$"C:\Program Files\VSoft Technologies\ContinuaCI\"
NowThe current date and time given as local to the serverDateTime$Server.Now$"01/01/2014 5:03:18 PM"
NowUtcThe date and time given as UTCDateTime$Server.NowUtc$"01/01/2014 7:04:01 AMHostnameThe Continua server hostnameString$Server.Hostname$"
The Continua server install pathString$Server.InstallPath$"C:\Program Files\VSoft Technologies\ContinuaCI\"UrlThe web service URLString$Server.Url$"http:\\SERVERNAME:8080"

...

NameDescriptionTypeUsage Example
GetBoolean



GetDate



GetDateTime



GetNumber



GetString



NewGuidCreate a new randomly generated GUIDGuid$Utils.NewGuid$"da47b2d6-3580-48ed-b27a-f152da2345e6"
RandomNumber

Generate a new random integer value

If one parameter is provided it designates a random number in the range of greater than or equal to zero and the number provided will be generated

If two parameters are provided they designate the range for the generated number.

If no parameters are provided a 32-bit integer greater than or equal to zero and less than Int32 max value (2,147,483,647) will be generated.

Integer

$Utils.RandomNumber("1", "10")$

$Utils.RandomNumber("10")$

$Utils.RandomNumber$

5

2

1906529119 

...

Date Properties and Functions

NameDescriptionParametersReturn TypeUsage Examples
Day

string array

DayOfWeek




DaysAgo




FormatFormats a date or time value using standard or custom .Net formatting strings
String$Server.Now.Format("hh:mm")$"23:55" (given the date time "31/12/2000 23:55:333")
Month




ToLongDateString




ToShortDateString




Year










DateTime Properties and Functions

NameDescriptionParametersReturn TypeUsage Examples
FormatFormats a date or time value using standard or custom .Net formatting strings
String$Server.Now.Format("hh:mm")$"23:55" (given the date time "31/12/2000 23:55:333")
Hour




HoursAgo




Millisecond




Minute




MinutesAgo




Second




SecondsAgo




ToLongTimeString




ToShortTimeString




Year










TimeSpan Properties and Functions

NameDescriptionParametersReturn TypeUsage Examples
FormatFormats a date or time value using standard or custom .Net formatting strings
String$Server.Now.Format("hh:mm")$"23:55" (given the date time "31/12/2000 23:55:333")
FullAbreviatedText




Hours




LongText




Milliseconds




Minutes




Seconds




ShortAbbreviatedText




ShortText




ShortTextPadding




Text




TotalHours




TotalMilliseconds




TotalMinutes




TotalSeconds