Parrot API mocking

开发者工具插件用户量: 62大小: 3.77MiB版本: v 3.0.0更新时间: 2021-12-21
用户量:62大小:3.77MiB版本:v 3.0.0更新时间:2021-12-21

Hassle-free mocking of asynchronous API call responses.

Parrot API mocking 的使用方法详解,最全面的教程


Parrot API mocking 描述:

用户数:62

分类:开发者工具插件

扩展大小:3.77 MiB

最后更新时间:2021-12-21

版本:v 3.0.0


Parrot API mocking 插件简介:

这是来自Chrome商店的 Parrot API mocking 浏览器插件,您可以在当前页面下载它的最新版本安装文件,并安装在Chrome、Edge等浏览器上。


Parrot API mocking插件下载方法/流程:

点击下载按钮,关注“扩展迷Extfans”公众号并获取验证码,在网页弹窗中输入验证码,即可下载最新安装文件。


Parrot API mocking插件安装教程/方法:

(1)将扩展迷上下载的安装包文件(.zip)解压为文件夹,其中类型为“crx”的文件就是接下来需要用到的安装文件

(2) 从设置->更多工具->扩展程序 打开扩展程序页面,或者地址栏输入 Chrome://extensions/ 按下回车打开扩展程序页面

(3) 打开扩展程序页面的“开发者模式”

(4) 将crx文件拖拽到扩展程序页面,

完成安装如有其它安装问题,

请扫描网站底部二维码与客服联系如有疑问请参考:

https://www.extfans.com/installation/
Mocking your API responses like a pro .. Parrot new uses Manifest version 3! Parrot allows you to mock any asynchronous API call you want. It does this by wrapping the native XMLHttpRequest in such way that the actual call will always be done, but the response will be substituted by the mock data you specified. This ensures that you will not suffer from any CORS related issues. *** When to use this extension? *** Parrot might be useful for at least any of the following scenarios: - You are developing a front end that needs to connect to some back end API, but that back end API has not yet been developed or is down. - You want to give a live demo but the back end API needed is currently not available or broken. - You would not only like to test the happy flow, but would also like to see how your front end behaves given any possible alternate scenario or edge case. - You are experiencing a nasty bug but have no way of reproducing it easily using the real back end system. You would like to tweak the response to check if any unexpected response could be the cause of your issue. *** How to use this extension? *** Start by just pressing the Add button to define a mocked response for a specific request. A line will show up on which you can define the HTTP verb/method and the URL-fragment of the request you would like to be mocked. The URL fragment is defined with a regular expression, allowing you to make any matching requirement as loose or strict as you would like it to be. On that same line you can then define the status code of your response, the exact response type and the payload to be returned. Once the extension detects the method/URL you expressed, the regular call will still be done. However, once the actual response has been received, no matter it's actual result, it will be replaced by the mocked response you defined. NB Next to being TEXT or JSON, for any response now also TRANSFORM can be specified. In this case a plain JavaScript function can be defined that will receive the original response, can do some transformations and will then return the transformed response. *** CORS mitigation *** As stated, the actual call will first be done, directly followed by substitution of the response. By doing so any CORS related issues are mitigated automatically. *** Timing your calls by adding a delay *** Particularly for checking for, or debugging of, potential race condition issues, for any request a delay (expressed in milliseconds) can be specified. This delay will be taken into account before the response is returned to the client that made the request. By carefully timing request/response cycles you can make sure that responses will be received in the exact order you would like them to be. *** Export and Import your mock definitions *** The set of mock definitions can also be exported to the file system using the Export button. This allows you to share your mock data with others and also allows you to create/maintain sets of mock definitions. Exported files can easily be reimported by using the Import button. Imported files will be appended to any currently existing mock definitions in the extension, allowing you to stack multiple sets on top of each other. *** Cycle through multiple mocks for any given url/end point/resource *** When determining the mock(s) to be substituted, there can be multiple matches (mock candidates). Parrot will cycle through these candidates by initially selecting the first one, for the next call the second one will be used, then candidate three (if applicable) and so on. If all candidates have been targeted once, the cycle resets starting with the first available mock once more. A great way of creating a show case in which each and every possible outcome of a call can be visualized by simply cycling through all mocks. *** Notification when mock data has been used *** Every time mock data has been substituted, a small notification will show up. This behavior can be turned off using the popup dialog. *** Localhost *** Localhost resources will not be mocked by Parrot since normally those resources will be mocked anyway.

相关应用

브라우저에서 라온시큐어의 PC보안 기능을 사용하기 위한 확장 프로그램입니다.
Capture a screenshot of your current page in entirety and reliably—without requesting any extra permissions!
Расширение позволяет использовать КриптоПро ЭЦП Browser plug-in в браузере. Для работы требует установленного ЭЦП Browser plug-in.
Adds React debugging tools to the Chrome Developer Tools. Created from revision e28a0db22 on 1/24/2022.
Advanced Eyedropper, Color Picker, Gradient Generator and other colorful goodies
POSTMAN CHROME IS DEPRECATED DOWNLOAD THE UPDATED POSTMAN NATIVE APPS Postman Chrome is deprecated and is missing essential, new…
EditThisCookie是一个cookie管理器。您可以添加,删除,编辑,搜索,锁定和屏蔽cookies!
The Facebook Pixel Helper is a troubleshooting tool that helps you validate your pixel implementation.
Tag Assistant helps to troubleshoot installation of various Google tags including Google Analytics, Google Tag Manager and more.
back top top
back top top