# 测试报告

## 1. 新建测试报告

测试报告可以对测试计划的执行结果进行分析，了解缺陷分布、缺陷优先级以及产生了哪些缺陷。ONES TestCase 支持按照模版生成测试报告。了解[如何创建测试报告模版](https://guides-ones.gitbook.io/guides/usage-guide/ce-shi-guan-li-pei-zhi-zhong-xin#5-guan-li-ce-shi-bao-gao-mo-ban)。

目前有两种方式新建测试报告：

方法一：在任一测试计划中，点击`新建测试报告`，在弹窗内输入测试报告名称，并选择测试报告模版后，点击`下一步`，选择测试报告的数据范围如哪些项目或者迭代，并点击`确定`，即可生成一份测试报告。

方法二：在测试报告列表页，点击`新建测试报告`，在弹窗内输入测试报告名称，并选择测试报告模版后，点击`下一步`，选择测试报告的数据范围如哪些项目或者迭代，并点击`确定`，即可生成一份测试报告。

## 2. 查看测试报告

目前有两种方式新建测试报告：

方法一：在任一测试计划中，点击`查看测试报告`，选择需要查看测试报告，点击进入查看页面；

方法二：在测试报告列表，选择需要查看或编辑的测试报告，点击进入查看页面。

## 3. 编辑测试报告

在测试报告查看状态，在右上角点击`编辑组件`，可以进入编辑状态，对报告的组件及顺序进行调整，或者编辑富文本框内的内容。

## 4. 导出测试报告

在测试报告查看状态，在右上角点击`导出文档`，可以导出测试报告。

## 5. 删除测试报告

在测试报告查看状态，在右上角点击编辑图标，可以删除测试报告。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides-ones.gitbook.io/guides/usage-guide/ones-testcase/ce-shi-bao-gao.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
