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 am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
What is the extension of the recovery scenario file in qtp?
What are the Test design techniques you uses in ur project?
what is description object?
How to creating an output value using quicktest professional (qtp)?
What are the types of data tables in qtp?
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
How will you check that your test cases covered all the requirements?
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
Explain about the quicktest professional (qtp) automation object model?
what is the latest version of QTP? Main difference between 9.2 and 10 version
Explain the check points in quicktest professional (qtp)?
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.