Micro Focus QTP (UFT) Forums
Parameter iteration - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Parameter iteration (/Thread-Parameter-iteration)



Parameter iteration - bistritapcv - 03-28-2013

I wrote a small (mostly for learning purposes) script. This script

1. logs in to a customer database web site
2. enters a phone number into a search box and clicks search.
3. logs out again

I parameterized the phone number to be in the global data sheet and
put three numbers there.

My question is this. For each iteration it does steps 1, 2 and 3.
Once I am logged in there is no need to log out and back in after each
query. I can't figure out though how to have it iterate just step 2. Logging in and out each iteration is time consuming.

Any thoughts?


RE: Parameter iteration - Sathiya - 03-28-2013

//login code
Code:
PhoneNumbers="1,2,3,4,5,6"
Phno=Split(PhoneNumbers,",")
For i=0 to Ubound(Phno)
Code to enter phone number
Next
//log out code


try with the above idea.