Spying objects within Tree hierarchy (Java Swing Desktop)
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Spying objects within Tree hierarchy (Java Swing Desktop)
Hi folks,
I have Tree structure in the product which conatins main sub nodes. Below is the object location for the tree (not inside objects). Now the problem is that the Object Spy only highlights the tree outline and not get into the sub nodes i.e. it doesn't highlight on hovering the sub nodes and also click cannot be performed as the sub nodes objects cannot not found.
Sys.Process("someprocess").SwingObject("TestProduct").SwingObject("JRootPane", "", 0).SwingObject("JPane").SwingObject("JcontentPane").SwingObject("JPanel", "", 0).SwingObject("JPanel", "", 0).SwingObject("JNavigation", "", 0).SwingObject("JSplitPane", "", 0).SwingObject("JScrollPane", "", 0).SwingObject("JViewport", "", 0).SwingObject("JTree", "")
Is there any way the sub nodes objects could be found or the clicking can be performed w/o going into finding the screen coordinates as it's so unreliable and prone to errors.
Thank you
- Labels:
-
BDD Tests
-
Desktop Testing
-
Script Tests
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @TestQA1!
Sometimes the 'JavaFuillClassName' of the control needs to be added to the 'Object Mapping' of the projects properties to fully identify Swing objects.
The document below goes over how to do this and provides some additional information about how to interact with these objects;
I hope this helps!
Regards,
Nick
Solutions Engineer @ SmartBear
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will check this and get back with results. Thanks for your reply.
