Ask a Question

Unable to find root node for tree object using TestLeft

goels
New Contributor

Unable to find root node for tree object using TestLeft

I'm trying to identify the tree object for my application. When I find the object using TestSpy, it only returns the object identification for whole panel but not the tree object. It returns class name like below.

"com.ac.desktop.module.mvc.view.AbstractTreeView$InternalJTree" 

 How can I identify root node of the tree and thus corresponding nodes.

 

 

2 REPLIES 2
goels
New Contributor

Re: Unable to find root node for tree object using TestLeft

Any updates?

AlexKaras
Community Hero

Re: Unable to find root node for tree object using TestLeft

Hi,

 

a) Every object in TestLeft is identified by the FullName property, but not the class name;

b) You should be able to traverse back object's hierarchy using the 'parent' property. The root object for desktops has 'Sys' name.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: