Parrot API mocking Chrome Extension

Parrot API mocking chrome extension

Parrot API mocking for Chrome Download

Parrot API mocking chrome extension is Hassle-free mocking of asynchronous API call responses..

Hassle-free mocking of asynchronous api call responses..
Mocking your api responses like a pro ..

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.

*** Stack multiple mocks on top of each other ***

When determining the mock(s) to be substituted, there can be multiple matches. Parrot will just process them in the order received. In case of multiple available json or text mocks this would mean that the last definition "wins". In case of multiple transform mocks, they all will be executed in the order received allowing you to build one composite mock response.

NB

For status and delay the last available value will always be used.

*** 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.

How to install Parrot API mocking chrome extension in chrome Browser

You can Follow the below Step By Step procedure to install the Parrot API mocking Chrome Extension to your Chrome Web browser.

  • Step 1: Go to the Chrome webstore https://chrome.google.com/webstore or download the extension Parrot API mocking Chrome Extension Download from https://pluginsaddonsextensions.com
  • Step 2: Now search for the Parrot API mocking in Chrome Webstore Search and click on the search button.
  • Step 3: click on the Parrot API mocking Chrome Extension Link
  • Step 4: in the next page click on the Add to Chrome button to Download and Install the Parrot API mocking extension for your Chrome Web browser .

Parrot API mocking Chrome extension Download

Looking for a method to Parrot API mocking Download for Chrome then this download link is for you.

It is the Parrot API mocking Chrome extension download link you can download and install Chrome Browser.

Download Parrot API mocking chrome extension (CRX)

Tags: Asynchronous Api Call Responses , Potential Race Condition Issues , Mock Response , Actual Response , Define Mocked Response , Every Time Mock Data , Possible Alternate Scenario , Front End Behaves , Plain Javascript Function , Mocked Response , Received Allowing , Api Call , Actual Call , Request Delay , Asynchronous Api Call , Mock Data , Last Available Value , Multiple Mocks , Request Response ,

Parrot API mocking Related Chrome Extensions