samedi 14 novembre 2020

Intercept API request with custom response for automation testing

I have a prod App that is dependent on the server's availability i.e if the server is running then the app will run. I need to automate this app with no dependency on the server.

The App functions this way : After every 5 minutes, the app sends an API request to check the availability of the server and if the response returned is "true" then the app will continue to function else it will stop.

Is there any way in POSTMAN to intercept the availability request and change the response to "true", so the automation won't depend on the server's availability?

Aucun commentaire:

Enregistrer un commentaire