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


Please Help Members By Posting Answers For Below Questions

What is a programmatic description?

607


How many types of Automation frameworks are there in UFT? Describe them.

562


What is the quicktest professional testing process?

535


What is quicktest professional (qtp)?

568


UFT 12.02 which ALM version will support

985






Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?

1564


What Folder Structure following in Keyword Driven Frame work?

2289


How many types of parameters are available in quicktest professional?

528


Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.

3425


Explain the concept of object repository and how QTP recognizes objects?

554


How do you synchronization point through DP?

604


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

598


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

1459


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2278


We stored into the objects OR and then write the scripting

1546