hi all
QTP recognizing objects
as "string_1","string_2","string_3","string_4" like that
but when using FOR LOOP for these.QTP not proceeding further
can i declare these _1,_2,_3,_4 as a single variable
Answer Posted / sachin
hey,
i have answer to this question.
i too have faced a similar kind of issue when looping
throgh a process while clisk on a link in page..
As stated in the question that values are changing
as "string_1","string_2","string_3","string_4" this is
mainly because the index value is changing..
Note : go to repository for string_1 and check the index
value , likewise check the index value for string_2 and
string_3..check if all three have an oderly increments like
for string_1 the index value in object repository will be 1
and string_2 should be 2.. and so on.
All to need to do is consider one recorded object either
srting_1 or string_2 .. or any one amoung the four recorded
object .. After loop completed one iteration and moves to
second iteration, jst set the index value of selected
object to 1, 2.. and so on ..Use SetTo property method to
set the index value ..
Do let me know if u have any problem's
Thanks
Sachin.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
How to get Traceability matrix from TD?
Should have experience in framework means?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
Can any one send me the QTP Basic Coding Samples?
how to acess a test in RSA?
UFT 12.02 which ALM version will support
Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.
How does you pass optional arguments in qtp?
What is QTP and the use of QTP in TD?
Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?
please any one can explain the keyword driven framework. with gmail example.
How does quicktest professional (qtp) identifies the object in the application?
What are the different attribute used with regular expression?
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance