mabl CLIでのmabl Trainerの起動

mabl Trainerで行う新しい、または既存のブラウザーテストをmabl CLIで起動

mabl tests create

mabl tests createコマンドは、mabl Trainerで新しいテストを起動し、作成したテストに関するメッセージを返します。

オプション

オプション詳細
--desc--test-descriptionテストに関する説明
--widthブラウザーの幅をピクセル単位で設定します。デフォルト値は "1366" です。
--heightブラウザーの高さをピクセル単位で設定します。デフォルトは "768" です。
--mabl-branchmablテストを作成するブランチ。
--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-branchmablテストを編集するブランチ。テストがテストブランチにのみ存在し、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