activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年3月26日

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.

备注:
  • Orchestrator 中的附件预览适用于 JSON、TXT、XML、PNG 和 JPEG 文件格式。

定义

命名空间: UiPath.Testing.API

程序集: UiPath.Testing.Activities.Api(在 UiPath.Testing.Activities.Api.dll 中)

重载

AttachDocument(String)将文档附加到 Orchestrator 中的当前测试用例。
AttachDocument(String, IEnumerable<String>)在 Orchestrator 中将文档与特定标签一起附加到当前测试用例。

AttachDocument(String)

将文档附加到 Orchestrator 中的当前测试用例。

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

filePath String : 指定要附加到测试用例的文档的文件路径。

AttachDocument(String, IEnumerable<String>)

在 Orchestrator 中将文档与特定标签一起附加到当前测试用例。

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

filePath String : 指定要附加到测试用例的文档的文件路径。

tags IEnumerable < String >:为附加的文档设置自定义标签。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新