(QTP)Set values to method..in item(i)
-
i have a problem in my scripts of QuickTestProfessional tool. i have an application with design surface.Controls are dragged and dropped above the panel.In the script i iterate thru each and every control placed on panel. How can i get the class type of Control? How will i set values to methods of the control? The script for that is as follows...In 2nd statement i have 4 params to be passed in update property .While execution, control name doesnt change with update property. set myControl=swfwindow("aaa* BT????????????").Swfobject("Panel1").Object.Controls.item(i) myControl.updateproperty "Name",null, "dhdugf","hdsf" set childern1= swfwindow("aaa* BT????????????").Swfobject("PropertyGrid").Object.item Dim nme1 Dim ichild For j= 0 to childern1.count-1 ichild=childern1.item(j).value ichild= "AAAAAAA" nme1 = childern1.item(j).name msgbox nme1 & " :" & childern1.item(j).value Next Any inputs???.....
-
i have a problem in my scripts of QuickTestProfessional tool. i have an application with design surface.Controls are dragged and dropped above the panel.In the script i iterate thru each and every control placed on panel. How can i get the class type of Control? How will i set values to methods of the control? The script for that is as follows...In 2nd statement i have 4 params to be passed in update property .While execution, control name doesnt change with update property. set myControl=swfwindow("aaa* BT????????????").Swfobject("Panel1").Object.Controls.item(i) myControl.updateproperty "Name",null, "dhdugf","hdsf" set childern1= swfwindow("aaa* BT????????????").Swfobject("PropertyGrid").Object.item Dim nme1 Dim ichild For j= 0 to childern1.count-1 ichild=childern1.item(j).value ichild= "AAAAAAA" nme1 = childern1.item(j).name msgbox nme1 & " :" & childern1.item(j).value Next Any inputs???.....
I think you'd be better off asking HP about issues with QTP. I've never used it, and it's quite likely that anyone else who has used it will see your post. From your code sample, it looks like your asking about using the UpdateMethod property of some object, though I can't figure out what that object it. I do know it's not anything to do with VB6 or VB.NET. You're best source of information is going to be the manufacturer of the library(s) you're using.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007