Posts: 2
Threads: 1
Joined: Apr 2008
Reputation:
0
04-16-2008, 09:01 PM
Hello there, I am very new to the product (QTP 9.2) after using Empirix eTester for the past few years. Anyway, I am running some scripts where I need a unique and random user name (any alpha-num value > 5 chars) and email address. I can't seem to find anything in the help on how to do this. Any ideas??
Posts: 190
Threads: 2
Joined: Mar 2008
Reputation:
0
04-17-2008, 12:38 AM
Hi,
Right, it should throw error.
If you want to get the return value from a function you need to assign it to function name.
Example: In your case, instead of sum = a+ b USE getsum = a + b. It will work!!
Posts: 190
Threads: 2
Joined: Mar 2008
Reputation:
0
04-18-2008, 02:43 AM
(This post was last modified: 04-18-2008, 02:44 AM by niranjan.)
Thanks for pointing it out. Its my mistake.
Try this...
StrE = GetRandomString(10)
Posts: 2
Threads: 1
Joined: Apr 2008
Reputation:
0
05-13-2008, 05:35 PM
Sorry guys but this is still not working - any more ideas?
Posts: 190
Threads: 2
Joined: Mar 2008
Reputation:
0
05-14-2008, 03:25 AM
Whats the Error you are getting...