# Conducting a Test Case source: https://developer.mastercard.com/account-to-account-commerce-for-csp/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-csp/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-csp/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 CSP should use their host for calling the Create Agreement API in MTF instead of Postman Pack. CSP would receive the agreementId in the response from Mastercard, like below: { "initiatingPartyId": "ZAPP", "messageId": "7a74fa2e4bc74d6bb4ec0ed110ac3e84", "creationDateTime": "2023-06-01T01:56:34.303Z", "originalMessageId": "2E3A0254DA0848B987835C9792243414", "confirmationExpiryTimeInterval": 580, "agreement": { "agreementId": "5491223322101885", "agreementStatus": "INPR", "agreementReferenceNumber": "774727" } }
Next, CSP should mimic DSP to populate the agreementId in the environment variable and execute the Retrieve Agreement API. Next, CSP should mimic DSP and call Confirm Agreement without changing any environment variables. Mastercard would receive the Confirm Agreement from Postman and send an outbound notification to CSP (to the endpoint configured during onboarding) using the Update Agreement API. This would complete the single-device link journey. #### 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-csp/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-csp/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.