Help needed on understanding the Properties and Methods related to a ActiveX control. - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Help needed on understanding the Properties and Methods related to a ActiveX control. (/Thread-Help-needed-on-understanding-the-Properties-and-Methods-related-to-a-ActiveX-control) |
Help needed on understanding the Properties and Methods related to a ActiveX control. - DhivaM - 05-19-2012 Hi all, Help needed on understanding the Properties and Methods related to a ActiveX control. I am working on Automating a legacy application(developed using VB 6.0 and FarPoint ActiveX controls)using QTP Ver 11 (with ActiveX, VB, .Net Add-ins.. Here is a piece of script written by one of x-team mates (who left the organization), to get the caption of available menus and sub-menus in the Sidebar (it is an ActiceX control) Code: set objMainmenu = VbWindow("frmC2000").ActiveX("SSListBar").Object.Groups I’m able to understand the flow of the script. A reference object “objMainMenu” has been created in the first line. ActiveX “.Object” is being used to get access the Native property “.Group” I have no clue on how the other properties / methods are identified and being used ( like objMainmenu.item(i).caption ; objMainmenu.item(i).listitems.item©.text ) in the script. Are there anyways to figure out all the available properties & methods related to “objMainMenu” ? Can someone please help me? Note: I ran the script in debug mode.. and used QTP’s “Add to watch” feature to see the reference object (objMainMenu) properties by expanding the object. But it did NOT work. On run-time, under the “Add to watch” section - the objMainMenu just showed as “object”. Thanks! DhivaM RE: Help needed on understanding the Properties and Methods related to a ActiveX control. - ravi.gajul - 05-21-2012 Hi Dhiva, Please go through the qtp help file-->quick test professional object model reference--->ActiveX This should help you with all supported methods and functions for different activex objects Regards, Ravi RE: Help needed on understanding the Properties and Methods related to a ActiveX control. - DhivaM - 05-21-2012 Hi Ravi, Thanks for taking time and responding to my post. As suggested, I did go through the QTP help file. But couldn't manage to find any information about the properties / methods that I am looking for. I have also submitted a post in HP QTP forum.. Please take a moment to refer this link... It contains more details with documentation.. http://h30499.www3.hp.com/t5/Functional-Testing-QTP-Support/Help-needed-on-understanding-the-Properties-and-Methods-related/td-p/5662253 Looking forward to hear back from you soon. Thanks! Dhiva.M |