Micro Focus QTP (UFT) Forums
How to manipulate Java JTree object in QTP - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to manipulate Java JTree object in QTP (/Thread-How-to-manipulate-Java-JTree-object-in-QTP)



How to manipulate Java JTree object in QTP - jin.wang - 05-13-2009

Hi Friends,

I'm working on a Java GUI test using QTP. While QTP recognizing JTree control object as JavaTree object, I do not know hot to manipulate it, such as expanding a tree, browsing certain layer of tree or selecting a tree node. I'm running QTP 9.5.

For example:
-TreeRoot
|--SubTree1
|--Node1.1
|--Node1.2
|--SubTree2
|--Node2.1
|--Node2.2

When application startup, the tree is collapsed. First I need to know how many nodes there and then I need to select a particular one node.

Have any idea? Thanks a lot!


RE: How to manipulate Java JTree object in QTP - perplexed - 05-20-2011

Can some 1 please explain this stuff to me