# Document Test Cases With Task Capture

> UiPath Task Capture is a process discovery tool that helps you document your test cases to avoid manually downloading the images and typing titles for each of the included actions.

UiPath Task Capture is a process discovery tool that helps you document your test cases to avoid manually downloading the images and typing titles for each of the included actions.

Working in the background, the tool captures the performed steps, takes screenshots with every mouse click, and collects smart data about the process statistics (execution time, number of steps, text entries, etc.). You can edit and annotate each screenshot and add information for each step.

Based on the captured data, UiPath Task Capture builds a comprehensive Process Definition Document (PDD) in a `.ssp`, `.docx` and `.jpg` (diagram image) format that can be easily uploaded to Test Manager.

For more information, see [Task Capture Introduction](https://docs.uipath.com/task-capture/docs/introduction).

## Document With Task Capture

To document test cases with Task Capture, follow these steps:

1. Open your project in Test Manager.
2. Open a test case in Test Manager. If you do not have a test case yet, see [Create Test Cases](creating-test-cases.md).
3. Open the **Manual Steps** tab.
4. Click **Document with Task Capture**.

   If you already have Task Capture installed, skip the following note.

   :::note
   Click **Download** and select the Task Capture version that you want to download. For more information, see [Task Capture Installation](https://docs.uipath.com/installation-and-upgrade/docs/task-capture-installation).

   If requested, grant permission to your browser to open an external application.
   :::
5. Choose whether to [build a diagram or capture a process](https://docs.uipath.com/task-capture/docs/capturing-the-process).
6. When you complete documenting your test case in Task Capture, [publish the workflow to Test Manager](https://docs.uipath.com/task-capture/docs/export-test-manager#3-publish-the-workflow-in-test-manager).

   The workflow will be attached to your test case in the **Manual Steps** tab.

**Working with Task Capture**

You can view your Task Capture files published to Test Manager.

**Viewing diagram file**

To view the action sequence diagram, open a test case in the **Test Cases** page, navigate to the **Manual Steps** tab, and click **View Diagram** to download the file.

For more information, on diagrams, see [Build diagram](https://docs.uipath.com/task-capture/docs/build-diagram).

**Viewing recording file**

To view the Process Definition Document (PDD) as a Word exported file open a test case in the **Test Cases** page, navigate to the **Manual Steps** tab, and click **Open recording** to download the file.

For more information on recordings, see [Details about the PDD](https://docs.uipath.com/task-capture/docs/details-about-the-pdd).
