Tagged articles
mock server
25 articles · Page 1 of 1
The article explains why front‑end/back‑end separation is needed, outlines the challenges of the MVC era, describes the SPA‑based separation model, and provides a detailed, versioned interface specification—including request/response formats, mock server workflow, and special field rules—to streamline collaborative development.
AJAXAPI DesignJSON
0 likes · 11 min read

Learn how to create a local Flask-based mock payment callback server that validates signatures, returns standardized responses for platforms like WeChat and Alipay, includes a recommended project structure, detailed code examples, testing with pytest, and tips for extending functionality and exposing it via ngrok.
Flaskmock serverpayment callback
0 likes · 7 min read

Learn how to set up a local Flask-based mock server that handles GET and POST requests, returns customizable JSON or text responses, supports configurable URL paths, simulates network latency, and can be tested via browser, curl, Postman, or Python scripts.
API testingFlaskPython
0 likes · 4 min read

This article describes how a team built a custom automated testing platform for React Native mobile apps using Airtest and Poco, covering tool selection, script examples, platform architecture with React frontend and Python backend, and solutions for parallel execution and mock services.
AirtestFlaskPOCO
0 likes · 13 min read

This article introduces the pytest-httpserver plugin for launching a simple HTTP server during tests, provides installation instructions, and walks through ten practical examples covering GET, POST, headers, query parameters, request counting, error codes, redirects, file uploads, timeouts, and client certificate verification.
HTTP TestingPythonfixtures
0 likes · 8 min read

HTTPretty is a Python library for testing that enables lightweight, precise mocking of HTTP/HTTPS requests and responses, offering isolation, speed, complex scenario simulation, and data protection, illustrated with five practical code examples covering token retrieval, webhook handling, error simulation, timeout testing, and pagination.
APIHTTPrettyPython
0 likes · 8 min read

This guide explains how to create a full‑stack mock server using Python, Django, MySQL, Redis, and Vue, covering database setup, REST API implementation, Redis caching, and a Vue front‑end for managing mock data, enabling efficient automated testing and development.
APImock servertesting
0 likes · 12 min read

This guide shows how to quickly create a low‑cost, serverless mock server using Tencent Cloud's Serverless Cloud Function (SCF) by packaging the Moco JAR, a JSON response file, and a bootstrap script into a ZIP, deploying it as a Java 8 web function, and optionally using a one‑click template for instant setup and automatic scaling.
Cloud FunctionsDevOpsJava
0 likes · 6 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 guide introduces lowcode-mock, a zero‑configuration mock server that forwards regex‑matched requests to backend endpoints, covering installation, startup, route creation, generating mocks from YAPI or JSON, adding delays, handling HTTP errors, and proxying requests, all with code examples.
API testingKoaNode.js
0 likes · 7 min read

This tutorial shows how to use the Moco API framework with a concise Groovy script—just five lines of code—to set up a mock server that serves a static blog, covering server configuration, URL redirection, mounting of static resources, and a simple wait loop for termination.
GroovyMoCobackend development
0 likes · 3 min read

This guide shows how to extend Moco with a custom RandomHandler that selects one of several predefined responses at runtime, providing full Java code, helper methods, and a usage example for building more realistic mock APIs.
APIJavaMoCo
0 likes · 5 min read

To ensure stable and efficient single‑interface testing on our platform, we evaluated several mock frameworks—including RAP2, AnyProxy, Mock‑Server, and WireMock—and ultimately selected MockServer for its automatic protocol detection, simple configuration, extensive documentation, and built‑in fallback to real responses.
Backend testingmock serverservice virtualization
0 likes · 4 min read

This article introduces Moco, a Java‑based mock server tool, explains its purpose for early API testing and frontend development, provides step‑by‑step startup commands, showcases JSON request/response demos for various HTTP methods, outlines global configuration, and discusses its limitations.
HTTPMoCobackend development
0 likes · 6 min read

This article explains common mock server approaches, their limitations, and introduces a browser‑based HTTP request interception technique that enables seamless front‑end proxying, preserves authentication cookies, and works across browsers without modifying backend code.
AJAXHTTP interceptionfetch
0 likes · 11 min read

The article discusses the pain points of front‑back end separation such as frequent API changes, outdated documentation, and late testing, and presents a solution based on contract‑driven development with raml-mocker, a Node.js tool that generates mock servers and API documentation to improve collaboration and testing efficiency.
API ContractNode.jsbackend development
0 likes · 6 min read

Front‑end developers often suffer from constantly changing back‑end APIs, outdated documentation, and testing that only starts near release, but by treating API specifications as contracts, using tools like Raml‑Mocker to generate mock servers and automate testing, teams can reduce rework, raise interface design quality, and streamline delivery.
APIfrontendmock server
0 likes · 10 min read


转转QANov 7, 2018 · Backend Development
The article chronicles the multi‑phase development of Zhuanzhuan's API documentation and mock platform, detailing how it grew from a simple wiki‑based list to an automated, IP‑aware mock system integrated with the Beetle CI pipeline to ensure interface consistency and reduce manual effort.
API ManagementDevOpsInterface Documentation
0 likes · 8 min read

This article presents the challenges of virtual product development and describes three engineering solutions—a Footprint tracking system, a Mock Server platform, and a pre‑release gray‑release strategy—detailing their backgrounds, architectures, implementations, and operational benefits for improving debugging, testing, and deployment efficiency.
BackendMessage QueueOperations
0 likes · 8 min read

The article describes a comprehensive automated testing solution for a mobile advertising SDK that combines UI automation with Appium, behavior‑driven test management with Cucumber, dynamic request/response mocking via anyproxy, and JSON‑schema validation to improve test efficiency, reliability, and coverage.
AppiumCucumberadvertising SDK
0 likes · 18 min read

This article reflects on a failed outsourcing project, detailing how unclear requirements, rushed technology choices, Vue pitfalls, mock server setup, error handling, and API design mistakes led to difficulties and offering practical lessons for future frontend development work.
API Designerror handlingfrontend
0 likes · 17 min read

The article explains why UI automation is essential for mobile apps, compares tools such as UIAutomator, Robotium and Appium (chosen for its cross‑platform support), addresses challenges like backend instability by using Appmock‑based mock servers, adopts the Page Object pattern, and shows how the suite cut testing time from half a day to twenty minutes, delivering lasting efficiency gains.
AppiumPage ObjectUI automation
0 likes · 11 min read

This article explains why mock servers are essential for modern inter‑team development, defines mock, outlines its benefits, reviews popular mock tools, and details the design and usage of a custom xMock system for flexible, cross‑platform API simulation.
API testingmock servertooling
0 likes · 11 min read

This comprehensive guide walks Android developers through Retrofit’s fundamentals, usage patterns, URL configuration, parameter handling, custom converters, call adapters, and advanced techniques like file uploads, mock servers, and RxJava integration, providing code examples and deep insights to master network requests efficiently.
AndroidCustom ConverterOkHttp
0 likes · 22 min read
