Posts

Showing posts from March, 2023

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; }

Configure Service Endpoint Configurations

Image
Every service consists of following configurations Endpoint path e.g. /login Endpoint Http Method e.g. GET/POST/PUT/DELETE Configure service path Configure service Http Method

Read Request Payload - JSON Data Bank

Image
JSON Data Bank      This tool is used to read request payload in Parasoft.  Steps

Parasoft Development - Basic Fundamentals

Image
 Basic Fundamental PVA - Parasoft Virtualize Agent Responder Suit Responder Parasoft - HelloWorld PVA - Parasoft Virtualize Agent     Its similar to the JAR/ZIP file which contains  virtual asset, such as its behavior, responses, and dependencies. The PVA file can be saved, shared, and deployed to different environments to recreate the virtual asset. Responder Suit      It refers to a collection of software tools that are used for creating, managing, and testing virtual assets. In other words its a collection of Responders corresponding to a specific service. Lets take an example of Login service. Login service in parasoft may have following responders under responder suit: - Validate username, it shuld not be null, empty and between the range of 5 - 26 characters. Validate password, it should not be null, empty and should have min 6 and max 40 characters long. Validate username and password wih database/repository records. Handle all the exceptions if...