1) 100 test boxes there in application. how to click 100
test boxes using vb script? 2) 100 objects there in web
page,how we will store that 100 objects repostries?

Answers were Sorted based on User's Feedback



1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 object..

Answer / uday

The expectated answer for these kind of questions is using
descriptive programming.

If you create single webedit object, then u can use it for
100 webedit objects.

set editObj=description.create
editObj("micclass").value="webedit"

set editChildObjCol=b().p().childobjects(editObj)
for i=1 to 100
editChildObjCol(i).click
next

Is This Answer Correct ?    17 Yes 2 No

1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 object..

Answer / taj

HOW CAN U CLICK A EDITBOX.?


ANS HERE IS:
CNT=EDITCHILDOBJ.COUNT
FOR I=0 TO CNT-1
EDITCHILDOBJ(i).set "xyz"
next

Is This Answer Correct ?    1 Yes 1 No

1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 object..

Answer / mohammed zakir

CNT=EDITCHILDOBJ.COUNT
FOR I=0 TO CNT-1
EDITCHILDOBJ(i).set "xyz"
next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is the scripting language used in QTP?

11 Answers   IBM,


Which recording modes need more memory?

0 Answers  


What is the latest version of QTP? aster googling i found it 9.5 . but somewhere in my frnds resume i hve seen 10.0 so i am a bit confused pls let me know.

4 Answers   NCR,


what is the main process in QTP?

3 Answers   Ordain Solutions,


Is there any vbscript in QTP for Data Driven Test instead of using the option provided by QTP?

2 Answers  


we have 10 actions in out test how can we convert 9th action is main action ? how ?

5 Answers  


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

0 Answers  


Can we create test script with out Step Generator?

4 Answers  


Does QTP support Linux Red Hat? Does QTP support Flash?

4 Answers  


How to launch application under test through VBscript without using systemutil.run or invokeapplication?

3 Answers  


Hi Guys, In one of my interviews, I was asked to Write a paragaraph explaining how much scripting I did in QTP? I don't know where to start and what to write. So I need your help in writing that.

1 Answers  


w is configaration management

3 Answers   TCS,


Categories