UiPath Documentation
uipath-cli
latest
false
UiPath CLI ユーザー ガイド
重要 :
このコンテンツは機械翻訳によって処理されています。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

uip tm attachment

「uip tm attachment」の構文とオプション。テスト ケースのログ、テスト ケース、要件など、Test Manager オブジェクトに添付されたファイルをアップロード、一覧表示、読み取り、名前変更、削除、ダウンロードします。

uip tm attachment は、Test Manager オブジェクトに添付されたファイル (スクリーンショット、シリアル化されたステート、記録されたログ、エクスポート ファイル、オートメーションまたはユーザーがプロジェクトに添付したファイル、要件、テスト ケース、テスト セット、実行、テスト ケースのログ、またはテスト ステップのログ) を管理します。実行のすべての添付ファイルを 1 回のスイープでダウンロードすることも、ID で 1 つの添付ファイルで作業することもできます。

1 つの添付ファイルに名前を付ける動詞はすべて、 --object-typeを取ります。これは、ファイルの添付先のオブジェクトの型です。サーバーはこれを使用して、チェックするアクセス許可を選択します。添付ファイルがその種類のオブジェクトに属していることは検証されません。許容値は、 project、 requirement、 testCase、 testSet、 testExecution、 testStepLog、 testCaseLog、 explorationResultです。

概要​

uip tm attachment download --execution-id <uuid> (--project-id <id> | --project-key <key> | --test-set-key <key>)
                           [--test-case-name <name>]… [--only-failed] [--result-path <path>] [--overwrite]

uip tm attachment download --attachment-id <uuid> --object-type <type> (--project-id <id> | --project-key <key> | --test-set-key <key>)
                           [--output-file <path> | --result-path <path>] [--overwrite]

uip tm attachment upload --object-id <uuid> --object-type <type> --file <path>
                         (--project-id <id> | --project-key <key> | --test-set-key <key>)
                         [--source <source>] [--attachment-type <type>]

uip tm attachment list (--project-id <id> | --project-key <key>)
                       (--object-ids <uuids...> --object-type <type> | --test-case-keys <keys...> | --requirement-keys <keys...> | --all --object-type <type>)
                       [--source <source>] [--limit <n>] [--offset <n>]

uip tm attachment get --attachment-id <uuid> --object-type <type> (--project-id <id> | --project-key <key>)

uip tm attachment update --attachment-id <uuid> --object-type <type> --file-name <name> (--project-id <id> | --project-key <key>)

uip tm attachment delete --attachment-id <uuid> --object-type <type> (--project-id <id> | --project-key <key>) --yes
uip tm attachment download --execution-id <uuid> (--project-id <id> | --project-key <key> | --test-set-key <key>)
                           [--test-case-name <name>]… [--only-failed] [--result-path <path>] [--overwrite]

uip tm attachment download --attachment-id <uuid> --object-type <type> (--project-id <id> | --project-key <key> | --test-set-key <key>)
                           [--output-file <path> | --result-path <path>] [--overwrite]

uip tm attachment upload --object-id <uuid> --object-type <type> --file <path>
                         (--project-id <id> | --project-key <key> | --test-set-key <key>)
                         [--source <source>] [--attachment-type <type>]

uip tm attachment list (--project-id <id> | --project-key <key>)
                       (--object-ids <uuids...> --object-type <type> | --test-case-keys <keys...> | --requirement-keys <keys...> | --all --object-type <type>)
                       [--source <source>] [--limit <n>] [--offset <n>]

uip tm attachment get --attachment-id <uuid> --object-type <type> (--project-id <id> | --project-key <key>)

uip tm attachment update --attachment-id <uuid> --object-type <type> --file-name <name> (--project-id <id> | --project-key <key>)

uip tm attachment delete --attachment-id <uuid> --object-type <type> (--project-id <id> | --project-key <key>) --yes

すべての動詞は、 グローバル オプション と標準の 終了コードを尊重します。

すべての動詞にはプロジェクトが必要です。--project-id または --project-keyを渡します。download と upload は--test-set-keyも受け入れます。複数の--project-idを渡すと、 の順に が優先され、次に --test-set-key のプレフィックスから派生したプロジェクト キーが--project-keyされます。どの関数も渡さない場合、コマンドは で失敗します ErrorCode: invalid_argument。

