Trigger tests on deployment

Create a deployment event to trigger a parallel run of all active plans that meet specified conditions, including application, environment, and plan label, or specific plans named by ID. Learn more in the docs.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
boolean

Set to true to preview what would be run

Body Params

The deployment event

Describes a deployment event

plan_overrides
object

Overridable Plan attributes

variables
object

Variable values, keyed by variable name, passed to every test run this event triggers. Each test receives them as if an earlier test in the plan run had shared them: they replace the test's default values and environment variables of the same name, while DataTable values and variables shared by earlier tests in the same plan run take precedence over them. Not for secrets: values are stored unencrypted on the runs and shown with their results. At most 50 entries.

string

The ID of the environment. When provided, mabl only triggers plans that contain this environment.

plan_ids
array of strings
length between 1 and 50

If specified, mabl runs these plans in addition to any matched by plan_labels. Without plan_labels, only these plans run. Each id must name an enabled plan in this workspace with a deployment trigger, on a deployment matching the event environment_id and application_id, otherwise the event is rejected with a 400 and nothing runs. At most 50 entries, and a repeated id runs once

plan_ids
test_selection
object

A specific set of tests to run on this deployment, up to 50. mabl runs them together as one plan run. When provided with plan_labels, the matching plans also run.

triggered_plan_run_summaries
array of objects

Summary of the plans that were triggered by this deployment event

triggered_plan_run_summaries
plan_labels
array of strings
length ≥ 1

If specified, only plans matching the given labels will execute. Combined with plan_ids, a plan runs if it matches either

plan_labels
string

The ID of the application. When provided, mabl only triggers plans that contain this application.

string

The mabl branch to run tests from. With a test_selection that runs tests from the branch its impact_session_id analyzed, at most 200 characters, as is source_control_tag

string

deprecated, use branch

string

The source code revision associated with the deployment

actions
object

Actions to give mabl for this deployment

Responses

Language
Credentials
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json