As soon as I posted the question, I found out the answer. It was happening due to the 'd' being in lowercase instead of being in uppercase in context.getValue("Generated data Source", "responseBody");
Try using @ to get the attribute value of "name" in your xpath condition.
Did you get a chance to restart SOAVirt after adding your mongodbquerytool.jar file to system preferences? After restart, it should appear in your tools selection when adding a new test to your test suite.
Had a question come up on this where the rules are showing up in DTP, but not in C++test.
The rules are stored with the C++test installation.
So if you create custom rules in a C++test installation, then "sync" those with DTP.
You will have visibility to the new rules and be able to manage them from DTP and the C++test installation where you originally created them.
But other C++test installations will not have these rules and you will not see them when you access the DTP test configuration.
You need to share the new user rules between C++test installations.
The easiest way to do this is to: