UiPath Documentation
coding-agents
2026.10
false
UiPath for Coding Agents ユーザー ガイド

Playwright のテスト オートメーション

uipath-test スキルを使用して、コードを変更することなく、既存の Playwright スイートを UiPath Test Manager に取り込むことができます。

注:

Playwright test automation is available only for cloud environments. It is not available in Automation Suite.

With the uipath-test skill, your coding agent brings an existing Playwright suite into UiPath Test Manager with no code changes. It packages the suite, uploads it to Orchestrator, runs it as a test set, and reports the results.

前提条件​

  • UiPath CLI (uip) installed and authenticated (uip login). The --playwright-project flag requires CLI version 1.203.0 or later.
  • UiPath skills installed (uip skills install --agent <agent>), including uipath-test.
  • Test Manager delivered through Test Cloud, with Playwright support enabled for your tenant. Without it, Test Manager never creates the test cases.
  • Playwright 1.19 or later, installed locally in the project: a package.json with @playwright/test, a lockfile, and a playwright.config file. Test Manager supports npm with package-lock.json. uip tm pack also accepts yarn.lock, pnpm-lock.yaml, and bun.lock. The skill does not install Playwright.
  • An Orchestrator folder with a Cloud Robots – Serverless machine and a member that can run unattended sessions, such as a robot account. The agent can create and assign the machine. Without the member, executions are canceled or produce no results.
  • The Test Executor role in the Test Manager project for the robot account that runs the tests. Without it, results never reach Test Manager. See Prerequisites.

スイートを Test Manager に取り込む​

  1. Open your coding agent in the Playwright project's root folder.

  2. スイートを Test Manager に取り込むように依頼します。

    「自分のウェブサイト [製品名] をテストするために Playwright のスクリプトをいくつか書きました。UiPath の Test Manager サービスを使用してこれらのテストを実行するのを手伝っていただけますか?」

  3. On the first run, tell the agent which Test Manager project to use or create, and which Playwright project from playwright.config (for example, chromium) to run first.

  4. Review the pass, fail, and skip summary. It separates assertion mismatches from environment or infrastructure issues.

Result: The agent sets the project's default Orchestrator execution folder, packages the suite into a .nupkg, and uploads it to the Orchestrator package feed. Test Manager creates and links one test case per test. The agent creates a test set scoped to the selected Playwright project, runs it, and polls until it finishes.

失敗したテストを修正して再実行する​

「失敗したテストを修正し、スモーク テスト セットを再実行してください。」

The agent fixes the test code, repacks with a bumped --package-version, re-uploads, and re-runs the same test set. The Playwright project selection persists on the test set.

警告:

Don't use uip tm executions retry to re-run after a fix. It re-runs the previous failures against the old package version.

コマンド リファレンス​

For troubleshooting, or scripting the same flow in CI.

手順コマンド
Test Manager プロジェクトの作成uip tm project create --name "SwagLabs" --project-key SWAG --description "..." --output json
既定の実行フォルダーを設定するuip tm project set-default-folder --project-key SWAG --folder-key <key> --output json
Playwright プロジェクトをパッケージ化するuip tm pack --project-path . --type playwright --project-key SWAG --name SwagLabsPlaywright --package-version 1.0.0 -o .packages --output json
Orchestrator にアップロードuip or packages upload ".packages/SwagLabsPlaywright.1.0.0.nupkg" --output json
取り込まれたテスト ケースのポーリングuip tm testcases list --project-key SWAG --output json
Create a test set and note the returned TestSetKeyuip tm testsets create --project-key SWAG --name "Smoke" --output json
Add this package's test cases to ituip tm testcases add --test-set-key <test-set-key> --test-case-keys <keys> --output json
Playwright プロジェクトを対象範囲としたテスト セットを実行しますuip tm testsets run --test-set-key <test-set-key> --playwright-project chromium --output json
Wait for the execution to finishuip tm wait --execution-id <id> --project-key SWAG --timeout 120
Get the execution resultsuip tm report get --execution-id <id> --project-key SWAG --output json
トリアージのプル失敗の詳細uip tm executions testcaselogs list --execution-id <id> --project-key SWAG --only-failed --output json

Read pass or fail from uip tm report get. The uip tm wait exit codes depend on the CLI version: 1.207.0 and later exit 1 when a test failed or the run was canceled and 4 on timeout; earlier versions exit 0 at any terminal state and 2 on timeout. On a timeout, run wait again.

参照​

このページは役に立ちましたか?

接続

ヘルプ リソース サポート(opens in new window)

学習する UiPath アカデミー(opens in new window)

質問する UiPath フォーラム(opens in new window)

最新情報を取得