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

Answer Posted / arjuncr

dear raju it is wrong

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)

this one is correct
systemutil.Run"C:\Users\Raju\Desktop\cal.exe"
Set desc =Description.Create
desc("class Name").Value = "Button"
set button=window("regexpwndtitle:=CALCULATOR").ChildObjects
(desc)

msgbox desc.count

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Port testing. Whhen will you perform?

1604


What is the basic concept of quicktest professional?

651


what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

1800


How to start recording using quicktest professional (qtp)?

692


Explain the checkpoint in qtp?

709






What are the challenges u faced in testing with crm domain? How u overcome with?

1588


What is the difference between run time object and test object?

666


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

1806


What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);

3595


How to record application running on the Virtual machine?

737


Your roles and responsibilities and daily tasks? (As automation tester)

2680


In qtp, how you can exit for loop?

616


What is checkpoint in qtp?

650


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

673


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

1705