Developer Tools

API Response Simulator

3.3
16
1061
13

The API Response Simulator Chrome Extension allows you to simulate backend APIs in order to test how your application handle API certain response.

Generally, if you want to test how frontend behaves when backend API returns 2xx, 4xx or 5xx status codes, there are two options:
– If you control the backend, you can patch your backend code and manually return 2xx/4xx/5xx status codes from API methods.
– If you don’t control the backend, you can patch your frontend code with some debug statements to verify the behavior.

Neither of which is an elegant approach.

The API Response Simulator Chrome Extension allows you to map backend API endpoints to the responses you want to simulate for your application.
Internally it patches browser’s native XMLHttpRequest API.

Once you’ve installed the extension, follow the steps to operate it:
– Click on the ! icon at right top of the browser and switch on the extension.
– Click on the OPTIONS button. It’ll open a page where you can supply rules with:
– The combination of URL and HTTP verb
– The response status code
– The response value
– You can also edit/delete your rules

Design Credit:
Name: Jainul Abedin
LinkedIn: https://www.linkedin.com/in/jainul-abedin-4148b816
Email: [email protected]

API Response Simulator
Related posts
Developer Tools

Browserling - Cross-browser testing

Developer Tools

Selenium Page Object Generator

Developer Tools

IP Address and Domain Information

Developer Tools

APK Downloader for Google Play Store™

13 Comments

Comments are closed.