Skip to content

avivasyuta/mockiato

Repository files navigation

Mockiato

Mocks on the Fly!

Mockiato is a powerful and easy-to-use browser extension designed for developers and testers working with Google Chrome or other Chromium-based browsers. It enables users to effortlessly mock HTTP requests, modify responses, and simulate various network conditions. With Mockiato, you can create different testing scenarios, such as long response times, error states, or missing data, and all of this can be controlled through a sleek, user-friendly interface.

Features

  • Response Customization: Define custom response bodies and status codes for different HTTP requests. This is ideal for testing different scenarios, including success, error states, and partial responses.
  • Delay Responses: Introduce artificial delays to simulate slow responses and test how your application handles different loading states.
  • Header Management: Customize request and response headers effortlessly. You can also create different header profiles for various environments, such as development, staging, and production, making it easy to switch configurations based on your testing needs. DevTools Integration: Mockiato integrates seamlessly with Chrome's Developer Tools, adding itself as a tab in the DevTools panel. From this tab, you can easily view network logs, create and manage mocks, and monitor requests in real time. User-Friendly Interface: Mockiato features a sleek, intuitive UI that makes setting up and managing mocks simple, even for those new to testing. All configurations can be managed visually, without any need for complex scripting.

Use Cases

  • Test Edge Cases: Simulate slow-loading requests, incorrect data, or error statuses to see how your application behaves in real-world scenarios.
  • Environment-Based Testing: Create profiles for different environments, such as development, staging, and production, to switch between setups easily.
  • API Response Testing: Mock different types of API responses, such as success, errors, or empty payloads, without having to rely on the actual backend or making modifications to it.

Installation

Mockiato is available as a Chrome extension. To install it:

  • Open the Mockiato page.
  • Click Add to Chrome to install the extension.

Once installed, you can access Mockiato from the DevTools panel in your browser.

Getting Started

  • Open DevTools: press F12 or right-click on a page and select "Inspect" to open Chrome DevTools. Navigate to the Mockiato Tab: You will see a new tab named "Mockiato" in the DevTools panel.
  • Create a Mock: Click Add Mock to start configuring a new mock. You can specify request URLs, response bodies, status codes, delays, and headers.
  • Group mocks: group your mock configurations for different use cases.

Privacy Policy

Mockiato respects your privacy. It does not collect or ask for any personal information. All mocks and settings are stored locally in browser's storage, ensuring that your configurations remain private to your machine.

Contributing

I welcome contributions from the community! If you'd like to report a bug, suggest a new feature, or contribute code, please feel free to open an issue or submit a pull request.

License

Mockiato is open-source software licensed under the MIT License. See the LICENSE file for more details.

Support

If you encounter any issues or have questions, please reach out by opening an issue in the repository. I am always here to help!

Feedback

I am constantly striving to improve Mockiato. If you have any suggestions or feedback, I'd love to hear from you!


Mockiato makes testing and debugging easier and more efficient, giving you greater control over your development process. Whether you are a developer looking to simulate real-world network conditions or a tester exploring edge cases, Mockiato is here to simplify your workflow and make testing a breeze.

Give it a try and see how it can enhance your development experience!