DevTest not able to find the matching request in TCP VS

Document ID : KB000097948
Last Modified Date : 24/05/2018
Show Technical Document Details
Issue:
DevTest parsing the request and creates operation as F7F0F2F7 and transaction matching is not happening properly.
How can the encoding be changed to a readable format so that operation can be set as 7027/7112/7223/.. so it can be used to differentiate various requests?
Environment:
DevTest releases which support TCP virtualization.
Cause:
The possible cause could be the request coming into DevTest is encoded/encrypted in a cryptic format. 
 
Resolution:
. Need to configure TCP protocol based on the request and select "Treat Request as Text" option will convert the request as text.
. Then the below code can be used in a Scriptable DPH on the request side which will set the operation to 4 characters starting from 199 to 203 in the request and VSI is created with 4 characters as the operation and which will differentiate requests.

%beanshell% import com.itko.util.ParameterList;
String theBody = lisa_vse_request.getBodyText();
String NewBody = theBody.substring(199,203);
lisa_vse_request.setOperation(NewBody); 
Additional Information:
https://docops.ca.com/devtest-solutions/10-1/en/using/using-ca-service-virtualization/using-devtest-portal-with-ca-service-virtualization/create-virtual-services-by-recording/virtualize-services-by-recording-tcp/virtualize-tcp