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

why should we give deliver good quality software?

0 Answers  


Explain about the Test Fusion Report of QTP?

1 Answers   Crea,


Please explain me i am using QTP 9.5 ,i am creating re usable scripts,i have to pass data from one local sheet to another local sheet.for example i am creating emploee information, (data is in action 2 local sheet),In this data table emplyeee number will get,i have to pass employee number to another reusable script search data (action2 local data sheet)

2 Answers  


str="ramanareddy12345@gmail.com"to count alphabets,numarics and special charcters pls any one knows send to answer

3 Answers   Ziynx,


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

0 Answers   ING,






What is debugging? How you debug your script?

0 Answers  


what are all the fileds present in object repository?

0 Answers   Wipro,


Whether it is possible to test the adobe's controls like zoom, resize, save etc using QTP...If yes, how u can do the same?

1 Answers  


What is the difference between the design-time and run-time data tables?

0 Answers  


What are the enhancements u did after recording ur script?

1 Answers  


Hi All, I need 5 yrs exp manual and automation testing using QTP sample resume. is there any body having please send me my mail id is bjr@aol.in Tahnks in Advance

0 Answers  


How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions?

1 Answers   Motorola,


Categories