Skip to main content
Deprecated. Cloud-hosted tests are being phased out as part of the broader cloud deprecation. Both queue tests and queue suites remain for backwards compatibility and will be removed in a future release. Run tests locally or in CI with momentic run instead.
Queues dashboard-hosted tests or suites for cloud execution. Requires the tests to exist on Momentic dashboard.

tests

Queue one or more individual tests.

Arguments

array
required
Names of the dashboard tests to queue. Pass multiple values separated by spaces.

Common flags

boolean
Queue every test in the project instead of the paths passed as arguments. Mutually exclusive with the <tests...> argument.
string
Environment to run the tests in. Overrides any environment configured on the test itself. The base URL set on the test still takes precedence; use --url-override to override it.
string
Override the base URL of the test or environment. Useful for running against a preview deployment.

Inputs

array
Custom headers to include in the test run. Specify multiple headers separated by spaces.
string
CSV file containing input data for the tests. Each row is used as input for a separate test run.

Waiting

boolean
Wait for the run to complete before exiting.
number
Maximum time to wait for the run to complete, in seconds. Defaults to 1800. Requires --wait.

suites

Queue one or more dashboard suites.

Arguments

array
required
Names of the suites to queue. Pass multiple values separated by spaces.

Options

array
Custom headers to include in the run.
string
Environment to run the suite in. The base URL on the suite still takes precedence; use --url-override to override.
string
Override the base URL of the suite or environment.
boolean
Wait for the run to complete before exiting.
number
Maximum time to wait for the run to complete, in seconds. Defaults to 1800. Requires --wait.

Examples

Queue a single dashboard test and wait for completion:
Queue a suite against a preview deployment: