Intercept Request/Response using Extension Tool
Extension Tool : Customising the payload and response data
Parasoft povides extention tool to intercept and customise a request/response data. This tool is not available in community edition. So in order to use this tool licensed version of Parasoft is required.
In extension tool we have feature to write script using the Parasoft supported languages like Java, Groovy etc.. Following is the code snippt in groovy language.
Intercepting Request
import com.parasoft.api.*;
def process(input, context){
Application.showMessage("Request Payload: "+ input);
}
Intercepting Response
import com.parasoft.api.*;
def process(output, context){
return "Data Received: " + output;
}
Comments
Post a Comment
Let me know if anyone has any query.