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

Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

1953


what is output value in QTP and how it can be used in automation testing

1450


what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com

2327


How you can find the absolute value of the number in qtp?

536


write the vb script for call to new action in qtp?

1871






What are the features and benefits of quick test pro (qtp 8.0)?

614


distinguish between old version and new version QTP features.

1878


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1521


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

585


What is a Patch in QTP?

619


Explain object spy in qtp.

605


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

627


how can i call function (which has link with excell sheet at a remote location) within another function

1588


How is a Step generator used in UFT?

671


what QTP Options do you know?

2939