API Errors Simulator

2023年12月28日 开发者工具

插件截图

API Errors Simulator

插件概述

Simulate API errors to test your app's behavior

插件详情

If you want to test how your frontend app behaves when backend API returns 4xx/5xx error codes, generally there are two options:
1. If you control the backend, you can manually return 4xx/5xx error codes in the API response.
2. Modify your frontend code to simulate error scenarios.
Neither of which is an elegant approach.

The API Errors Simulator chrome extension allows you to map backend API endpoints to the error codes you want to simulate for your application. Internally it patches browser's XMLHttpRequest API with the error codes supplied in the options page.

Once you've installed the extension, follow the steps to operate it:
1. Click on the newly added icon at right top of the browser and switch on the extension.
2. Click on the OPTIONS button. It'll open a page where you can supply rules with:
i. The combination of URL and HTTP VERB
ii. The response error code
3. You can also edit/delete your rules

Design Credit:
Name: Jainul Abedin
LinkedIn: https://www.linkedin.com/in/jainul-abedin-4148b816
Email: jainulmca@gmail.com

其他信息

官方唯一标识:apcdhhde****************ecliimpc

官方最后更新日期:2019年4月14日

分类:开发者工具

大小:1.62MiB

版本:0.1.0

语言:English

提供方:none

星级:4.5

插件下载

下载链接一     下载链接二
Chrome插件离线安装教程

温馨提示

本站中的部份内容来源网络和网友发布,纯属个人收集并供大家交流学习参考之用,版权归版权原作者所有。

如果您发现网站上有侵犯您的知识产权的作品,请与我们取得联系,我们会及时修改或删除。

如果您觉得网多鱼对您有帮助,欢迎收藏我们 Ctrl+D。