uip tm attachment download​

次の 2 つのモードのいずれかで添付ファイルをダウンロードします。--execution-idまたは--attachment-idのいずれか 1 つだけが必要であり、各モードは他方のモードのフラグを拒否します。

モード選択者モード専用フラグ
実行スイープ--execution-id--test-case-name, --only-failed
単一のファイル--attachment-id と --object-type--object-type, --output-file

実行モードでは、コマンドは実行のテスト ケースのログをページングし、必要に応じて失敗したテスト ケースのみまたは名前付きテスト ケースに絞り込んでから、各テスト ケースのログのファイルを の下のテスト ケースごとのサブディレクトリにダウンロード --result-path。テスト ケースのログごとに、コマンドによって以下がダウンロードされます。

  • テスト ケースのログの添付ファイル。
  • 実行の種類が [ automated ] または [ mixed] の場合、アサーションのスクリーンショットが表示されます。
  • 実行の種類が [ manual ] または [ mixed] の場合の各テスト ステップの添付ファイルのログ。

単一ファイル モードでは、コマンドは 1 つの添付ファイル、たとえば、エクスポート ジョブで生成されたファイル (--object-type projectなど) をダウンロードします。を --output-fileしないと、ファイルではサーバー ファイル名が 内に保持されます --result-pathです。

引数​

設定はありません。

オプション​

  • --execution-id <uuid> — プルする添付ファイルの実行です。
  • --attachment-id <uuid> — ダウンロードする添付ファイルは 1 つです。--object-typeが必要です。
  • --object-type <type> — --attachment-id がある場合のみ: ファイルの添付先のオブジェクトの種類です。
  • --output-file <path> — --attachment-id のみ 書き込みする正確なパスで、 --result-pathを上書きします。親ディレクトリが作成されます。出力のFileNameは、このパスのベース名です。
  • --overwrite — 既存のファイルを置き換えます。タイムアウトが設定されていない場合、--attachment-id は既存のターゲットを拒否し、既存のファイルをスキップして Skippedのリストを--execution-idします。
  • --project-id <id> — Test Manager プロジェクト ID です。--project-keyも与えると勝利します。
  • --project-key <key> — Test Manager プロジェクト キー (例: DEMO)。--project-idも指定されている場合は無視されます。
  • --test-set-key <key> — テストセットキー(例: DEMO:42);プロジェクト キーはプレフィックスから派生します。
  • --test-case-name <name> — --execution-id がある場合のみ: テスト ケース名 (大文字と小文字を区別しない部分文字列) でフィルター処理します。複数の名前のいずれかを受け入れるには、手順を繰り返します。
  • --only-failed — --execution-id がある場合のみ: 失敗したテスト ケースのログの添付ファイルのみをダウンロードします。
  • --result-path <path> — 出力ディレクトリです。既定では現在のディレクトリです。ディレクトリがない場合は作成されます。
# download every attachment of an execution
uip tm attachment download \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO \
  --result-path ./attachments

# only failed tests, narrowed to two test case names
uip tm attachment download \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO \
  --only-failed \
  --test-case-name login \
  --test-case-name checkout \
  --result-path ./attachments

# one attachment by ID, to an exact path
uip tm attachment download \
  --attachment-id a1b2c3d4-0000-0000-0000-00000000000a \
  --object-type testCase \
  --project-key DEMO \
  --output-file ./evidence/checkout-failure.png
# download every attachment of an execution
uip tm attachment download \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO \
  --result-path ./attachments

# only failed tests, narrowed to two test case names
uip tm attachment download \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO \
  --only-failed \
  --test-case-name login \
  --test-case-name checkout \
  --result-path ./attachments

# one attachment by ID, to an exact path
uip tm attachment download \
  --attachment-id a1b2c3d4-0000-0000-0000-00000000000a \
  --object-type testCase \
  --project-key DEMO \
  --output-file ./evidence/checkout-failure.png

データシェイプ (実行モード)​

