activities
latest
false
UiPath logo, featuring letters U and I in white

Workflow activities

Last updated Mar 3, 2026

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 > Test Executions > 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
)
void AttachDocument(
    string filePath
)

filePath 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
)
void AttachDocument(
    string filePath,
    IEnumerable<string> tags
)

filePath String : Specify the file path of the document that will be attached to the test case.

tags IEnumerable<String> : Set custom tags to the attached document.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated