Qtp 简明教程
QTP - Automated Testing Results
Test Results
测试结果窗口为我们提供了足够的信息来显示传递、失败等步骤。测试执行后,结果窗口会自动打开(根据默认设置)。显示以下信息:
The Test Results Window gives us sufficient information to show the steps passed, failed etc. Results window opens automatically after the execution of the test (as per default settings). The following information is displayed −
-
Steps Passed
-
Steps Failed
-
Environment Parameters
-
Graphical Statistics
Operations performed in Test Results
Converting Results to HTML
在结果查看器窗口中,导航到“文件”→“导出到文件”。导出运行结果对话框打开,如下所示:
In the Results Viewer window, navigate to "File" → "Export to File". Export Run Results dialog box opens as shown below −
我们可以选择要导出的报告类型。它可以是简要结果、详细结果,甚至可以选择节点。选择文件名并导出后,文件将保存为 .HTML 文件
We can choose what type of report is to be exported. It can be short results, detailed results or even, we can select nodes. After selecting the File Name and exporting it, the file is saved as .HTML File
Test Results
可以在“工具”→“选项”→“运行会话”选项卡下配置自动测试结果窗口。如果需要,我们可以将其关闭,还可以打开“会话结束时自动导出结果”。
The Automatic Test Results Window can be configured under "Tools" → "Options" → "Run Sessions" Tab. We can turn it OFF, if required, and also, we can switch ON "Automatically Export Results when session Ends".
可以根据设置录制屏幕截图或影片。可以在“工具”→“选项”→“屏幕捕获”选项卡下配置相同内容。我们可以根据以下三个条件保存屏幕截图或影片:
The screenshot or the movie can be recorded based on the settings. The same can be configured under "Tools" → "Options" → "Screen Capture" Tab. We can save the screenshot or movies based on the following three conditions −
-
For Errors
-
Always
-
For Errors and Warnings