Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Equivalent functions for WR functions.
#3
Solved: 11 Years, 3 Months, 2 Weeks ago
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.
Reply


Messages In This Thread
RE: QTP Equivalent functions for WR functions. - by prabhu656656 - 08-25-2009, 07:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error on Passing Object between functions SaranKumarV 2 3,436 02-16-2011, 10:36 AM
Last Post: SaranKumarV
  Executing Exe converted functions in QTP 9 scat 1 2,908 04-25-2008, 01:51 PM
Last Post: vaibhav_gandhi

Forum Jump:


Users browsing this thread: 1 Guest(s)