Micro Focus QTP (UFT) Forums

Full Version: How to create non-used email address everything QTP scirpt runs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am recording my script for "Registraion" module of the website where I need to supply non-used Email address and Password to record the script.

Now when I run the script ( It has that email address Info ) then system displays an error message that "Supplied Email Address" is already exists.

I can manually change different email address in the script and it runs fine.

I want to know that is there any way to automate generation of new Email address so that i do not have to change it manually. If I paramatarize then also i need to enter pool of email address in the global data sheet.

Please provide your suggestions.

Thanks,
Bhav
Hello,

You can associate the email address with the present time and date to guarrante the email address is unique.
Hi,

You can use random number

Email = RandomNumber(999,9999)
Email = Email&RandomNumber(999,9999)


Email = "john"&Email&"@gmail.com"


Hope this works...