functions
2.2610
true
函数用户指南
- 概述
- JavaScript 函数
- Python 函数
- 部署并运行
测试和调试
Run and test a Python function locally, then push it to Studio Web to debug it in Automation Suite.
Test a function locally before publishing, and push it to Studio Web when you need to debug it in Automation Suite.
在本地运行
使用 JSON 输入有效负载调用入口点:
uipath run main '{"message": "hello"}'
uipath run main '{"message": "hello"}'
本地运行通过 bindings.json 中的条目解析资产、存储桶和连接。任何租户映射均未在本地应用,因此每次调用都会回退到其设计时标识符,并且日志为每次绑定记录 No resource overwrite matched 行。在此处进行迭代,直到函数返回您预期的输出。
有关这些行的含义,以及如何在目标租户中重新映射相同的标识符,请参阅资源绑定。
在 Studio Web 中调试
Push the project to Studio Web to debug it in Automation Suite:
uipath push
uipath push
Studio Web runs the function in Automation Suite, which is useful for reproducing issues that depend on platform context not available locally.
提示
- 使用代表性输入单独测试每个入口点。
- 练习错误路径 — 确认错误按预期行为(请参阅构建 Python 函数)。
- 使用追踪记录来查明是哪个步骤失败。