{
  "Code": "AttachmentDownload",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "OutputPath": "./attachments",
    "Downloaded": 3,
    "MatchedTestCases": 2
  }
}
{
  "Code": "AttachmentDownload",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "OutputPath": "./attachments",
    "Downloaded": 3,
    "MatchedTestCases": 2
  }
}

添付ファイルのリストを読み取れなかった場合、アサーションのスクリーンショットを取得できなかった場合、または --overwriteされていないファイルがすでに存在していた場合、 Data は、スキップされた項目ごとに 1 つのメッセージを含む Skipped 配列も保持します。ダウンロードに失敗した 1 つのファイルは stderr に警告として記録され、Downloadedにはカウントされず、 にリストされませんSkipped

{
  "Code": "AttachmentDownload",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "OutputPath": "./attachments",
    "Downloaded": 2,
    "MatchedTestCases": 3,
    "Skipped": ["Login flow: HTTP 404: Not Found"]
  }
}
{
  "Code": "AttachmentDownload",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "OutputPath": "./attachments",
    "Downloaded": 2,
    "MatchedTestCases": 3,
    "Skipped": ["Login flow: HTTP 404: Not Found"]
  }
}

フィルターに一致するテスト ケース ログがない場合:

{
  "Code": "AttachmentDownload",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "Message": "No matching test case logs found.",
    "Downloaded": 0
  }
}
{
  "Code": "AttachmentDownload",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "Message": "No matching test case logs found.",
    "Downloaded": 0
  }
}

データシェイプ (単一ファイル モード)​

{
  "Code": "AttachmentDownload",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000a",
    "ObjectType": "testCase",
    "FileName": "checkout-failure.png",
    "OutputPath": "./evidence/checkout-failure.png",
    "Size": 48213
  }
}
{
  "Code": "AttachmentDownload",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000a",
    "ObjectType": "testCase",
    "FileName": "checkout-failure.png",
    "OutputPath": "./evidence/checkout-failure.png",
    "Size": 48213
  }
}

uip tm attachment upload​

ファイルを添付ファイルとしてテスト ケースのログまたはその他の Test Manager オブジェクトにアップロードします。--source または --attachment-type を渡すと、ファイルはタグ付きの添付ファイルとしてアップロードされます。タグ付けされたアップロードには Test Manager の機能が必要です。すべての環境で有効になるわけではありません。両方のフラグをドロップして、タグなしでファイルを添付します。

引数​

設定はありません。

オプション​

  • --object-id <uuid> (必須) — ファイルの添付先のオブジェクトの UUID (テスト ケース ログ ID など)。
  • --object-type <type> (必須) — オブジェクトの型です。project、requirement、testCase、testSet、testExecution、testStepLog、testCaseLog、explorationResultのいずれかです。
  • --file <path> (必須) — アップロードするファイルへのローカル パスです。
  • --project-id <id> — Test Manager プロジェクト ID です。--project-keyも与えると勝利します。
  • --project-key <key> — Test Manager プロジェクト キー (例: DEMO)。--project-idも指定されている場合は無視されます。
  • --test-set-key <key> — テストセットキー(例: DEMO:42);プロジェクト キーはプレフィックスから派生します。
  • --source <source> — タグ付けされた添付ファイルのソースをアップロードします。none、autonomousExecution、autonomousExplorationのいずれかです。
  • --attachment-type <type> — タグ付けされた添付ファイルの添付ファイルの種類です。none、stepExecutionTrace、stepVerificationTraceのいずれかです。
# upload a screenshot to a test case log
uip tm attachment upload \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testCaseLog \
  --project-key DEMO \
  --file ./screenshot.png

# upload an autonomous-execution trace as a tagged attachment
uip tm attachment upload \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testCaseLog \
  --project-id 9dfdc3ca-fc75-0100-2aae-0b46e318b723 \
  --file ./trace.png \
  --source autonomousExecution \
  --attachment-type stepExecutionTrace
# upload a screenshot to a test case log
uip tm attachment upload \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testCaseLog \
  --project-key DEMO \
  --file ./screenshot.png

