Forum Discussion
GTaylor
13 years agoOccasional Contributor
So, I've run into some problems. I think I might need a nested DataSource, but at this point I can't even find an example of what that is. Can you point me to an example of a nested DataSource?
Also, I want to grab a list of xml nodes and inspect each node to see if it's something that I care about. I'm having a hard time doing something like this.
Granted that's pseudo java ala DOM4J, but I don't know how to ask the question correctly. Is the above pseudo code something I need to achieve in a groovy script or something that I can leave up to other test steps. I think that's a huge source of confusion for me. When do you resort to scripting and when don't you? I am new to groovy, so scripting is not my first inclination.
Also, I want to grab a list of xml nodes and inspect each node to see if it's something that I care about. I'm having a hard time doing something like this.
List<Node> nodes = getListOfNodesFromResponse(//xpath);
for (Node node : nodes){
//inspect node to see if I need to persist.
}
Granted that's pseudo java ala DOM4J, but I don't know how to ask the question correctly. Is the above pseudo code something I need to achieve in a groovy script or something that I can leave up to other test steps. I think that's a huge source of confusion for me. When do you resort to scripting and when don't you? I am new to groovy, so scripting is not my first inclination.