Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parameter iteration
#1
Not Solved
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?
Reply
#2
Not Solved
//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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 852 04-23-2020, 07:08 PM
Last Post: BGunay
  UFT Tool runs more than one iteration always cthossain 2 3,331 02-12-2017, 01:25 PM
Last Post: cthossain
  Function return value is not passed during the 3rd iteration premanand1979 0 2,026 10-16-2014, 09:40 PM
Last Post: premanand1979
  Action Parameter passing problem Qtpuser1 1 2,708 04-18-2014, 06:23 AM
Last Post: kgovadav
  Iteration in Local sheets for UFT11.5 haithamQTP 1 3,006 02-27-2014, 09:12 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)