Configuring multiple responders: capturing data and responding conditionally

Hi, Parasoft community,
I’m facing an issue with the configuration of multiple responders in Parasoft Virtualize 2022.1. Here’s the scenario:
- Capture the value of a header in the first responder and store it in a variable for later use.
- Disable the response of the first responder, so that it only acts as a data capturer (Data Bank).
- The second responder should handle the logic and return the response based on the captured header value.
Issue:
Currently, the first responder always handles the response or blocks the flow. I’ve tried disabling correlation and configuring conditions, but I can’t get the first responder to only capture the data without interfering in the flow.
Question:
Is there a recommended way to configure a responder to only capture data and not send a response, leaving the logic and final response to another responder? Any guidance would be greatly appreciated.
Thanks for your support!
Answers
-
Hi,
It sounds like you want to add the data bank to "Pre Correlation Incoming Request" instead of using an empty responder. That output will run before matching any responder or data source correlation so you can setup variables for use by multiple responders the way you are describing.
The feature was added in 2024.1 see more information about it here
https://docs.parasoft.com/display/SOAVIRT20242/SOAtest+Virtualize+and+CTP+20241#SOAtestVirtualizeandCTP20241-ChainingToolstoaMessageResponder'sPre-correlationIncomingRequest0