# AttachDocument

> Attach documents to your test execution results to have proof of the outcome. You can view the attachment in Orchestrator by navigating to **Testing** &gt; **Test Executions** &gt; **Test Run Details** and then selecting **View attachments** on a specific test case.
:::note
* Attachment preview in Orchestrator is available for JSON, TXT, XML, PNG and JPEG file formats.
:::

Attach documents to your test execution results to have proof of the outcome. You can view the attachment in Orchestrator by navigating to **Testing** &gt; **Test Executions** &gt; **Test Run Details** and then selecting **View attachments** on a specific test case.
:::note
* Attachment preview in Orchestrator is available for JSON, TXT, XML, PNG and JPEG file formats.
:::

## Definition

**Namespace:** UiPath.Testing.API

**Assembly:** UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

## Overloads

|  |  |
| --- | --- |
| `AttachDocument(String)` | Attach a document to the current test case in Orchestrator. |
| `AttachDocument(String, IEnumerable<String>)` | Attach a document, along with specific tags, to the current test case in Orchestrator. |

## `AttachDocument(String)`

Attach a document to the current test case in Orchestrator.

```
void AttachDocument(
    string filePath
)
```

`filePath` [String](https://learn.microsoft.com/dotnet/api/system.string) : Specify the file path of the document that will be attached to the test case.

## `AttachDocument(String, IEnumerable<String>)`

Attach a document, along with specific tags, to the current test case in Orchestrator.

```
void AttachDocument(
    string filePath,
    IEnumerable<string> tags
)
```

`filePath` [String](https://learn.microsoft.com/dotnet/api/system.string) : Specify the file path of the document that will be attached to the test case.

`tags` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[String](https://learn.microsoft.com/dotnet/api/system.string)&gt; : Set custom tags to the attached document.
