mabl CLIでのmabl Trainerの起動
mabl Trainerで行う新しい、または既存のブラウザーテストをmabl CLIで起動
mabl tests create
mabl tests create
コマンドは、mabl Trainerで新しいテストを起動し、作成したテストに関するメッセージを返します。
オプション
オプション | 詳細 |
---|---|
--desc 、--test-description | テストに関する説明 |
--width | ブラウザーの幅をピクセル単位で設定します。デフォルト値は "1366" です。 |
--height | ブラウザーの高さをピクセル単位で設定します。デフォルトは "768" です。 |
--mabl-branch | mablテストを作成するブランチ。 |
--environment-id 、-e | テストを作成するmabl環境。 |
--application-id 、-a | テストを作成するmablアプリケーション。 |
--plan-id | その設定を使用し、保存時にテストを追加するmablプラン。 |
--auto-branch | --mabl-branch で指定されたターゲットが存在しない場合にmablブランチを作成します。--mabl-branch の指定が必要です。デフォルト値はfalseです。 |
--auto-login | 作成されたテストの最初に自動ログインフローを挿入します。デフォルトはfalseです。 |
--labels | テストを保存するときに使用するラベル。複数指定する場合はスペースで区切ります。 |
--data-tables | テストに関連付けるDataTableのID。複数指定する場合はスペースで区切ります。 |
--workspace-id 、-w | テストを作成するワークスペース。 |
--credentials-id 、--creds | テストのトレーニングに使用するクレデンシャルID。 |
例
# 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 <プラン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-table <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
mabl tests edit
コマンドは、編集する既存のテストをmabl Trainerで開きます。
オプション
オプション | 詳細 |
---|---|
--id | 編集するテストのID |
--run-id | 設定を取得するテスト実行のID |
--mabl-branch | mablテストを編集するブランチ。テストがテストブランチにのみ存在し、masterにはない場合、このオプションは必須です。 |
--auto-branch | --mabl-branch で指定されたターゲットが存在しない場合にmablブランチを作成します。--mabl-branch の指定が必要です。デフォルト値はfalseです。 |
--environment-id 、-e | テストを編集するmabl環境。テストを環境変数および最新の検索情報とともに編集する場合に指定します。 |
--application-id 、-a | テストを編集するmablアプリケーション |
--width | ブラウザーの幅をピクセル単位で設定します。デフォルトは "1366" です。 |
--height | ブラウザーの高さをピクセル単位で設定します。デフォルトは "768" です。 |
--credentials-id 、--creds | テストの編集に使用するクレデンシャルID。 |
例
# Edit a test with a different set of credentials
mabl tests edit --id <テストID> --creds <クレデンシャルID>
# Edit a test on a branch called "development-branch"
mabl tests edit --id <テストID> --mabl-branch development-branch
Updated about 1 month ago