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(
"itemProperties");
System.
out.println("node count"+tree.getTreeNodes().getRootNodeCount());
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.
Hi Dave,
Sorry for the Late reply.
What is the subitem "node" in GetChildNodes(node) I have to pass here to get the child nodes.
Thanks
The bode parameter is the parent node for which you want to get the children from. so to get root node you pass "Nothing" :
GetChildNodes(Nothing)
for childrent of "artTest" you use:
GetChildNodes(AtPath("ArtTest>artTest"))
Hi Ammar,
GetChildNodes(atPath(
"ArtTest->artTest")) is working for my application.
Thank you very much for your suggestions.