Micro Focus QTP (UFT) Forums
How to add all the Objects to OR in a single attempt for any Java Screen? - 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: How to add all the Objects to OR in a single attempt for any Java Screen? (/Thread-How-to-add-all-the-Objects-to-OR-in-a-single-attempt-for-any-Java-Screen)



How to add all the Objects to OR in a single attempt for any Java Screen? - ShrikantBiradar3449 - 11-10-2010

Hi Guys,

I am working on a Java Swing Application and want to add all the objects to OR for a particular screen in a single attempt either manually or in script.

I need this bcoz I have to change few properties of all these objects at run time. Sad

Is it possible in QTP or shall I use any other way?


RE: How to add all the Objects to OR in a single attempt for any Java Screen? - Saket - 11-10-2010

Yes you can add all objects in a single attempt. while adding the objects you can choose the option for it. 'select all test objects'. more details in QTP help - Adding and Deleting Test Objects in an Object Reporistory.


RE: How to add all the Objects to OR in a single attempt for any Java Screen? - ShrikantBiradar3449 - 11-11-2010

I tried this :Object > Add Objects or click the Add Objects toolbar button and selected "All Object type" option in Define Object Filter.But only parent objects of a perticular object are being added not all the objects on screen.


RE: How to add all the Objects to OR in a single attempt for any Java Screen? - Saket - 11-11-2010

I am not very sure, check if QTP - Java add-in works with java swing objects, is it different?


RE: How to add all the Objects to OR in a single attempt for any Java Screen? - ShrikantBiradar3449 - 11-15-2010

Saket,

Java add-in works perfectly with Java Swing Objects.

Can we do it by scripting? Like identifying every object from the application and adding it to OR?