08-25-2009, 07:31 PM
1. getvar - getvar Returns the value of a testing option/configuration parameter.
Examples: 1. old_t = getvar ("timeout"); 2. old_d = getvar ("delay");
2. return - returns an expression to the calling function or test. It also halts execution of the called function and passes control back to the calling function or test. If no expression is used, then an empty string is returned.
3. match - finds the occurrence of a regular expression in a string. This function returns the location in the string at which the regular_expression is found. The value returned is the character position at which the regular expression starts.
4. treturn - The treturn statement is used when calling a test. It stops a called test and returns control to the calling test. It also provides a return value for the called test.
5. getenv - returns the value of any environment variable, as defined WinRunner runtime environment.
getenv function reads the current value of an environment variable.
Examples: 1. old_t = getvar ("timeout"); 2. old_d = getvar ("delay");
2. return - returns an expression to the calling function or test. It also halts execution of the called function and passes control back to the calling function or test. If no expression is used, then an empty string is returned.
3. match - finds the occurrence of a regular expression in a string. This function returns the location in the string at which the regular_expression is found. The value returned is the character position at which the regular expression starts.
4. treturn - The treturn statement is used when calling a test. It stops a called test and returns control to the calling test. It also provides a return value for the called test.
5. getenv - returns the value of any environment variable, as defined WinRunner runtime environment.
getenv function reads the current value of an environment variable.