Skip to main content
Deprecated. Cloud-hosted tests are being phased out. Both queue tests and queue suites remain for backwards compatibility and will be removed in a future release. Run your tests locally or in CI with momentic run instead.
Prerequisites: These tests must exist in the Momentic dashboard.
Queue tests to run on Momentic infrastructure.

tests

npx momentic queue tests [options] <tests...>

Arguments

<tests...>
array
required
The names of the tests to run. You can specify multiple tests separated by spaces.

Options

--custom-headers <customHeaders...>
array
Custom headers to include in the test run. You can specify multiple headers by separating them with spaces.
--input-csv <inputCsv>
string
Path to a CSV file containing input data for the tests. Each row in the CSV file will be used as input for a separate test run.
--env <env>
string
The base URL set on the test will always take precedence over the environment. If you want to override the base URL set on the test, use the --url-override option.
The environment to run the test in. This will override any environment specified by the test.
--url-override <urlOverride>
string
The URL to override the base URL set on the test or the environment. This is useful if you want to run the test against a different URL than the one specified in the test or environment.
-w, --wait
boolean
Wait for the test run to complete before exiting.
--wait-timeout <waitTimeout>
number
Default: 1800The maximum time to wait for the test run to complete, in seconds. Must be used with the --wait option. If the test run does not complete within this time, the command will exit with an error.

suites

npx momentic queue suites [options] <suites...>

Arguments

<suites...>
array
required
The names of the suites to run. You can specify multiple suites separated by spaces.

Options

--custom-headers <customHeaders...>
array
Custom headers to include in the suite run. You can specify multiple headers by separating them with spaces.
--env <env>
string
The environment to run the suite in. This will override any environment specified by the suite. The base URL set on the suite takes precedence over the environment; use --url-override to override the base URL.
--url-override <urlOverride>
string
The URL to override the base URL set on the suite or environment.
-w, --wait
boolean
Wait for the suite run to complete before exiting.
--wait-timeout <waitTimeout>
number
Default: 1800. The maximum time to wait for the suite run to complete, in seconds. Must be used with the --wait option.