Tagged articles
API mocking
25 articles · Page 1 of 1
This guide explains how to create a lightweight Chrome extension that intercepts fetch and AJAX requests, lets you define mock rules without installing heavy clients, and dramatically reduces memory usage during front‑end development.
API mockingChrome extensionPostMessage
0 likes · 11 min read

This article walks through the design and implementation of a Chrome extension that mocks API responses by intercepting network requests using Manifest V3, covering architecture differences, core configuration, request‑blocking techniques, script injection, project structure, rule creation, whitelist management, and future enhancements.
API mockingBrowser extensionChrome extension
0 likes · 10 min read

This article introduces Plug, a unified front‑end tool that combines non‑intrusive interface capture, flexible mocking, and large‑model assistance to streamline API development for both mini‑programs and PC, while addressing HTTPS proxy challenges and performance considerations.
API mockingInterface CaptureProxy
0 likes · 15 min read

This tutorial demonstrates how to use pytest together with Python's unittest.mock module to mock external HTTP requests, covering fixture creation, mock response setup, and writing test cases for both successful and failed API calls.
API mockingFixtureMocking
0 likes · 9 min read

This article explains mock technology for software testing, demonstrates how to implement a mock service using Flask and MySQL, and provides code examples for setting up mock data and handling requests.
API mockingFlaskMySQL
0 likes · 7 min read

This article demonstrates how to use Playwright to mock various API responses—including successful login, dynamic data, network latency, pagination, HTTP errors, redirects, authentication failures, custom headers, not‑found resources, and conditional responses—by defining route handlers that fulfill requests with custom status codes, bodies, and headers.
API mockingPlaywrightautomation
0 likes · 5 min read

The article analyzes common pain points in daily development testing such as manual data preparation, backend dependency, and unstable UI automation, then evaluates existing API‑mock tools like Apifox before presenting a custom mock platform that decouples frontend from backend, supports encrypted data, selective mocking, fault simulation, and provides a visual interface for managing mock rules and recordings.
API mockingautomationbackend development
0 likes · 9 min read

This article introduces the FunTester moco framework, summarizing its architecture, the three core components (RequestMatcher, ResponseHandler, HttpServer), detailed matching and response capabilities, and additional utilities such as runners and monitoring, providing a comprehensive guide for developers using the moco API.
API mockingMoCoTesting Framework
0 likes · 7 min read


DevOpsDec 25, 2020 · Fundamentals
This article explains the concept of mock testing, its role in unit and interface testing, and reviews popular mocking tools such as EasyMock, JMockit, Mockito, RAP, YApi, Moco, and DOClever, highlighting their applications in software development.
API mockingJavaMock testing
0 likes · 6 min read

This article explains the concept of mock testing, its use in unit and API testing, illustrates real‑world analogies, compares popular mocking frameworks, and introduces several API‑mocking tools such as RAP, YApi, Moco, and DOClever for modern software development.
API mockingMock testingsoftware testing
0 likes · 10 min read

The article presents api-hook, a lightweight React‑based frontend utility that enables developers to intercept, modify, and mock AJAX requests directly in the browser, offering ready‑to‑use, low‑cost solutions for comprehensive API testing and debugging.
AJAXAPI HookAPI mocking
0 likes · 9 min read

This article introduces lowcode-mock, a lightweight tool that forwards requests to backend without needing mock definitions or regex matching, explains installation via Yarn, demonstrates creating mock routes with Koa, generating mocks from YAPI or JSON, adding delay, handling HTTP error codes, and configuring proxy forwarding.
API mockingKoaNode.js
0 likes · 7 min read

This guide shows how to install and run lowcode‑mock, create mock APIs with Koa, generate mock data from YAPI or JSON using the yapi‑code plugin, configure custom mock rules, simulate delays, handle HTTP error codes, and proxy requests to real back‑ends, all without needing regex‑based mocking.
API mockingKoaNode.js
0 likes · 6 min read

This article explains how to extend the Moco mock server with custom delay handlers so that developers can simulate API responses that take longer than five seconds, including sample usage, wrapper methods, and the full implementation of a DelayHandler class in Java.
API mockingDelay ResponseJava
0 likes · 4 min read

This tutorial walks through creating a MocoServer instance, configuring ports and log monitors, and using the moco API to define request‑response behavior, followed by a comprehensive Java utility class that simplifies server setup, monitoring, and lifecycle management for backend testing.
API mockingBackend testingHTTP server
0 likes · 5 min read

This article explains how to configure response handlers in the Moco API mock framework, covering response types (string, JSON, object) and various strategies such as fixed, random, cyclic, and limited responses, and provides a comprehensive Java class with static helper methods for implementing these behaviors.
API mockingBackend testingJava
0 likes · 8 min read

This article introduces a video tutorial series on using the Moco API mock framework, focusing on how to configure request matching (URL, parameters, headers, cookies) and provides a comprehensive set of Java response‑handler utilities for functional and performance testing.
API mockingBackend testingGroovy
0 likes · 9 min read

This article describes the design and implementation of JARVIS, an internal API resource isolation system that provides configurable mock rules, environment isolation, multi‑scenario support, and real‑time logging to streamline development and testing of travel‑related supplier integrations.
API mockingConfiguration ManagementTesting Infrastructure
0 likes · 12 min read

This article explains why the default Moco example fails to extract JSON parameters from POST requests, walks through the source inspection that reveals the limitation, and provides a custom JsonExtractor implementation with Groovy helper methods to correctly match JSON payloads.
API mockingBackend testingGroovy
0 likes · 4 min read

This article explains how to extend Moco's API mocking capabilities by creating a custom LimitHandler that tracks request timestamps and enforces a configurable interval, providing a reusable solution for preventing rapid repeated submissions in test services.
API mockingBackendJava
0 likes · 7 min read

When using Moco API for interface virtualization, the default extractor cannot handle POST requests with JSON bodies, so a custom JsonExtractor is created to read the request content, parse the JSON, and return the desired parameter value.
API mockingGroovyHttpRequestExtractor
0 likes · 4 min read

When using Moco API for request virtualization, the default extractor cannot handle POST JSON bodies, so this article shows how to implement a custom JsonExtractor in Java and use Groovy matchers to verify JSON parameters effectively.
API mockingGroovyJSON
0 likes · 5 min read

ZanProxy is a Node.js‑based proxy server that lets frontend developers debug, switch environments instantly, mock APIs, share forwarding rules across teams, monitor requests—including mobile devices—and extend functionality with plugins, all without altering system hosts files or embedding code, thereby streamlining development workflows.
API mockingDevelopment ToolsHost Switching
0 likes · 6 min read

This article explains how to use Charles Proxy's Map Remote, Map Local, and Rewrite features to alter server responses for client testing, mock data, pagination, and special data handling, providing step-by-step instructions with screenshots for redirecting requests to other URLs, local files, or applying regex replacements.
API mockingCharles ProxyResponse Modification
0 likes · 3 min read

This tutorial shows how to install json-server, create a db.json file, run the mock REST API, and perform GET and POST requests to simulate backend data, enabling front‑end developers to work without waiting for a real server.
API mockingRESTbackend development
0 likes · 3 min read
