Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create non-used email address everything QTP scirpt runs
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
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
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Hello,

You can associate the email address with the present time and date to guarrante the email address is unique.
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi,

You can use random number

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


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


Hope this works...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Send automatic email notification when test run started helmzshelmz 0 1,114 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  UFT Tool runs more than one iteration always cthossain 2 3,825 02-12-2017, 01:25 PM
Last Post: cthossain
  cannot create java virtual machine on QTP 12.02 version richa5685 0 2,007 02-23-2016, 11:18 AM
Last Post: richa5685
  How to attach HTML file to Email Naresh 0 3,084 04-06-2015, 02:04 PM
Last Post: Naresh
  How to schedule regular UFT runs MasterChief 1 3,479 12-04-2014, 09:57 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)