# upload an autonomous-execution trace as a tagged attachment
uip tm attachment upload \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testCaseLog \
  --project-id 9dfdc3ca-fc75-0100-2aae-0b46e318b723 \
  --file ./trace.png \
  --source autonomousExecution \
  --attachment-type stepExecutionTrace

データシェイプ​

{
  "Code": "AttachmentUpload",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000b",
    "FileName": "trace.png",
    "ObjectId": "a1b2c3d4-0000-0000-0000-000000000001",
    "ObjectType": "testCaseLog",
    "Source": "autonomousExecution",
    "AttachmentType": "stepExecutionTrace"
  }
}
{
  "Code": "AttachmentUpload",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000b",
    "FileName": "trace.png",
    "ObjectId": "a1b2c3d4-0000-0000-0000-000000000001",
    "ObjectType": "testCaseLog",
    "Source": "autonomousExecution",
    "AttachmentType": "stepExecutionTrace"
  }
}

Source と AttachmentType は、タグ付けされたアップロードに対してのみ表示されます。AttachmentId は、サーバーの応答に本文が含まれていない場合に null されます。

UIP TM 添付ファイルのリスト​

Test Manager オブジェクトの添付ファイルをリストにします。添付ファイルは入れ子になったオブジェクトごとに 1 行ずつ表示します。--object-ids、--test-case-keys、--requirement-keys、または --allの 1 つのセレクターのみでオブジェクトを選択します。

解決されないキーは、呼び出しに失敗しません。JSON と YAML 出力は、Dataの横のUnresolvedの下にリストされ、エンベロープのWarningと stderr のメッセージにも名前を付けます。どのキーも解決されない場合にのみ、呼び出しが失敗します。

引数​

設定はありません。

オプション​

  • --project-id <id> — Test Manager プロジェクト ID です。--project-keyも与えると勝利します。
  • --project-key <key> — Test Manager プロジェクト キー (例: DEMO)。--project-idも指定されている場合は無視されます。
  • --object-type <type> — オブジェクトの種類です。--object-ids と --allの場合は必須です。--test-case-keys (testCase) と --requirement-keys (requirement) によって暗示され、矛盾する値を拒否します。
  • --object-ids <uuids...> — スペースで区切られたオブジェクト UUID です。サーバーは ID の存在を確認しないため、不明な ID は添付ファイルのないオブジェクトと同じ AttachmentCount: 0と表示されます。
  • --test-case-keys <keys...> — スペースで区切られたテスト ケースのキーです (例: DEMO:1 DEMO:2)。
  • --requirement-keys <keys...> — スペースで区切られた要件キーです (例: DEMO:7)。
  • --all — プロジェクト内の --object-type のすべてのオブジェクトです。testCase、requirement、testSetで使用できます。1 回の呼び出しにつき 1 ページを返します。封筒の Pagination には、さらに残っているかどうかが書かれています。
  • --source <source> — このソースからの添付ファイルのみ ( taskCapture、 userBased、 studio、 orchestrator)。サーバーの既定値は userBasedです。
  • --limit <n> — 最大で 100個のオブジェクトを返します。既定では で 50 されます --allです。それ以外の場合は、指定されたすべての ID またはキー。
  • --offset <n> — 最初にスキップするオブジェクトです。既定値は 0です。
# attachments of two test cases, by key
uip tm attachment list \
  --project-key DEMO \
  --test-case-keys DEMO:1 DEMO:2

# attachments of the first 50 requirements in the project
uip tm attachment list \
  --project-key DEMO \
  --object-type requirement \
  --all
# attachments of two test cases, by key
uip tm attachment list \
  --project-key DEMO \
  --test-case-keys DEMO:1 DEMO:2

# attachments of the first 50 requirements in the project
uip tm attachment list \
  --project-key DEMO \
  --object-type requirement \
  --all

データシェイプ​

