I have 2 requests, 2 responses, however the requests are identical except for the attributes of the request.1. Is this even doable in DevTest Workstation?
2. If so, how does one differentiate attributes between requests?Thanks.
Thanks men! Still learning this tool, hence the (at times) silly questions.
I was able to solve my problem in a stateless transaction by adding the following Match Script (Beanshell):
String request = testExec.getStateValue("lisa.vse.http.current.transaction.body");
return (request != null && request.contains("String A"));
In my scenario, Match Style Operation works, and since the requests are mutually exclusive "String A" vs. "String B" in the request, the above return statement does just fine. Albeit, brute force examination of the complete request.If the above "specific" request returns false, then I return the META response.
If you are talking about Virtualization, yes it is doable.
Case1: If both XML has same operation name and same attributes, You can use Match Style in VSE as Exact.
Case2: If both XML has same operation name and different attributes, You can use Match Style in VSE as Signature or Exact as per requirement.
Refer :Match Tolerance - DevTest Solutions - 10.0 - CA Technologies Documentation
Hi Craig, if you have 2 transactions, requests are same and responses are different, we consider it as stateful transactions. we can't differentiate based on the attributes but we can based on the state (Like what point you are invoking the transaction), check this link: https://communities.ca.com/message/241908479?q=stateful virtual service
Retrieving data ...