# 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.dev - Medium](<https://devfeed.tech/sources/mobile-dev-medium.md>)

Topics: [Mocking](<https://devfeed.tech/topics/mocking.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [ui](<https://devfeed.tech/topics/ui.md>), [API](<https://devfeed.tech/topics/api.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [backend](<https://devfeed.tech/tags/backend.md>), [cli](<https://devfeed.tech/tags/cli.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [code](<https://devfeed.tech/tags/code.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [http](<https://devfeed.tech/tags/http.md>), [mock-api](<https://devfeed.tech/tags/mock-api.md>), [mocking](<https://devfeed.tech/tags/mocking.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

This step-by-step guide explains how to optimize Maestro UI testing by using mock APIs with WireMock. It covers local WireMock setup and WireMock Cloud's web UI, including response stubbing, request verification, proxying, record/playback, and fault injection.

## Source excerpt

Mock with WireMock, UI test with Maestro