How to Use virtual object? - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: How to Use virtual object? (/Thread-How-to-Use-virtual-object) |
How to Use virtual object? - tester_rahul - 02-18-2010 I have a quesry regarding what objects are candidates for virtual objects and how do we use virtual object? I have used the virtual object manager to create a virtual object but i am not sure how to use it? -Rahul RE: How to Use virtual object? - devanggoel - 02-18-2010 hi dear, first of all clear the concept of virtual object. virtual objects are the objects who looks like the normal objects but not recognized by the qtp.take a ex. open the ms paint and record the test for doing the signature by selecting the pencil and color then run the test and see the effect........that means pencil or color in a table is looking like bitmap not the button in table and also see the OR there is no object about button or table about pencil or color. so that way we use the Virtual Object process to map the virtual object with the Standard class. now use the tools>virtual objects>virtual object manager.. first delete the old VO then add new... Process to add the VO..for pencil open the tools>virtual objects>virtual object manager>new click next>select Class as button>click mark object and mark properly the pencil image>click next>next> enter the data as u want then select the yes checkbox for next VO and make another 4 a color table end finish... now see the OR,plz comment out the 'Window("Paint").WinObject("Tools").Click 19,93 'Window("Paint").WinObject("Colors").Click 74,29 and run the test. ask me if u face any prob. Happy testing RE: How to Use virtual object? - tester_rahul - 02-22-2010 Hi, I tried this and also created a new virtual object for pencil, it is also being reflected in virtual object manager, but i am not sure how i can use this virtual object. RE: How to Use virtual object? - devanggoel - 02-22-2010 see... comment the step who is created by u as VO and run then u can see it. don't think......first do that then think what is it................. RE: How to Use virtual object? - tester_rahul - 02-22-2010 I thinjk i got it now. We need to define the virtual objects first and then use them. Thanks a lot Rahul. |