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

hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1323


What are main panes available in qtp test browser?

543


i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)

1555


Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.

1566


How to integrate the qualitycenter with qtp

1776






Is it possible to change the values of analog recording?

576


Object repositories types, which and when to use?

581


Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B

2912


What are the types of object repository in qtp?

569


How the exception handling can be done using quicktest professional (qtp)?

573


What the differences are and best practical application of Object Repository?

592


How to use the object spy in quicktest professional (qtp) 8.0 version?

515


What is an optional step in qtp ?

639


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1303


Explain the use of action split in qtp?

569