{
  "Code": "AttachmentList",
  "Data": [
    {
      "ObjectId": "c1c2c3c4-0000-0000-0000-000000000001",
      "ObjectKey": "DEMO:1",
      "ObjectName": "Checkout",
      "AttachmentCount": 1,
      "AttachmentIds": ["a1b2c3d4-0000-0000-0000-00000000000a"],
      "Attachments": [
        {
          "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000a",
          "FileName": "checkout-failure.png",
          "FileSize": 48213,
          "FileExtension": ".png",
          "ObjectId": "c1c2c3c4-0000-0000-0000-000000000001",
          "ObjectType": "testCase",
          "Source": "userBased",
          "Created": "2026-09-28T09:12:44.000Z",
          "CreatedBy": "1d39ab35-0000-0000-0000-000000000001",
          "Tags": []
        }
      ]
    },
    {
      "ObjectId": "c1c2c3c4-0000-0000-0000-000000000002",
      "ObjectKey": "DEMO:2",
      "ObjectName": "Login",
      "AttachmentCount": 0,
      "AttachmentIds": [],
      "Attachments": []
    }
  ]
}
{
  "Code": "AttachmentList",
  "Data": [
    {
      "ObjectId": "c1c2c3c4-0000-0000-0000-000000000001",
      "ObjectKey": "DEMO:1",
      "ObjectName": "Checkout",
      "AttachmentCount": 1,
      "AttachmentIds": ["a1b2c3d4-0000-0000-0000-00000000000a"],
      "Attachments": [
        {
          "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000a",
          "FileName": "checkout-failure.png",
          "FileSize": 48213,
          "FileExtension": ".png",
          "ObjectId": "c1c2c3c4-0000-0000-0000-000000000001",
          "ObjectType": "testCase",
          "Source": "userBased",
          "Created": "2026-09-28T09:12:44.000Z",
          "CreatedBy": "1d39ab35-0000-0000-0000-000000000001",
          "Tags": []
        }
      ]
    },
    {
      "ObjectId": "c1c2c3c4-0000-0000-0000-000000000002",
      "ObjectKey": "DEMO:2",
      "ObjectName": "Login",
      "AttachmentCount": 0,
      "AttachmentIds": [],
      "Attachments": []
    }
  ]
}

添付ファイルのないオブジェクトは、空の配列で行を保持します。ObjectKey と ObjectName は、オブジェクトがキーから解決されたか、 でリストされた場合にのみ表示されます --all。--allでは、エンベロープには Pagination (Returned、 Limit、 Offset、 Total、 HasMore) も格納されます。HasMore がtrueになったら、高い--offsetでもう一度実行します。

UIP TM 添付ファイルの取得​

1 つの添付ファイルのメタデータを ID で取得します。

引数​

設定はありません。

オプション​

  • --attachment-id <uuid> (必須) — 添付ファイルの UUID ( attachment listで示されます)。
  • --object-type <type> (必須) — 添付ファイルが属するオブジェクトの種類です。
  • --project-id <id> — Test Manager プロジェクト ID です。--project-keyも与えると勝利します。
  • --project-key <key> — Test Manager プロジェクト キー (例: DEMO)。--project-idも指定されている場合は無視されます。
uip tm attachment get \
  --attachment-id a1b2c3d4-0000-0000-0000-00000000000a \
  --object-type testCase \
  --project-key DEMO
uip tm attachment get \
  --attachment-id a1b2c3d4-0000-0000-0000-00000000000a \
  --object-type testCase \
  --project-key DEMO

データシェイプ​

{
  "Code": "AttachmentGet",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000a",
    "FileName": "checkout-failure.png",
    "FileSize": 48213,
    "FileExtension": ".png",
    "ObjectId": "c1c2c3c4-0000-0000-0000-000000000001",
    "ObjectType": "testCase",
    "Source": "userBased",
    "Created": "2026-09-28T09:12:44.000Z",
    "CreatedBy": "1d39ab35-0000-0000-0000-000000000001",
    "Tags": []
  }
}
{
  "Code": "AttachmentGet",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000a",
    "FileName": "checkout-failure.png",
    "FileSize": 48213,
    "FileExtension": ".png",
    "ObjectId": "c1c2c3c4-0000-0000-0000-000000000001",
    "ObjectType": "testCase",
    "Source": "userBased",
    "Created": "2026-09-28T09:12:44.000Z",
    "CreatedBy": "1d39ab35-0000-0000-0000-000000000001",
    "Tags": []
  }
}

