UiPath Documentation
functions
latest
false
函数用户指南
  • 概述
    • 关于函数
  • Python 函数
    • 入门指南
    • 构建 Python 函数
    • 访问平台服务
    • 资源绑定
    • 声明资源绑定
    • 调用 Integration Service 活动
    • 追踪和可观察性
    • 测试和调试
  • 部署并运行

测试和调试

在发布前在本地测试函数,并在需要云调试时将其推送到 Studio Web。

在本地运行

使用 JSON 输入有效负载调用入口点:

uipath run main '{"message": "hello"}'
uipath run main '{"message": "hello"}'

The local run resolves assets, buckets, and connections through the entries in bindings.json. No tenant mapping applies locally, so each call falls back to its design-time identifier and the log records one No resource overwrite matched line per binding. Iterate here until the function returns the output you expect.

For what those lines mean and how the same identifiers are remapped in a target tenant, see Resource bindings.

在 Studio Web 中调试

将项目推送到 Studio Web,以在 Cloud 中调试:

uipath push
uipath push

Studio Web 在 UiPath 的托管环境中运行该函数,这对于重现依赖于本地不可用的平台上下文的问题非常有用。

提示

  • 使用代表性输入单独测试每个入口点。
  • 练习错误路径 — 确认错误按预期行为(请参阅构建 Python 函数)。
  • 使用追踪记录来查明是哪个步骤失败。

后续步骤

  • 在本地运行
  • 在 Studio Web 中调试
  • 提示
  • 后续步骤

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新