Help needed in automating a Java window - 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 in automating a Java window (/Thread-Help-needed-in-automating-a-Java-window) |
Help needed in automating a Java window - adityasrinivasb - 06-13-2013 Hi I need some help in writing QTP code for a new window that has some Java components. This window has a Panel (JPanel) in the center of it with some text labels arranged one below the other and a arrow pointer > on the right of each text label. When I click on arrow > it opens a submenu with options. It looks something like this Test > Repair > Close > I am finding it difficult to write automation script for this. When I record, I see code Code: [b]JavaWindow("Ticket").JavaInternalFrame("Status ").JavaObject("JPanel").Click 45,10,"LEFT". [/b] Code: [b]JavaObject:Jpanel->JavaStaticText:Test[/b] What best I can do in this case? RE: Help needed in automating a Java window - ssvali - 06-14-2013 First add that object to your Object repository and try to highlight it. If it highlights then proceed with the code if not then we have get workaround for it. RE: Help needed in automating a Java window - Staff - 07-05-2013 Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time. |