添付ファイル ID が不明な場合、 ErrorCode: "not_found"でResult: "Failure"が返されます。

UIP TM 添付ファイルの更新​

添付ファイルの名前を変更します。変更できるフィールドはファイル名のみです。

引数​

設定はありません。

オプション​

  • --attachment-id <uuid> (必須) — 添付ファイルの UUID ( attachment listで示されます)。
  • --object-type <type> (必須) — 添付ファイルが属するオブジェクトの種類です。
  • --file-name <name> (必須) — 拡張子を含む新しいファイル名です。最大 256 文字。
  • --project-id <id> — Test Manager プロジェクト ID です。--project-keyも与えると勝利します。
  • --project-key <key> — Test Manager プロジェクト キー (例: DEMO)。--project-idも指定されている場合は無視されます。
uip tm attachment update \
  --attachment-id a1b2c3d4-0000-0000-0000-00000000000a \
  --object-type testCase \
  --file-name checkout-failure-v2.png \
  --project-key DEMO
uip tm attachment update \
  --attachment-id a1b2c3d4-0000-0000-0000-00000000000a \
  --object-type testCase \
  --file-name checkout-failure-v2.png \
  --project-key DEMO

データシェイプ​

{
  "Code": "AttachmentUpdate",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000a",
    "FileName": "checkout-failure-v2.png",
    "FileSize": 48213,
    "FileExtension": ".png",
    "ObjectId": "c1c2c3c4-0000-0000-0000-000000000001",
    "ObjectType": "testCase",
    "Source": "userBased",
    "Created": "2026-09-28T09:12:44.000Z",
    "CreatedBy": "1d39ab35-0000-0000-0000-000000000001",
    "Tags": []
  }
}
{
  "Code": "AttachmentUpdate",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000a",
    "FileName": "checkout-failure-v2.png",
    "FileSize": 48213,
    "FileExtension": ".png",
    "ObjectId": "c1c2c3c4-0000-0000-0000-000000000001",
    "ObjectType": "testCase",
    "Source": "userBased",
    "Created": "2026-09-28T09:12:44.000Z",
    "CreatedBy": "1d39ab35-0000-0000-0000-000000000001",
    "Tags": []
  }
}

UIP TM 添付ファイルの削除​

添付ファイルを ID で削除します。

引数​

設定はありません。

オプション​

  • --attachment-id <uuid> (必須) — 添付ファイルの UUID ( attachment listで示されます)。
  • --object-type <type> (必須) — 添付ファイルが属するオブジェクトの種類です。
  • --project-id <id> — Test Manager プロジェクト ID です。--project-keyも与えると勝利します。
  • --project-key <key> — Test Manager プロジェクト キー (例: DEMO)。--project-idも指定されている場合は無視されます。
  • -y, --yes (必須) — 元に戻せない操作を確認します。CLI ではプロンプトは表示されません。 --yes 指定しない場合、コマンドは Result: "Failure" を返して終了 1。
uip tm attachment delete \
  --attachment-id a1b2c3d4-0000-0000-0000-00000000000a \
  --object-type testCase \
  --project-key DEMO \
  --yes
uip tm attachment delete \
  --attachment-id a1b2c3d4-0000-0000-0000-00000000000a \
  --object-type testCase \
  --project-key DEMO \
  --yes

データシェイプ​

{
  "Code": "AttachmentDelete",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000a",
    "ObjectType": "testCase",
    "Result": "Deleted"
  }
}
{
  "Code": "AttachmentDelete",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-00000000000a",
    "ObjectType": "testCase",
    "Result": "Deleted"
  }
}
  • testsets run — downloadで使用されるExecutionIdを生成します。
  • 待機 — 実行が終了するまでブロックしてから添付ファイルをプルします。
  • テストステップログのリスト — ファイルを運ぶテスト ステップを HasAttachment: true マークします。
  • export-jobs — 完了したエクスポート ジョブの AttachmentId は、 で取得するファイルです download --attachment-idで取得します。
  • result — 同じ実行のJUnit XML。
  • レポート — 人間が判読できる要約。

参照​

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

接続

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

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

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

最新情報を取得