05-13-2009, 04:08 AM
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!
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!