Step 1: Get an API key:

You will need an API key to authenticate against Momentic’s servers.

Step 2: Install browsers:

This will download the latest version of Chrome, Firefox, and WebKit browsers to your local machine.

Step 3: Run suites:

These will run the specified suites in Momentic Cloud.

Arguments

ArgumentDescriptionDefault
suitesOne or more suite identifiers.

Options

OptionDescriptionDefault
--env <env>Name of the environment to use when running suites.
--url-override <urlOverride>Fully qualified URL (e.g., https://www.google.com) to start all tests from. Overrides any default starting URL set from the test or environment.
--custom-headers HEADER-1=value HEADER-2=valueAdd or override HTTP headers to be sent on every network request. If this option is provided, you must use -- to separate the options from the suite names provided (e.g. npx momentic@^0 suite run --custom-headers TEST=true -- my-suite).