UiPath Documentation
autopilot
latest
false
Autopilot ガイド
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

Generate coded test cases

Autopilot capabilities for generating coded and low-code test cases from natural language, comments, or existing code.

Autopilot assists you in generating coded test cases, either from text and existing code, or from manual test cases created in Test Manager.

Generating coded test cases from text and existing code

In a new or existing coded automation, you can use Autopilot to generate code from natural language, from comments in your automation, or from existing lines of code. Use the Ctrl + Shift + G shortcut, or the Autopilot icon, to generate code.

Generating coded test cases from manual tests

デスクトップ版の Studio を Test Manager に接続してから、テスト エクスプローラーに移動して手動テストを検索します。ここから、次のいずれかのシナリオを選択して、コード化されたテスト ケースを生成できます。

  • [コード化されたテスト ケースを作成] を使用して、コード化されたテスト ケースを作成します。ここでは、ステップがコメントとして表示されます。続いて、コメントに基づいてコードを生成するよう Autopilot にプロンプトを送信します。

  • [Autopilot を使用してコード化されたテスト ケースを生成] を使用して、正常に機能するコード化されたテスト ケースを直接生成します。

Generate coded API test cases

If you want to create a coded test case that automates a scenario involving APIs, Autopilot can help with generating the code for this scenario. In the code editor, open the context menu and select Generate Code, then offer Autopilot the necessary instructions. For instance, you should offer Autopilot the API that you want to use, and the API key that it should access.

Generate low-code test cases

Autopilot はローコードのテスト ケースの生成を支援します。テキストからでも、Test Manager で作成した手動テストからでも生成が可能です。

From manual tests

Connect Studio Desktop to Test Manager and locate your manual test in the Test Explorer. Then, open the context menu for the manual test and select Generate Test Case with Autopilot.

From text

空のローコードのテスト ケースを開き、デザイナー パネルから [Autopilot で生成] を選択します。目的のテスト ステップを入力し、[生成] を選択してテスト ケースの生成をトリガーします。

図 1.[ 注釈を入力 ] フィールドでのプロンプト指示の入力

詳しくは、「 AI を使用したローコード テスト ケースの生成」をご覧ください。

ベスト プラクティス

効果的なプロンプトの記述、およびテキストや手動テストをコードに変換する際のオブジェクト リポジトリと命名規則の使用に関するガイダンスについては、以下をご覧ください。

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

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得