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
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
How to analyzing the checpoint results?
Which environments are supported by hp qtp?
How to save your test using quicktest professional (qtp)?
How does you test a weblink which is changing dynamically?
How to test login module with different username and password by using data driven testing in QTP?
Explain actions in qtp ?
How to interact tool & application build in QTP?
What is the virtual object?
what is the latest version of QTP? Main difference between 9.2 and 10 version
How can you send user defined messages to test report?
Is it possible to split an action? How?
What are the challenges you faced during you entire life automation ?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
Output values? i want a practical example