UiPath Documentation
functions
2.2610
true
Functions ユーザー ガイド
  • 概要
    • Functions について
    • ライセンス
  • 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のエントリを介して解決されます。テナント マッピングはローカルには適用されないため、各呼び出しは設計時の識別子にフォールバックし、ログにはバインドごとに 1 行の 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 関数を構築する」を参照)。
  • ト レース を使用して、どのステップが失敗するかを特定します。

次のステップ​

このページは役に立ちましたか?

接続

ヘルプ リソース サポート(opens in new window)

学習する UiPath アカデミー(opens in new window)

質問する UiPath フォーラム(opens in new window)

最新情報を取得