Hi,
Currrently we are working on RFT 8.2 ,with infragistics test advantage addin 8.2 (licensed) for windows forms.While performing automation testing we are unable to get the values from the treeview structure. We have to get the all the account values while running time.
I had tried to get the values by following way. I am getting only one value.
First I had taken the all data types and to get the data from each datatype. But I haven't got the all available values.
trvAccountExplorertree().getTestDataTypes()); TestDataTree tree=(TestDataTree) trvAccountExplorertree().getTestData(
trvAccountExplorertree().getTestDataTypes());
TestDataTree tree=(TestDataTree) trvAccountExplorertree().getTestData(
"itemProperties"); System.
System.
out.println("node count"+tree.getTreeNodes().getRootNodeCount()); TestDataTreeNode node=(TestDataTreeNode) tree.getTreeNodes().getRootNodes()[0]; String nodeName=node.getNode().toString(); System.
TestDataTreeNode node=(TestDataTreeNode) tree.getTreeNodes().getRootNodes()[0];
String nodeName=node.getNode().toString();
out.println("nodeName"+nodeName);
Help me how to get all the node values.
Regards,
Chandu
From the figure I have to get all the node values in "artTest". Give me your suggestions.
Hello Chandu,
You can get all of the child nodes by calling tree.GetChildNodes(node).
Please let me know if you have any other questions about this.