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
Have you faced any problems with object repository?
What are the challenges u faced in testing with crm domain? How u overcome with?
hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com
What is action? How many types of actions are there in qtp?
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?
could any help me please, how to work on visual foxpro application using UFT
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
What are benefits of qtp?
How will you test a stapler?
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet
What is quicktest professional (qtp window?
In qtp, how you can exit for loop?
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
Explain about datafile/verification of date file when file is not available in local system?
how to idetfy which test cases are automated?who will deside that plz tell me