Tag

API mocking

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Nov 26, 2024 · Fundamentals

How to Encapsulate and Call Mock Services in pytest

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 mockingPythonfixture
0 likes · 9 min read
How to Encapsulate and Call Mock Services in pytest
Test Development Learning Exchange
Test Development Learning Exchange
Oct 14, 2024 · Backend Development

Mock Service Implementation Using Flask and MySQL

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
Mock Service Implementation Using Flask and MySQL
Test Development Learning Exchange
Test Development Learning Exchange
Mar 21, 2024 · Backend Development

Mocking API Responses with Playwright: Success, Errors, Latency, Pagination, and Conditional Logic

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 mockingPlaywrightTesting
0 likes · 5 min read
Mocking API Responses with Playwright: Success, Errors, Latency, Pagination, and Conditional Logic
Continuous Delivery 2.0
Continuous Delivery 2.0
Jan 12, 2024 · Backend Development

Design and Implementation of an Internal Mock Platform for Efficient Development and Testing

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 mockingTestingautomation
0 likes · 9 min read
Design and Implementation of an Internal Mock Platform for Efficient Development and Testing
FunTester
FunTester
Jun 3, 2021 · Backend Development

FunTester moco: Architecture and Feature Overview of the moco API Testing Framework

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 mockingMocobackend development
0 likes · 7 min read
FunTester moco: Architecture and Feature Overview of the moco API Testing Framework
DevOps
DevOps
Dec 25, 2020 · Fundamentals

Understanding Mock Testing: Unit Test Mock, Interface Mock, and Popular Tools

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
Understanding Mock Testing: Unit Test Mock, Interface Mock, and Popular Tools
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 22, 2020 · Fundamentals

Understanding Mock Testing: Unit Test Mocks, API Mocks, and Popular Tools

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
Understanding Mock Testing: Unit Test Mocks, API Mocks, and Popular Tools
Fulu Network R&D Team
Fulu Network R&D Team
Nov 26, 2020 · Frontend Development

Introducing api-hook: A Lightweight Frontend Tool for API Interception and Mocking

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
Introducing api-hook: A Lightweight Frontend Tool for API Interception and Mocking
Top Architect
Top Architect
Oct 17, 2020 · Backend Development

Guide to Using lowcode-mock for Quick API Mocking with Koa

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 mockingKoaMock Server
0 likes · 7 min read
Guide to Using lowcode-mock for Quick API Mocking with Koa
FunTester
FunTester
May 30, 2020 · Backend Development

Extending Moco API to Support Delayed Responses for Mocking Slow Endpoints

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 mockingBackendDelay Response
0 likes · 4 min read
Extending Moco API to Support Delayed Responses for Mocking Slow Endpoints
FunTester
FunTester
May 17, 2020 · Backend Development

Moco API Mock Framework – Configuring Response Handlers (Intermediate)

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 mockingJavaMoco
0 likes · 8 min read
Moco API Mock Framework – Configuring Response Handlers (Intermediate)
FunTester
FunTester
May 15, 2020 · Backend Development

Moco API Mock Framework Video Tutorial (Part 1): Request Matching and Response Handlers

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 mockingGroovyJava
0 likes · 9 min read
Moco API Mock Framework Video Tutorial (Part 1): Request Matching and Response Handlers
Youzan Coder
Youzan Coder
Aug 10, 2018 · Frontend Development

ZanProxy: A Node.js Proxy Server for Frontend Development Efficiency

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 mockingHost SwitchingNode.js
0 likes · 6 min read
ZanProxy: A Node.js Proxy Server for Frontend Development Efficiency
Test Development Learning Exchange
Test Development Learning Exchange
Aug 8, 2018 · Backend Development

Using Charles Proxy to Modify API Response Values with Map Remote, Map Local, and Rewrite

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
Using Charles Proxy to Modify API Response Values with Map Remote, Map Local, and Rewrite