Use type: test to orchestrate steps: call HTTP (or an API file), then expect / check / assert the result.
type: test
title: Simple HTTP test
description: Calls an HTTP endpoint directly and checks the response
steps:
- http: https://test.mmt.dev/echo
title: Send an echo request
method: post
body:
message: hello world
expect:
status: 200
body.body.message: hello worldRun the file — failed checks appear in the Report view.
- Use
httpfor a direct call, orcallto reuse atype: apifile. - Put
expecton the same step as the request — not as a separate step. - Prefer
expectfor soft failures that still continue; useassertto stop on failure. - Import helpers and data with
importwhen tests grow.
- Test files
- Example: Simple Test