UiPath Documentation
test-manager
latest
false
Test Manager 用户指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

手动执行测试时截取屏幕截图

Capture screenshots of an application during manual test execution and view them as attachments on the test case log.

Record what an application shows at a specific test step by sharing your screen, a window, or a browser tab from the manual execution assistant. Screenshots then appear in the test case log.

步骤​

  1. 导航至项目的“测试集”部分,然后打开手动测试集。

  2. 选择“执行” > “手动” 。手动执行助理将打开,显示第一个准备执行的手动测试用例。

  3. 开始手动执行测试。

  4. 当您到达要截取应用程序屏幕截图的测试步骤时,请转到“更多选项” > “捕获屏幕” 。选择要共享的内容https://cloud.uipath.com/portal_窗口将出现,其中提供以下捕获选项(适用于大多数浏览器):

    • 整个屏幕:此选项会截取所需活动屏幕的屏幕截图。
    • “窗口” :此选项会截取所需应用程序窗口的屏幕截图。
    • <Browser> Tab: This option takes a screenshot of a certain browser tab, such as Chrome, for example. The name varies based on the browser in use.
      备注:

      捕获窗口或浏览器选项卡的屏幕截图时,该选项卡或窗口将获得焦点。要继续执行手动测试,您必须手动返回到手动执行助理。此步骤是因为存在浏览器的安全限制。

    Figure 1. Capturing a screenshot in the Choose what to share window

  5. 选择要捕获的元素后,选择“共享” 。您捕获的屏幕截图现在在测试步骤中显示为预览。

    备注:

    If a screenshot of any window or tab other than Test Manager is captured, that window or tab becomes the main focus. To proceed with the manual execution after taking the screenshot, you need to manually navigate back to the manual execution assistant.

  6. Optionally, select View within the test step to check the preview.

    Figure 2. The preview of the screenshot inside the manual execution assistant

结果​

After completing the manual test execution, open the log of the test case where screenshots were captured. The screenshots appear under the Attachments column.

Figure 3. The test case log displaying the screenshot as an attachment

备注:

您还可以在执行期间将在剪贴板中复制的任何图像粘贴到手动测试步骤中,以添加该图像。

  • 步骤​
  • 结果​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新