I have deployed a Virtual Service in Learning mode and when i invoke it with a request that is not virtualised, i can can validate that the new Response is added to the VSI. It gets added with Match style "Exact".
All Arguments have the Comparison Operator as "=". Hence only if all arguments match exactly, the VSI will respond back with a matched transaction.
But there is one argument in the request which is the TransactionID. The value for this argument will be unique for every call. Hence i need the Comparison Operator for this argument to be "anything".
During the learning mode, when new Requests and Responses are added to the VSI, is there a way to configure the Comparison Operator for TransactionID argument to be "anything"
Thanks for your help
No, not possible, AFAIK.
The new transaction is actually only added to the running, deployed version of the virtual service. You will need to download the mar file, get out updated .vsi out of it and process it within your DevTest project. It is good practice to do that anyway, to have an up to date project that reflects what is deployed, otherwise you’ll run into problems if someone (accidentally) redeploys the virtual service after amending the project .vsi for some other requirement, you would lose the ‘learned’ transaction.
I don't think we can change the comparison operator for argument during learning mode. But the quick way to do is Editing the VSI in workstation, at the bottom of the "Request Data" tab, there is an icon that looks like a notepad and pencil - "Do a mass change of request arguments" and change the arguments for transactions.
Thanks & Regards