functions
latest
false
函数用户指南
- 概述
- Python 函数
- 部署并运行
在发布前在本地测试函数,并在需要云调试时将其推送到 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 函数)。
- 使用追踪记录来查明是哪个步骤失败。