Open the dashboard
Navigate to the dashboard in any browser:localhost:1080 with the host and port where your MockServer is running.
You can also open the UI programmatically from Java using MockServerClient or ClientAndServer:
openUI() method pauses for one second after launching the browser to give the UI time to load before MockServer shuts down. Use openUI(TimeUnit timeUnit, long pause) to customize the pause duration.
Dashboard sections
Logs
The Logs section shows all events recorded by MockServer, including:- Incoming requests received
- Expectation matches and failures
- Expectations created and deleted
- Errors and exceptions
DEBUG log level, the because block includes a detailed human-readable reason for each non-matching field. Additionally at DEBUG level, clearing state does not remove log events from the display — they are marked as deleted but remain visible so you can continue debugging.
Active expectations
The Active Expectations section lists all current expectations in the order they are evaluated. The display takes into account:- The order expectations were created
- Each expectation’s
priority - Time-to-live (
timeToLive) for expiring expectations - Remaining matches count (
times)
Received requests
The Received Requests section shows every request MockServer received, in the order they arrived. This includes:- Requests matched against an expectation
- Requests proxied to a backend
- Requests that were neither matched nor proxied (resulting in a 404)
Proxied requests
The Proxied Requests section shows requests that MockServer forwarded to a backend, along with the corresponding response returned.Troubleshooting with the UI
Use the following workflow when an expectation is not matching as expected:Set log level to DEBUG
Set
mockserver.logLevel=DEBUG before running your test. This enables detailed match failure output in the Logs section.Inspect the Logs section
Find the log group for your request. Look for an
EXPECTATION_NOT_MATCHED event and expand its because block. MockServer will show you exactly which fields did not match and why — for example, a header value mismatch or a path pattern that did not apply.The UI is available for all deployment modes except the deployable WAR. It is not available when MockServer is deployed as a servlet inside an existing servlet container.