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

suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

0 Answers  


what is the difference between an Action and a function in real time

4 Answers  


To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0

2 Answers  


In QTP for .net application which plug in is used? For Java Application which plug in is used ?

2 Answers   AppLabs, Fraze Tech,


Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)

0 Answers  






What is expert view in qtp?

0 Answers  


How to Install QTP on Citrix Environment? Possible send me the installation steps.. That would be great help

1 Answers  


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

0 Answers   Infosys,


Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version

0 Answers  


What are the challenges you faced during you entire life automation ?

0 Answers   Tech Mahindra,


Hi everybody, Can anybody tell me that how the QTP frameworks are implemented . I wanted to know with examples . Thanks in advance

2 Answers  


when qtp recognizes a web link like (hyper link)wich properties it is going to take to identify the objects unquely? what is Ini file in QTP?

1 Answers   Symantic Space,


Categories