Launching the mabl Trainer from the mabl CLI

Launch a new or existing browser test in the mabl Trainer from the mabl CLI

mabl tests create

The mabl tests create command launches the mabl Trainer with a new test and returns a message on the test created.

Options

OptionDetails
--desc, --test-descriptionDescription for the test
--widthSet the browser width in pixels. The default value is "1366".
--heightSet the browser height in pixels. The default is "768".
--mabl-branchBranch to create the mabl test on.
--environment-id, -eMabl environment to create test under.
--application-id, -aMabl application to create test under.
--plan-idThe mabl plan to use the config from and add the test to upon saving.
--auto-branchCreate a mabl branch when a --mabl-branch target is specified that does not exist. Requires --mabl-branch. The default value is false.
--auto-loginInsert an auto login flow at the beginning of the created test. The default is false.
--labelsSpace delimited labels to save the test with.
--data-tablesSpace delimited DataTable IDs to associate with the test.
--workspace-id, -wWorkspace to create the test in.
--credentials-id, --credsCredentials ID to train the test with.

Examples

# Create a browser test, add a description, and associate it with a specific plan
mabl tests create https://www.example.com "Sample test" --desc "Creating a sample test from the mabl CLI" --plan-id <plan-id>

# Create a browser test with the label "followup" and associate it with a DataTable
mabl tests create https://www.example.com "Sample test" --labels followup --data-tables <datatable-id>

# Create a browser tests on a new branch called "test-branch"
mabl tests create https://www.example.com "Sample test" --auto-branch --mabl-branch test-branch

mabl tests edit

The mabl tests edit command opens an existing test in the mabl Trainer to edit:

Options

OptionDetails
--idID of the test to edit
--run-idID of the test run to pull config from
--mabl-branchBranch to edit the mabl test against. If the test only exists on a test branch and does not exist on master, this option is required.
--auto-branchCreate a mabl branch when a --mabl-branch target is specified that does not exist. Requires --mabl-branch. The default value is false.
--environment-id, -eMabl environment to edit the test under. Specify to edit the test with environment variables and the latest find information.
--application-id, -aMabl application to edit the test under
--widthSet the browser width in pixels. The default is "1366".
--heightSet the browser height in pixels. The default is "768".
--credentials-id, --credsCredentials ID to edit the test with.

Examples

# Edit a test with a different set of credentials
mabl tests edit --id <test-id> --creds <credential-id>

# Edit a test on a branch called "development-branch"
mabl tests edit --id <test-id> --mabl-branch development-branch