Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Adding multiple Responses to stub client
LegacyForum
Posts: 1,664 ✭✭
while adding multiple responses to stub client, I see that I can add only one element as part of the input.
Are there any ways where i can add multiple responses for multiple elements.
Thanks,
Ash...
Are there any ways where i can add multiple responses for multiple elements.
Thanks,
Ash...
Tagged:
0
Comments
-
Dear Ash,
To add more elements you want to match, simply add an "and" to the end of the XPath, and start a new XPath after it. It will accept there being multiple things you are checking. If you have any additional questions, feel free to add them to your next post.
-Baxter Campbell
EX:
/*[local-name(.)="Envelope"]/*[local-name(.)="Body"]/*[local-name(.)="getItemByTitle"]/*[local-name(.)="titleKeyword"]/text()="Java"
and
local-name(/*[local-name(.)="Envelope"]/*[local-name(.)="Body"]/*)="getItemByTitle"0 -
Hi Baxter,
Thanks for the response and help.
I am now able to add multiple elements.
Thanks & Regards,
Ash...0