Micro Focus QTP (UFT) Forums

Full Version: How to manipulate Java JTree object in QTP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
Can some 1 please explain this stuff to me