Prerequisites: These tests and suites must exist in Momentic Cloud.

Queue tests and suites to run in Cloud on Momentic infrastructure.

tests

npx momentic queue tests [options] <tests...>
  • <tests…>: The names of the tests to run. You can specify multiple tests separated by spaces.

Options

--custom-headers <customHeaders...>

Custom headers to include in the test run. You can specify multiple headers by separating them with spaces.

npx momentic queue tests --custom-headers TEST=true OTHER_HEADER=true

--input-csv <inputCsv>

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.

npx momentic queue tests --input-csv path/to/input.csv

--env <env>

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.

npx momentic queue tests --env env-name

--url-override <urlOverride>

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.

npx momentic queue tests --url-override https://example.com

-w, --wait

Wait for the test run to complete before exiting.

npx momentic queue tests --wait

--wait-timeout <waitTimeout>

Default: 1800

The 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.

npx momentic queue tests --wait --wait-timeout 600

suites

npx momentic queue suites [options] <suites...>
  • [suites…]: The names of the tests to run. You can specify multiple tests separated by spaces.

Options

--custom-headers <customHeaders...>

Custom headers to include in the suite run. You can specify multiple headers by separating them with spaces.

npx momentic queue suites --custom-headers TEST=true OTHER_HEADER=true

--env <env>

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 suite in. This will override any environment specified by the suite.

npx momentic queue suites --env env-name

--url-override <urlOverride>

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.

npx momentic queue suites --url-override https://example.com

-w, --wait

Wait for the suite run to complete before exiting.

npx momentic queue suites --wait

--wait-timeout <waitTimeout>

Default: 1800

The maximum time to wait for the suite 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.

npx momentic queue suites --wait --wait-timeout 600