# Testing
source: https://developer.mastercard.com/account-to-account-commerce-for-dsp/documentation/testing/index.md

## Overview {#overview}

Every participant needs to test their API in the Mastercard Test Facility (MTF) environment. The test environment consists of the following components:   

* Mastercard  
* Creditor Service Provider Simulator  

![testing-flow-diagram](https://static.developer.mastercard.com/content/account-to-account-commerce-for-dsp/documentation/images/testing-home-page-dsp.png)

Mastercard is going to provide test cases and scripts to achieve this validation.   

## Testing plan {#testing-plan}

All participants implementing Mastercard Account to Account Commerce must complete testing in the MTF environment. In this environment, participants must pass all test cases marked "mandatory" before being onboarded into the production environment. Participants who support optional features must also complete all conditional test cases relating to the supported feature.  

**Testing Certification**   

Every participant must follow the following activities to obtain the testing certification:  

* Complete all test cases marked "Mandatory".  
* Complete all optional test cases if they wish to support additional scenarios.  
* Provide payload for each completed test case to your Mastercard Implementation Manager.  

Every participant must obtain a **Test Acknowledgement Notice (TAN)** from their Mastercard Implementation Manager to certify the completion of testing before going live in the production environment.

### Test cases {#test-cases}

Test cases are provided to participants based on the expected behaviours of creditors and debtors to ensure the application can successfully send and receive the expected outcomes.   

Each collection of test cases represents a suite of scenarios associated with an API service.   

For scenarios that require interactions with another participant, automated test scripts are provided to facilitate simulation via stubbed behaviors in the Postman application.   

### Testing Tutorial {#testing-tutorial}

For more information on how to execute a test case in Insomnia, please go to [Testing with Insomnia](https://developer.mastercard.com/account-to-account-commerce-for-dsp/tutorial/insomnia/index.md). For more information on how to execute a Information Exchange Service test case in Insomnia, please go to [Testing with Insomnia for IES](https://developer.mastercard.com/account-to-account-commerce-for-dsp/tutorial/insomnia-ies/index.md).
