how to get the object count ?????????

Answer Posted / prasad.dasagrandhi

iam using QTP 9.2

in a cal appli i have add,sub,mul,div buttons to get the
count i have written this script

but it is showing count is o, can anybody help me


systemutil.Run"C:\Users\Raju\Desktop\cal.exe"
Set desc =Description.Create()
desc("micclass").Value = "Button"
set button=vbwindow("vbname:=CALCULATOR").vbbutton
("vbname:=ADD").ChildObjects(desc)
a= button.count
msgbox (a)

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does you test a weblink which is changing dynamically?

642


What are the major/ important methods, functions in QTP we use realtime testing

2359


if mandatory and Assitive propertys are shows same how will u write skript in QTP window

1729


If I give some thousand tests to execute in two days what do you do?

678


What is the difference between call to existing action and copy of an action?

686






How to get popup error message.

1114


Discuss the QTP Environment?

715


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3536


if our qtp vb Script may be Currepted then What we want do?

1580


If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?

665


To which environments does quicktest professional (qtp) supports?

674


What is the file extension of the code file and object repository file in QTP?

700


What is the meaning Work bench?

1841


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

1715


what is clean sweep?

1971