Skip to content

Mocking Network Requests #116

@itkhanz

Description

@itkhanz

Problem or motivation

Is there an existing feature already in Mobilewright which enables intercepting and mocking HTTP/HTTPS network traffic from mobile apps? It would be great to have this feature buil-in so it allows a broader testing of mobile apps which typically require mocked responses to test different scenarios.
Playwright already provides this feature for web traffic, so to have this possibility in Mobilewright for mobile apps as well would be really great.

Proposed solution

This will probably require integrating some kind of mock server and mitmproxy to intercept and mock network traffic, by having the ability to install CA certificate, setup proxy, and change request/response.

Target platform

Both

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions