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
Option | Details |
---|---|
--desc , --test-description |
Description for the test |
--width |
Set the browser width in pixels. The default value is "1366". |
--height |
Set the browser height in pixels. The default is "768". |
--mabl-branch |
Branch to create the mabl test on. |
--environment-id , -e |
Mabl environment to create test under. |
--application-id , -a |
Mabl application to create test under. |
--plan-id |
The mabl plan to use the config from and add the test to upon saving. |
--auto-branch |
Create a mabl branch when a --mabl-branch target is specified that does not exist. Requires --mabl-branch . The default value is false. |
--auto-login |
Insert an auto login flow at the beginning of the created test. The default is false. |
--labels |
Space delimited labels to save the test with. |
--data-tables |
Space delimited DataTable IDs to associate with the test. |
--workspace-id , -w |
Workspace to create the test in. |
--credentials-id , --creds |
Credentials 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
Option | Details |
---|---|
--id |
ID of the test to edit |
--run-id |
ID of the test run to pull config from |
--mabl-branch |
Branch 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-branch |
Create a mabl branch when a --mabl-branch target is specified that does not exist. Requires --mabl-branch . The default value is false. |
--environment-id , -e |
Mabl environment to edit the test under. Specify to edit the test with environment variables and the latest find information. |
--application-id , -a |
Mabl application to edit the test under |
--width |
Set the browser width in pixels. The default is "1366". |
--height |
Set the browser height in pixels. The default is "768". |
--url , -u |
URL to edit the mabl test against |
--credentials-id , --creds |
Credentials 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