# Conducting a Test Case source: https://developer.mastercard.com/account-to-account-commerce-for-dsp/tutorial/postman-tutorial/step4/index.md ## Conducting a Test Case {#conducting-a-test-case} The participant can use the test pack for two purposes: * To execute the API and capture the request and response to develop their host * To perform end-to-end AtoAC testing by simulating the other participant's journey In the section below, we will explain how to use the pack to perform end-to-end testing. ### Executing Test Scripts {#executing-test-scripts} Before you start using the pack, make sure to select the environment from the top-right section. ![Environment](https://static.developer.mastercard.com/content/account-to-account-commerce-for-dsp/uploads/Environment1.png) Next, you would need to execute the JWS lib which will make sure all the APIs have the required signature for verification by Mastercard. To do that, open the **Sideload JWS lib** and click on **Send** . ![JWS Lib](https://static.developer.mastercard.com/content/account-to-account-commerce-for-dsp/uploads/Execute2.png) If you receive an SSL error, disable SSL verification and try again. The above step has to be done only once in the lifetime of the pack being used. Let's execute an end-to-end link journey. There are four APIs in Link Journey Happy Flow: * Create Agreement (CSP) * Retrieve Agreement (DSP) * Confirm Agreement (DSP) * Confirm Agreement (CSP) A DSP would use the Create Agreement API in Postman to begin the user journey. Since the user cannot be redirected to the DSP app in an MTF environment, DSP would call the Retrieve Agreement API from their host using the agreementId returned in the Create Agreement response and validate the data received in the response of Retrieve Agreement. To complete the user journey, DSP would call the Confirm Agreement API from their host and validate the response. For the remaining use cases, use the test cases to determine what to populate in environment variables while testing a particular use case. #### How to Capture a Response {#how-to-capture-a-response} Once you have formulated the request and clicked on **Send** , the response will be displayed in the section below: ![Capture Response](https://static.developer.mastercard.com/content/account-to-account-commerce-for-dsp/uploads/Response3.png) To view the request payload, click the code label as shown below: ![Capture Request](https://static.developer.mastercard.com/content/account-to-account-commerce-for-dsp/uploads/Response4.png) Validate if the status is **200 OK** and confirm the response. Capture and store whatever is needed for the next API call.