autopilot
latest
false
  • 入门指南
    • 关于 Autopilot
    • 启用/禁用 Autopilot
    • 许可
    • 关于本指南
  • 最佳实践
  • Autopilot for Developers
  • Autopilot for Testers
    • Autopilot for Testers
    • 需求评估
    • 手动测试生成
    • 测试自动化
    • 测试结果分析
  • Autopilot for everyone
  • 数据隐私
概述
Last updated 2024年10月22日

测试自动化

AutopilotTM 可帮助您在 Studio 桌面中快速创建更高效的测试自动化。具体来说,Autopilot 通过以下操作为您提供支持:

  • Automating manual tests into low-code or coded test cases.
  • 将文本转换为代码。
  • Create low-code workflows and test cases using prompt instructions.
  • 正在生成综合测试数据。

自动化手动测试

You can generate both low-code and coded test cases from your manual tests linked from Test Manager. Autopilot uses the manual test steps and description, as well as the Object Repository, to generate a fully automated test case that you can use. In the Test Explorer panel, right-select the manual test that you want to automate, then select Generate Test Case with Autopilot or Generate Coded Test Case with Autopilot.



访问 AI 驱动的自动化:自动化手动测试,了解如何从手动测试中创建编码测试用例。

将文本转换为代码

If you want to create a coded test case from scratch, without linking it from Test Manager, you can use Autopilot. You can generate code from the following sources:

  • Comments - Select a comment, right-click, and choose Generate Code.
  • Specific lines in your automation - Select the desired line, right-click, and then choose Generate Code. refine the generation with your prompt, then your code is generated within the automation.
  • Custom prompts - On a blank code line, select the Autopilot icon Autopilot icon, then enter your prompt in the Ask Autopilot to generate code field. Finally, select Generate.
    To open the Ask Autopilot to generate code field, you can also use the Ctrl + Shift + G keyboard shortcut, or right-click in the code editor and select Generate Code.

After Autopilot generates the code you can choose to Confirm the generation or Discard it.



访问 AI 驱动的自动化:生成代码,了解如何从文本为自动化创建代码。

Create low-code test cases using prompt instructions

You can generate low-code test cases using natural language. Autopilot uses the instructions, as well as the Object Repository, to generate a fully automated low-code test case that you can use. In the Designer panel, select generate with Autopilot to create a low-code test case using prompt instructions.

Figure 1. Typing prompt instructions in the Type annotation field

生成综合测试数据

您可以使用 Autopilot 生成根据特定测试需求量身定制的综合测试数据。生成流程支持多种参数类型,您可以使用提示进一步细化这些参数类型。要使用 AI 生成测试数据,请选择“使用 Autopilot 生成”作为您的测试数据源。然后,您可以使用提示优化 Autopilot 生成的数据。

Figure 2. Dialog box when generating test data using Autopilot

访问 AI 驱动的自动化:AI 生成的测试数据,了解如何使用 AI 生成综合测试数据。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。