# Guide to Maestro UI Testing with API Mocking Using WireMock

DevFeed: [Guide to Maestro UI Testing with API Mocking Using WireMock](<https://devfeed.tech/articles/guide-to-maestro-ui-testing-with-api-mocking-using-wiremock-22887.md>)

Original publisher: [Read original article](<https://maestro.dev/blog/guide-to-maestro-ui-testing-with-api-mocking-using-wiremock>)

Author: Ashish Kharche

Published: 2023-06-19T07:00:00Z

Content type: tutorial

Language: en

Sources: [Mobile](<https://devfeed.tech/sources/mobile-dev-medium.md>)

Topics: [mock api](<https://devfeed.tech/topics/mock-api.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Mocking](<https://devfeed.tech/topics/mocking.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>)

Tags: [api-mocking](<https://devfeed.tech/tags/api-mocking.md>), [guide](<https://devfeed.tech/tags/guide.md>), [maestro](<https://devfeed.tech/tags/maestro.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [mocks](<https://devfeed.tech/tags/mocks.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui](<https://devfeed.tech/tags/ui.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>)

## AI overview

WireMock can provide an HTTP server with stubbed API responses for Maestro UI tests, reducing reliance on inconsistent, unavailable, or team-dependent backends. It supports response stubbing, request verification, proxying and interception, recording and playback, and fault injection. Proxy mode can mock selected endpoints while leaving other app requests connected to the live API. The excerpt introduces local setup and WireMock Cloud's web UI; Cloud provides a secure HTTPS URL, and the guide recommends its web UI as easy and efficient while also covering local use and underlying JSON. The supplied setup section is truncated, so it does not provide the actual installation steps.

## Source excerpt

Mock with WireMock, UI test with Maestro