Results - Get Test Result By Id
GET https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/runs/{runId}/results/{testResultId}?api-version=7.1-preview.2
GET https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/runs/{runId}/results/{testResultId}?detailsToInclude={detailsToInclude}&api-version=7.1-preview.2
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
organization
|
path | True |
string |
Azure DevOps 組織の名前です。 |
|
project
|
path | True |
string |
プロジェクト ID またはプロジェクト名 |
|
run
|
path | True |
integer int32 |
|
|
test
|
path | True |
integer int32 |
|
|
api-version
|
query | True |
string |
使う API のバージョン。 このバージョンの API を使用するには、これを '7.1-preview.2' に設定する必要があります。 |
|
details
|
query |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
正常な操作 |
セキュリティ
oauth2
型:
oauth2
フロー:
accessCode
Authorization URL (承認 URL):
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL (トークン URL):
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
スコープ
| 名前 | 説明 |
|---|---|
| vso.test | テスト 計画、ケース、結果、その他のテスト管理関連の成果物を読み取る機能を付与します。 |
定義
| 名前 | 説明 |
|---|---|
|
Build |
ビルドへの参照。 |
|
Custom |
ユーザー設定フィールド情報。 許可されるキー: 値のペア - ( AttemptId: int value, IsTestResultFlaky: bool) |
|
Failing |
テスト結果の情報以降に失敗する。 |
|
Identity |
|
|
Reference |
|
|
Release |
リリースへの参照。 |
|
Result |
|
|
Result |
結果の階層の種類。既定値の None はリーフ ノードを意味します。 |
|
Shallow |
他のリソースへの抽象化された参照。 このクラスは、リンクを介して簡単に走査できる方法で他のリソースを参照する統一された方法でビルド データ コントラクトを提供するために使用されます。 |
|
Shared |
共有ステップ作業項目への参照。 |
|
Test |
テスト ステップの結果を表します。 |
|
Test |
テスト結果を表します。 |
|
Test |
テスト イテレーションの添付ファイル情報をテストします。 |
|
Test |
テスト結果への参照。 |
|
Test |
テストイテレーションの結果を表します。 |
|
Test |
テスト イテレーションのテスト パラメーター情報。 |
|
Test |
テスト結果のサブ結果を表します。 |
BuildReference
ビルドへの参照。
| 名前 | 型 | 説明 |
|---|---|---|
| branchName |
string |
ブランチ名。 |
| buildSystem |
string |
ビルド システム。 |
| definitionId |
integer |
ビルド定義 ID。 |
| id |
integer |
ビルド ID。 |
| number |
string |
ビルド番号。 |
| repositoryId |
string |
リポジトリ ID。 |
| uri |
string |
ビルド URI。 |
CustomTestField
ユーザー設定フィールド情報。 許可されるキー: 値のペア - ( AttemptId: int value, IsTestResultFlaky: bool)
| 名前 | 型 | 説明 |
|---|---|---|
| fieldName |
string |
フィールド名。 |
| value |
object |
フィールド値。 |
FailingSince
テスト結果の情報以降に失敗する。
| 名前 | 型 | 説明 |
|---|---|---|
| build |
失敗後のビルド参照。 |
|
| date |
string |
失敗してからの時間 (UTC)。 |
| release |
失敗後のリリース 参照。 |
IdentityRef
| 名前 | 型 | 説明 |
|---|---|---|
| _links | ||
| descriptor |
string |
|
| directoryAlias |
string |
|
| displayName |
string |
|
| id |
string |
|
| imageUrl |
string |
|
| inactive |
boolean |
|
| isAadIdentity |
boolean |
|
| isContainer |
boolean |
|
| isDeletedInOrigin |
boolean |
|
| profileUrl |
string |
|
| uniqueName |
string |
|
| url |
string |
ReferenceLinks
| 名前 | 型 | 説明 |
|---|---|---|
| links |
object |
ReleaseReference
リリースへの参照。
| 名前 | 型 | 説明 |
|---|---|---|
| attempt |
integer |
リリース試行回数。 |
| creationDate |
string |
リリースの作成日 (UTC)。 |
| definitionId |
integer |
リリース定義 ID。 |
| environmentCreationDate |
string |
環境の作成日 (UTC)。 |
| environmentDefinitionId |
integer |
リリース環境定義 ID。 |
| environmentDefinitionName |
string |
リリース環境定義名。 |
| environmentId |
integer |
リリース環境 ID。 |
| environmentName |
string |
リリース環境名。 |
| id |
integer |
リリース ID。 |
| name |
string |
リリース名。 |
ResultDetails
| 値 | 説明 |
|---|---|
| iterations |
テスト結果のイテレーションの詳細をテストします。 |
| none |
テスト結果のコア フィールド。 コア フィールドには、State、Outcome、Priority、AutomatedTestName、AutomatedTestStorage、Comments、ErrorMessage などが含まれます。 |
| point |
テスト結果のポイントとプランの詳細。 |
| subResults |
テスト結果のサブ結果。 |
| workItems |
テスト結果に関連付けられている作業項目。 |
ResultGroupType
結果の階層の種類。既定値の None はリーフ ノードを意味します。
| 値 | 説明 |
|---|---|
| dataDriven |
テスト結果の階層の種類。 |
| generic |
階層の種類が不明です。 |
| none |
テスト結果のリーフ ノード。 |
| orderedTest |
テスト結果の階層の種類。 |
| rerun |
テスト結果の階層の種類。 |
ShallowReference
他のリソースへの抽象化された参照。 このクラスは、リンクを介して簡単に走査できる方法で他のリソースを参照する統一された方法でビルド データ コントラクトを提供するために使用されます。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string |
リソースの ID |
| name |
string |
リンクされたリソースの名前 (定義名、コントローラー名など) |
| url |
string |
リソースへの完全な http リンク |
SharedStepModel
共有ステップ作業項目への参照。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
integer |
WorkItem 共有ステップ ID。 |
| revision |
integer |
共有ステップの作業項目リビジョン。 |
TestActionResultModel
テスト ステップの結果を表します。
| 名前 | 型 | 説明 |
|---|---|---|
| actionPath |
string |
テスト ケースワークアイテムのテスト ステップのパス識別子。 注: 1) ステップの 8 桁の 16 進数形式で表されます。 2) 内部的には、最初のステップのステップ ID 値は 2 で始まるので、actionPath = 00000002ステップ 9、ID = 10、actionPath = 000000a ステップ 15、ID =16、actionPath = 00000010 3) 共有ステップの actionPath がテスト ケースの親ステップと連結されます。 たとえば、00000003はテスト ステップのアクション パスを表し、00000001は共有ステップのアクション パスを示す0000000300000001の種類になります。 |
| comment |
string |
結果のコメント。 |
| completedDate |
string |
実行が完了した時刻 (UTC)。 |
| durationInMs |
number |
実行時間。 |
| errorMessage |
string |
結果のエラー メッセージ。 |
| iterationId |
integer |
テスト アクションの結果のイテレーション ID。 |
| outcome |
string |
結果のテスト結果。 |
| sharedStepModel |
共有ステップ作業項目への参照。 |
|
| startedDate |
string |
実行が開始された時刻 (UTC)。 |
| stepIdentifier |
string |
これはテスト ケースのステップ ID です。 共有ステップの場合は、テスト ケースワークアイテムの共有ステップのステップ ID です。共有ステップのステップ ID。 例: TestCase workitem には、2 つの手順があります。1) 通常のステップと ID = 1 2) 共有ステップと ID = 2。 共有ステップ内: a) Id を持つ通常のステップ = 1 最初のステップの StepIdentifier の値: "1" 2 番目のステップ: "2;1" |
| url |
string |
テスト アクションの結果の URL。 ホストされた環境では非推奨です。 |
TestCaseResult
テスト結果を表します。
| 名前 | 型 | 説明 |
|---|---|---|
| afnStripId |
integer |
アクション記録の添付ファイル ID をテストします。 |
| area |
テストの領域パスへの参照。 |
|
| associatedBugs |
テスト結果にリンクされているバグへの参照。 |
|
| automatedTestId |
string |
dll 内のテスト メソッドを表す ID。 |
| automatedTestName |
string |
実行されたテストの完全修飾名。 |
| automatedTestStorage |
string |
テストが属するコンテナー。 |
| automatedTestType |
string |
自動テストの種類。 |
| automatedTestTypeId |
string |
自動テストの TypeId。 |
| build |
テスト結果に関連付けられているビルドへの浅い参照。 |
|
| buildReference |
テスト結果に関連付けられているビルドへの参照。 |
|
| comment |
string |
maxSize= 1000 文字のテスト結果にコメントを付けます。 |
| completedDate |
string |
テスト実行が完了した時刻 (UTC)。 完了日は StartedDate より大きくする必要があります。 |
| computerName |
string |
テストが実行されたマシン名。 |
| configuration |
テスト構成への参照。 「ShallowReference」と入力します。 |
|
| createdDate |
string |
テスト結果が作成されたときのタイムスタンプ (UTC)。 |
| customFields |
テスト結果の追加プロパティ。 |
|
| durationInMs |
number |
テストの実行時間 (ミリ秒単位)。 指定しない場合、値は CompletedDate - StartedDate として設定されます |
| errorMessage |
string |
テスト実行中のエラー メッセージ。 |
| failingSince |
テスト結果の失敗が開始されたときの情報。 |
|
| failureType |
string |
テスト結果の失敗の種類。 有効な値= (既知の問題、新しい問題、回帰、不明、なし) |
| id |
integer |
テスト結果の ID。 |
| iterationDetails |
手動テストにのみ使用されるテスト イテレーションのテスト結果の詳細。 |
|
| lastUpdatedBy |
ID の最後に更新されたテスト結果への参照。 |
|
| lastUpdatedDate |
string |
テスト結果の最終更新日時 (UTC)。 |
| outcome |
string |
テスト結果のテスト結果。 有効な値 = (Unspecified、None、Passed、Failed、Inconclusive、Timeout、Aborted、Blocked、NotExecuted、Warning、Error、NotApplicable、Paused、InProgress、NotImpacted) |
| owner |
テスト所有者への参照。 |
|
| priority |
integer |
実行されるテストの優先度。 |
| project |
チーム プロジェクトへの参照。 |
|
| release |
テスト結果に関連付けられているリリースへの浅い参照。 |
|
| releaseReference |
テスト結果に関連付けられているリリースへの参照。 |
|
| resetCount |
integer |
ResetCount。 |
| resolutionState |
string |
テスト結果の解決状態。 |
| resolutionStateId |
integer |
解決状態の ID。 |
| resultGroupType |
結果の階層の種類。既定値の None はリーフ ノードを意味します。 |
|
| revision |
integer |
テスト結果のリビジョン番号。 |
| runBy |
テストを実行した ID への参照。 |
|
| stackTrace |
string |
maxSize= 1000 文字の Stacktrace。 |
| startedDate |
string |
テスト実行が開始された時刻 (UTC)。 |
| state |
string |
テスト結果の状態。 「TestRunState」と入力します。 |
| subResults |
テスト結果内のサブ結果の一覧。ResultGroupType が None でない場合は、対応する型のサブ結果が保持されます。 |
|
| testCase |
実行されたテストへの参照。 |
|
| testCaseReferenceId |
integer |
テスト結果で使用されるテストの参照 ID。 TestResultMetaData 型 |
| testCaseRevision |
integer |
TestCaseRevision Number。 |
| testCaseTitle |
string |
テストの名前。 |
| testPlan |
テスト 計画のテスト ケースの作業項目への参照は の一部です。 |
|
| testPoint |
実行されたテスト ポイントへの参照。 |
|
| testRun |
テスト実行への参照。 |
|
| testSuite |
テスト スイートのテスト ケース作業項目への参照は の一部です。 |
|
| url |
string |
テスト結果の URL。 |
TestCaseResultAttachmentModel
テスト イテレーションの添付ファイル情報をテストします。
| 名前 | 型 | 説明 |
|---|---|---|
| actionPath |
string |
テスト ケースワークアイテムのパス識別子テストステップ。 |
| id |
integer |
添付ファイル ID。 |
| iterationId |
integer |
イテレーション ID。 |
| name |
string |
添付ファイルの名前。 |
| size |
integer |
添付ファイルのサイズ。 |
| url |
string |
添付ファイルの URL。 |
TestCaseResultIdentifier
テスト結果への参照。
| 名前 | 型 | 説明 |
|---|---|---|
| testResultId |
integer |
テスト結果 ID。 |
| testRunId |
integer |
テスト実行 ID。 |
TestIterationDetailsModel
テストイテレーションの結果を表します。
| 名前 | 型 | 説明 |
|---|---|---|
| actionResults |
テスト ステップを実行すると、イテレーションが発生します。 |
|
| attachments |
テストイテレーション結果の添付ファイルへの参照。 |
|
| comment |
string |
テストイテレーションの結果にコメントを付けます。 |
| completedDate |
string |
実行が完了した時刻 (UTC)。 |
| durationInMs |
number |
実行時間。 |
| errorMessage |
string |
テスト イテレーションの結果の実行のエラー メッセージ。 |
| id |
integer |
テストイテレーション結果の ID。 |
| outcome |
string |
テストイテレーションの結果をテストする場合は、結果をテストします。 |
| parameters |
イテレーションでパラメーターをテストします。 |
|
| startedDate |
string |
実行が開始された時刻 (UTC)。 |
| url |
string |
反復結果をテストするための URL。 |
TestResultParameterModel
テスト イテレーションのテスト パラメーター情報。
| 名前 | 型 | 説明 |
|---|---|---|
| actionPath |
string |
パラメーターが参照されるテスト ステップ パス。 |
| iterationId |
integer |
イテレーション ID。 |
| parameterName |
string |
パラメーターの名前。 |
| stepIdentifier |
string |
これはテスト ケースのステップ ID です。 共有ステップの場合は、テスト ケースワークアイテムの共有ステップのステップ ID です。共有ステップのステップ ID。 例: TestCase workitem には、2 つの手順があります。1) 通常のステップと ID = 1 2) 共有ステップと ID = 2。 共有ステップ内: a) Id を持つ通常のステップ = 1 最初のステップの StepIdentifier の値: "1" 2 番目のステップ: "2;1" |
| url |
string |
テスト パラメーターの URL。 ホストされた環境では非推奨です。 |
| value |
string |
パラメーターの値。 |
TestSubResult
テスト結果のサブ結果を表します。
| 名前 | 型 | 説明 |
|---|---|---|
| comment |
string |
サブ結果のコメント。 |
| completedDate |
string |
テスト実行が完了した時刻 (UTC)。 |
| computerName |
string |
テストが実行されたマシン。 |
| configuration |
テスト構成への参照。 |
|
| customFields |
サブ結果の追加プロパティ。 |
|
| displayName |
string |
サブ結果の名前。 |
| durationInMs |
integer |
テスト実行の期間。 |
| errorMessage |
string |
サブ結果のエラー メッセージ。 |
| id |
integer |
サブ結果の ID。 |
| lastUpdatedDate |
string |
結果が最後に更新された時刻 (UTC)。 |
| outcome |
string |
サブ結果の結果。 |
| parentId |
integer |
サブ結果の直接親 ID。 |
| resultGroupType |
結果の階層の種類。既定値の None はリーフ ノードを意味します。 |
|
| sequenceId |
integer |
サブ結果のインデックス番号。 |
| stackTrace |
string |
Stacktrace。 |
| startedDate |
string |
テスト実行が開始された時刻 (UTC)。 |
| subResults |
サブ結果内のサブ結果の一覧。ResultGroupType が None でない場合は、対応する型 sub 結果が保持されます。 |
|
| testResult |
テスト結果への参照。 |
|
| url |
string |
サブ結果の URL。 |