azure-devops-extension-api 1.158.0 → 2.220.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accounts/AccountsClient.d.ts +1 -1
- package/Accounts/AccountsClient.js +4 -4
- package/Accounts/AccountsClient.min.js +1 -1
- package/Build/Build.d.ts +205 -3
- package/Build/Build.js +6 -2
- package/Build/Build.min.js +1 -1
- package/Build/BuildClient.d.ts +121 -13
- package/Build/BuildClient.js +468 -101
- package/Build/BuildClient.min.js +1 -1
- package/Contributions/Contributions.d.ts +1 -1
- package/Contributions/ContributionsClient.js +4 -4
- package/Contributions/ContributionsClient.min.js +1 -1
- package/Core/CoreClient.d.ts +2 -2
- package/Core/CoreClient.js +49 -36
- package/Core/CoreClient.min.js +1 -1
- package/Dashboard/Dashboard.d.ts +79 -2
- package/Dashboard/Dashboard.js +10 -0
- package/Dashboard/Dashboard.min.js +1 -1
- package/Dashboard/DashboardClient.d.ts +2 -2
- package/Dashboard/DashboardClient.js +15 -15
- package/Dashboard/DashboardClient.min.js +1 -1
- package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.js +27 -27
- package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
- package/Favorite/Favorite.d.ts +124 -0
- package/Favorite/Favorite.js +9 -0
- package/Favorite/Favorite.min.js +1 -0
- package/Favorite/FavoriteClient.d.ts +78 -0
- package/Favorite/FavoriteClient.js +314 -0
- package/Favorite/FavoriteClient.min.js +1 -0
- package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
- package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
- package/FeatureManagement/FeatureManagementClient.js +9 -9
- package/FeatureManagement/FeatureManagementClient.min.js +1 -1
- package/FileContainer/FileContainer.d.ts +22 -0
- package/FileContainer/FileContainer.js +8 -0
- package/FileContainer/FileContainer.min.js +1 -1
- package/FileContainer/FileContainerClient.d.ts +5 -2
- package/FileContainer/FileContainerClient.js +13 -7
- package/FileContainer/FileContainerClient.min.js +1 -1
- package/FormInput/FormInput.d.ts +1 -1
- package/Gallery/Gallery.d.ts +92 -7
- package/Gallery/Gallery.js +25 -3
- package/Gallery/Gallery.min.js +1 -1
- package/Gallery/GalleryClient.d.ts +41 -9
- package/Gallery/GalleryClient.js +211 -90
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +121 -7
- package/Git/Git.js +2 -1
- package/Git/Git.min.js +1 -1
- package/Git/GitClient.d.ts +182 -28
- package/Git/GitClient.js +657 -162
- package/Git/GitClient.min.js +1 -1
- package/Graph/Graph.d.ts +107 -17
- package/Graph/GraphClient.d.ts +42 -3
- package/Graph/GraphClient.js +159 -38
- package/Graph/GraphClient.min.js +1 -1
- package/Identities/Identities.d.ts +15 -0
- package/Locations/LocationsClient.js +9 -9
- package/Locations/LocationsClient.min.js +1 -1
- package/Notification/Notification.d.ts +3 -3
- package/Notification/NotificationClient.d.ts +6 -0
- package/Notification/NotificationClient.js +40 -23
- package/Notification/NotificationClient.min.js +1 -1
- package/Operations/OperationsClient.d.ts +1 -1
- package/Operations/OperationsClient.js +2 -2
- package/Operations/OperationsClient.min.js +1 -1
- package/Pipelines/Pipelines.d.ts +318 -0
- package/Pipelines/Pipelines.js +82 -0
- package/Pipelines/Pipelines.min.js +1 -0
- package/Pipelines/PipelinesClient.d.ts +92 -0
- package/Pipelines/PipelinesClient.js +325 -0
- package/Pipelines/PipelinesClient.min.js +1 -0
- package/Policy/Policy.d.ts +4 -0
- package/Policy/PolicyClient.d.ts +3 -3
- package/Policy/PolicyClient.js +30 -19
- package/Policy/PolicyClient.min.js +1 -1
- package/Profile/ProfileClient.js +12 -12
- package/Profile/ProfileClient.min.js +1 -1
- package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
- package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
- package/Release/Release.d.ts +81 -7
- package/Release/Release.js +11 -0
- package/Release/Release.min.js +1 -1
- package/Release/ReleaseClient.d.ts +31 -5
- package/Release/ReleaseClient.js +223 -95
- package/Release/ReleaseClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
- package/ServiceEndpoint/ServiceEndpoint.js +1 -0
- package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
- package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/ServiceHooks/ServiceHooks.d.ts +2 -1
- package/ServiceHooks/ServiceHooksClient.js +23 -23
- package/ServiceHooks/ServiceHooksClient.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +740 -17
- package/TaskAgent/TaskAgent.js +133 -0
- package/TaskAgent/TaskAgent.min.js +1 -1
- package/TaskAgent/TaskAgentClient.d.ts +28 -16
- package/TaskAgent/TaskAgentClient.js +336 -195
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/Test/Test.d.ts +96 -25
- package/Test/Test.js +8 -0
- package/Test/Test.min.js +1 -1
- package/Test/TestClient.d.ts +17 -34
- package/Test/TestClient.js +163 -152
- package/Test/TestClient.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +215 -18
- package/TestPlan/TestPlan.js +47 -1
- package/TestPlan/TestPlan.min.js +1 -1
- package/TestPlan/TestPlanClient.d.ts +48 -14
- package/TestPlan/TestPlanClient.js +255 -74
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestResults/TestResultsClient.d.ts +112 -27
- package/TestResults/TestResultsClient.js +518 -134
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Tfvc/Tfvc.d.ts +9 -1
- package/Tfvc/TfvcClient.d.ts +3 -2
- package/Tfvc/TfvcClient.js +41 -28
- package/Tfvc/TfvcClient.min.js +1 -1
- package/WebApi/WebApi.d.ts +22 -3
- package/Wiki/Wiki.d.ts +51 -0
- package/Wiki/WikiClient.d.ts +18 -0
- package/Wiki/WikiClient.js +71 -1
- package/Wiki/WikiClient.min.js +1 -1
- package/Work/Work.d.ts +68 -1
- package/Work/WorkClient.d.ts +10 -3
- package/Work/WorkClient.js +78 -58
- package/Work/WorkClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +221 -1
- package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
- package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
- package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
- package/package.json +3 -3
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
|
|
51
|
+
define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serialization"], function (require, exports, RestClientBase_1, Serialization_1) {
|
|
52
52
|
"use strict";
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
var TestResultsRestClient = /** @class */ (function (_super) {
|
|
@@ -73,7 +73,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
73
73
|
actionPath: actionPath
|
|
74
74
|
};
|
|
75
75
|
return [2 /*return*/, this.beginRequest({
|
|
76
|
-
apiVersion: "
|
|
76
|
+
apiVersion: "7.1-preview.1",
|
|
77
77
|
method: "POST",
|
|
78
78
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
79
79
|
routeValues: {
|
|
@@ -97,7 +97,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
97
97
|
return __awaiter(this, void 0, void 0, function () {
|
|
98
98
|
return __generator(this, function (_a) {
|
|
99
99
|
return [2 /*return*/, this.beginRequest({
|
|
100
|
-
apiVersion: "
|
|
100
|
+
apiVersion: "7.1-preview.1",
|
|
101
101
|
method: "POST",
|
|
102
102
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
103
103
|
routeValues: {
|
|
@@ -125,7 +125,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
125
125
|
testSubResultId: testSubResultId
|
|
126
126
|
};
|
|
127
127
|
return [2 /*return*/, this.beginRequest({
|
|
128
|
-
apiVersion: "
|
|
128
|
+
apiVersion: "7.1-preview.1",
|
|
129
129
|
method: "POST",
|
|
130
130
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
131
131
|
routeValues: {
|
|
@@ -149,7 +149,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
149
149
|
return __awaiter(this, void 0, void 0, function () {
|
|
150
150
|
return __generator(this, function (_a) {
|
|
151
151
|
return [2 /*return*/, this.beginRequest({
|
|
152
|
-
apiVersion: "
|
|
152
|
+
apiVersion: "7.1-preview.1",
|
|
153
153
|
method: "DELETE",
|
|
154
154
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
155
155
|
routeValues: {
|
|
@@ -162,6 +162,68 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
162
162
|
});
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
|
+
/**
|
|
166
|
+
* Returns a test iteration attachment
|
|
167
|
+
*
|
|
168
|
+
* @param project - Project ID or project name
|
|
169
|
+
* @param runId -
|
|
170
|
+
* @param testCaseResultId -
|
|
171
|
+
* @param attachmentId -
|
|
172
|
+
* @param iterationId -
|
|
173
|
+
*/
|
|
174
|
+
TestResultsRestClient.prototype.getTestIterationAttachmentContent = function (project, runId, testCaseResultId, attachmentId, iterationId) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
176
|
+
var queryValues;
|
|
177
|
+
return __generator(this, function (_a) {
|
|
178
|
+
queryValues = {
|
|
179
|
+
iterationId: iterationId
|
|
180
|
+
};
|
|
181
|
+
return [2 /*return*/, this.beginRequest({
|
|
182
|
+
apiVersion: "7.1-preview.1",
|
|
183
|
+
httpResponseType: "application/octet-stream",
|
|
184
|
+
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
185
|
+
routeValues: {
|
|
186
|
+
project: project,
|
|
187
|
+
runId: runId,
|
|
188
|
+
testCaseResultId: testCaseResultId,
|
|
189
|
+
attachmentId: attachmentId
|
|
190
|
+
},
|
|
191
|
+
queryParams: queryValues
|
|
192
|
+
})];
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Returns a test iteration attachment
|
|
198
|
+
*
|
|
199
|
+
* @param project - Project ID or project name
|
|
200
|
+
* @param runId -
|
|
201
|
+
* @param testCaseResultId -
|
|
202
|
+
* @param attachmentId -
|
|
203
|
+
* @param iterationId -
|
|
204
|
+
*/
|
|
205
|
+
TestResultsRestClient.prototype.getTestIterationAttachmentZip = function (project, runId, testCaseResultId, attachmentId, iterationId) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
207
|
+
var queryValues;
|
|
208
|
+
return __generator(this, function (_a) {
|
|
209
|
+
queryValues = {
|
|
210
|
+
iterationId: iterationId
|
|
211
|
+
};
|
|
212
|
+
return [2 /*return*/, this.beginRequest({
|
|
213
|
+
apiVersion: "7.1-preview.1",
|
|
214
|
+
httpResponseType: "application/zip",
|
|
215
|
+
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
216
|
+
routeValues: {
|
|
217
|
+
project: project,
|
|
218
|
+
runId: runId,
|
|
219
|
+
testCaseResultId: testCaseResultId,
|
|
220
|
+
attachmentId: attachmentId
|
|
221
|
+
},
|
|
222
|
+
queryParams: queryValues
|
|
223
|
+
})];
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
};
|
|
165
227
|
/**
|
|
166
228
|
* Returns a test result attachment
|
|
167
229
|
*
|
|
@@ -174,7 +236,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
174
236
|
return __awaiter(this, void 0, void 0, function () {
|
|
175
237
|
return __generator(this, function (_a) {
|
|
176
238
|
return [2 /*return*/, this.beginRequest({
|
|
177
|
-
apiVersion: "
|
|
239
|
+
apiVersion: "7.1-preview.1",
|
|
178
240
|
httpResponseType: "application/octet-stream",
|
|
179
241
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
180
242
|
routeValues: {
|
|
@@ -196,7 +258,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
196
258
|
return __awaiter(this, void 0, void 0, function () {
|
|
197
259
|
return __generator(this, function (_a) {
|
|
198
260
|
return [2 /*return*/, this.beginRequest({
|
|
199
|
-
apiVersion: "
|
|
261
|
+
apiVersion: "7.1-preview.1",
|
|
200
262
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
201
263
|
routeValues: {
|
|
202
264
|
project: project,
|
|
@@ -219,7 +281,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
219
281
|
return __awaiter(this, void 0, void 0, function () {
|
|
220
282
|
return __generator(this, function (_a) {
|
|
221
283
|
return [2 /*return*/, this.beginRequest({
|
|
222
|
-
apiVersion: "
|
|
284
|
+
apiVersion: "7.1-preview.1",
|
|
223
285
|
httpResponseType: "application/zip",
|
|
224
286
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
225
287
|
routeValues: {
|
|
@@ -249,7 +311,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
249
311
|
testSubResultId: testSubResultId
|
|
250
312
|
};
|
|
251
313
|
return [2 /*return*/, this.beginRequest({
|
|
252
|
-
apiVersion: "
|
|
314
|
+
apiVersion: "7.1-preview.1",
|
|
253
315
|
httpResponseType: "application/octet-stream",
|
|
254
316
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
255
317
|
routeValues: {
|
|
@@ -279,7 +341,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
279
341
|
testSubResultId: testSubResultId
|
|
280
342
|
};
|
|
281
343
|
return [2 /*return*/, this.beginRequest({
|
|
282
|
-
apiVersion: "
|
|
344
|
+
apiVersion: "7.1-preview.1",
|
|
283
345
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
284
346
|
routeValues: {
|
|
285
347
|
project: project,
|
|
@@ -308,7 +370,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
308
370
|
testSubResultId: testSubResultId
|
|
309
371
|
};
|
|
310
372
|
return [2 /*return*/, this.beginRequest({
|
|
311
|
-
apiVersion: "
|
|
373
|
+
apiVersion: "7.1-preview.1",
|
|
312
374
|
httpResponseType: "application/zip",
|
|
313
375
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
|
|
314
376
|
routeValues: {
|
|
@@ -331,7 +393,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
331
393
|
return __awaiter(this, void 0, void 0, function () {
|
|
332
394
|
return __generator(this, function (_a) {
|
|
333
395
|
return [2 /*return*/, this.beginRequest({
|
|
334
|
-
apiVersion: "
|
|
396
|
+
apiVersion: "7.1-preview.1",
|
|
335
397
|
method: "POST",
|
|
336
398
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",
|
|
337
399
|
routeValues: {
|
|
@@ -352,7 +414,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
352
414
|
return __awaiter(this, void 0, void 0, function () {
|
|
353
415
|
return __generator(this, function (_a) {
|
|
354
416
|
return [2 /*return*/, this.beginRequest({
|
|
355
|
-
apiVersion: "
|
|
417
|
+
apiVersion: "7.1-preview.1",
|
|
356
418
|
method: "DELETE",
|
|
357
419
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",
|
|
358
420
|
routeValues: {
|
|
@@ -375,7 +437,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
375
437
|
return __awaiter(this, void 0, void 0, function () {
|
|
376
438
|
return __generator(this, function (_a) {
|
|
377
439
|
return [2 /*return*/, this.beginRequest({
|
|
378
|
-
apiVersion: "
|
|
440
|
+
apiVersion: "7.1-preview.1",
|
|
379
441
|
httpResponseType: "application/octet-stream",
|
|
380
442
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",
|
|
381
443
|
routeValues: {
|
|
@@ -395,7 +457,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
395
457
|
return __awaiter(this, void 0, void 0, function () {
|
|
396
458
|
return __generator(this, function (_a) {
|
|
397
459
|
return [2 /*return*/, this.beginRequest({
|
|
398
|
-
apiVersion: "
|
|
460
|
+
apiVersion: "7.1-preview.1",
|
|
399
461
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",
|
|
400
462
|
routeValues: {
|
|
401
463
|
project: project,
|
|
@@ -416,7 +478,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
416
478
|
return __awaiter(this, void 0, void 0, function () {
|
|
417
479
|
return __generator(this, function (_a) {
|
|
418
480
|
return [2 /*return*/, this.beginRequest({
|
|
419
|
-
apiVersion: "
|
|
481
|
+
apiVersion: "7.1-preview.1",
|
|
420
482
|
httpResponseType: "application/zip",
|
|
421
483
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",
|
|
422
484
|
routeValues: {
|
|
@@ -437,7 +499,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
437
499
|
return __awaiter(this, void 0, void 0, function () {
|
|
438
500
|
return __generator(this, function (_a) {
|
|
439
501
|
return [2 /*return*/, this.beginRequest({
|
|
440
|
-
apiVersion: "
|
|
502
|
+
apiVersion: "7.1-preview.1",
|
|
441
503
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/bugs",
|
|
442
504
|
routeValues: {
|
|
443
505
|
project: project,
|
|
@@ -462,7 +524,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
462
524
|
flags: flags
|
|
463
525
|
};
|
|
464
526
|
return [2 /*return*/, this.beginRequest({
|
|
465
|
-
apiVersion: "
|
|
527
|
+
apiVersion: "7.1-preview.1",
|
|
466
528
|
routeTemplate: "{project}/_apis/testresults/codecoverage",
|
|
467
529
|
routeValues: {
|
|
468
530
|
project: project
|
|
@@ -486,7 +548,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
486
548
|
deltaBuildId: deltaBuildId
|
|
487
549
|
};
|
|
488
550
|
return [2 /*return*/, this.beginRequest({
|
|
489
|
-
apiVersion: "
|
|
551
|
+
apiVersion: "7.1-preview.1",
|
|
490
552
|
routeTemplate: "{project}/_apis/testresults/codecoverage",
|
|
491
553
|
routeValues: {
|
|
492
554
|
project: project
|
|
@@ -511,7 +573,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
511
573
|
buildId: buildId
|
|
512
574
|
};
|
|
513
575
|
return [2 /*return*/, this.beginRequest({
|
|
514
|
-
apiVersion: "
|
|
576
|
+
apiVersion: "7.1-preview.1",
|
|
515
577
|
method: "POST",
|
|
516
578
|
routeTemplate: "{project}/_apis/testresults/codecoverage",
|
|
517
579
|
routeValues: {
|
|
@@ -536,7 +598,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
536
598
|
flags: flags
|
|
537
599
|
};
|
|
538
600
|
return [2 /*return*/, this.beginRequest({
|
|
539
|
-
apiVersion: "
|
|
601
|
+
apiVersion: "7.1-preview.1",
|
|
540
602
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/codecoverage",
|
|
541
603
|
routeValues: {
|
|
542
604
|
project: project,
|
|
@@ -557,7 +619,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
557
619
|
return __awaiter(this, void 0, void 0, function () {
|
|
558
620
|
return __generator(this, function (_a) {
|
|
559
621
|
return [2 /*return*/, this.beginRequest({
|
|
560
|
-
apiVersion: "
|
|
622
|
+
apiVersion: "7.1-preview.1",
|
|
561
623
|
method: "POST",
|
|
562
624
|
httpResponseType: "text/plain",
|
|
563
625
|
routeTemplate: "{project}/_apis/testresults/codecoverage/filecoverage",
|
|
@@ -577,7 +639,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
577
639
|
return __awaiter(this, void 0, void 0, function () {
|
|
578
640
|
return __generator(this, function (_a) {
|
|
579
641
|
return [2 /*return*/, this.beginRequest({
|
|
580
|
-
apiVersion: "
|
|
642
|
+
apiVersion: "7.1-preview.1",
|
|
581
643
|
method: "POST",
|
|
582
644
|
routeTemplate: "{project}/_apis/testresults/results/History",
|
|
583
645
|
routeValues: {
|
|
@@ -598,7 +660,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
598
660
|
return __awaiter(this, void 0, void 0, function () {
|
|
599
661
|
return __generator(this, function (_a) {
|
|
600
662
|
return [2 /*return*/, this.beginRequest({
|
|
601
|
-
apiVersion: "
|
|
663
|
+
apiVersion: "7.1-preview.1",
|
|
602
664
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/MessageLogs",
|
|
603
665
|
routeValues: {
|
|
604
666
|
project: project,
|
|
@@ -632,7 +694,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
632
694
|
groupByNode: groupByNode
|
|
633
695
|
};
|
|
634
696
|
return [2 /*return*/, this.beginRequest({
|
|
635
|
-
apiVersion: "
|
|
697
|
+
apiVersion: "7.1-preview.1",
|
|
636
698
|
routeTemplate: "{project}/_apis/testresults/metrics",
|
|
637
699
|
routeValues: {
|
|
638
700
|
project: project
|
|
@@ -666,7 +728,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
666
728
|
queryRunSummaryForInProgress: queryRunSummaryForInProgress
|
|
667
729
|
};
|
|
668
730
|
return [2 /*return*/, this.beginRequest({
|
|
669
|
-
apiVersion: "
|
|
731
|
+
apiVersion: "7.1-preview.1",
|
|
670
732
|
routeTemplate: "{project}/_apis/testresults/resultdetailsbybuild",
|
|
671
733
|
routeValues: {
|
|
672
734
|
project: project
|
|
@@ -702,7 +764,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
702
764
|
queryRunSummaryForInProgress: queryRunSummaryForInProgress
|
|
703
765
|
};
|
|
704
766
|
return [2 /*return*/, this.beginRequest({
|
|
705
|
-
apiVersion: "
|
|
767
|
+
apiVersion: "7.1-preview.1",
|
|
706
768
|
routeTemplate: "{project}/_apis/testresults/resultdetailsbyrelease",
|
|
707
769
|
routeValues: {
|
|
708
770
|
project: project
|
|
@@ -721,7 +783,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
721
783
|
return __awaiter(this, void 0, void 0, function () {
|
|
722
784
|
return __generator(this, function (_a) {
|
|
723
785
|
return [2 /*return*/, this.beginRequest({
|
|
724
|
-
apiVersion: "
|
|
786
|
+
apiVersion: "7.1-preview.1",
|
|
725
787
|
method: "POST",
|
|
726
788
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/ResultDocument",
|
|
727
789
|
routeValues: {
|
|
@@ -743,6 +805,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
743
805
|
TestResultsRestClient.prototype.getResultGroupsByBuild = function (project, buildId, publishContext, fields, continuationToken) {
|
|
744
806
|
return __awaiter(this, void 0, void 0, function () {
|
|
745
807
|
var queryValues;
|
|
808
|
+
var _this = this;
|
|
746
809
|
return __generator(this, function (_a) {
|
|
747
810
|
queryValues = {
|
|
748
811
|
buildId: buildId,
|
|
@@ -751,13 +814,25 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
751
814
|
continuationToken: continuationToken
|
|
752
815
|
};
|
|
753
816
|
return [2 /*return*/, this.beginRequest({
|
|
754
|
-
apiVersion: "
|
|
817
|
+
apiVersion: "7.1-preview.1",
|
|
755
818
|
routeTemplate: "{project}/_apis/testresults/resultgroupsbybuild",
|
|
756
819
|
routeValues: {
|
|
757
820
|
project: project
|
|
758
821
|
},
|
|
759
|
-
queryParams: queryValues
|
|
760
|
-
|
|
822
|
+
queryParams: queryValues,
|
|
823
|
+
returnRawResponse: true
|
|
824
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
825
|
+
var body;
|
|
826
|
+
return __generator(this, function (_a) {
|
|
827
|
+
switch (_a.label) {
|
|
828
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
829
|
+
case 1:
|
|
830
|
+
body = _a.sent();
|
|
831
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
832
|
+
return [2 /*return*/, body];
|
|
833
|
+
}
|
|
834
|
+
});
|
|
835
|
+
}); })];
|
|
761
836
|
});
|
|
762
837
|
});
|
|
763
838
|
};
|
|
@@ -772,6 +847,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
772
847
|
TestResultsRestClient.prototype.getResultGroupsByRelease = function (project, releaseId, publishContext, releaseEnvId, fields, continuationToken) {
|
|
773
848
|
return __awaiter(this, void 0, void 0, function () {
|
|
774
849
|
var queryValues;
|
|
850
|
+
var _this = this;
|
|
775
851
|
return __generator(this, function (_a) {
|
|
776
852
|
queryValues = {
|
|
777
853
|
releaseId: releaseId,
|
|
@@ -781,20 +857,32 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
781
857
|
continuationToken: continuationToken
|
|
782
858
|
};
|
|
783
859
|
return [2 /*return*/, this.beginRequest({
|
|
784
|
-
apiVersion: "
|
|
860
|
+
apiVersion: "7.1-preview.1",
|
|
785
861
|
routeTemplate: "{project}/_apis/testresults/resultgroupsbyrelease",
|
|
786
862
|
routeValues: {
|
|
787
863
|
project: project
|
|
788
864
|
},
|
|
789
|
-
queryParams: queryValues
|
|
790
|
-
|
|
865
|
+
queryParams: queryValues,
|
|
866
|
+
returnRawResponse: true
|
|
867
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
868
|
+
var body;
|
|
869
|
+
return __generator(this, function (_a) {
|
|
870
|
+
switch (_a.label) {
|
|
871
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
872
|
+
case 1:
|
|
873
|
+
body = _a.sent();
|
|
874
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
875
|
+
return [2 /*return*/, body];
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
}); })];
|
|
791
879
|
});
|
|
792
880
|
});
|
|
793
881
|
};
|
|
794
882
|
/**
|
|
795
883
|
* Get list of test Result meta data details for corresponding testcasereferenceId
|
|
796
884
|
*
|
|
797
|
-
* @param testCaseReferenceIds -
|
|
885
|
+
* @param testCaseReferenceIds - TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200).
|
|
798
886
|
* @param project - Project ID or project name
|
|
799
887
|
* @param detailsToInclude - Details to include with test results metadata. Default is None. Other values are FlakyIdentifiers.
|
|
800
888
|
*/
|
|
@@ -806,7 +894,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
806
894
|
detailsToInclude: detailsToInclude
|
|
807
895
|
};
|
|
808
896
|
return [2 /*return*/, this.beginRequest({
|
|
809
|
-
apiVersion: "
|
|
897
|
+
apiVersion: "7.1-preview.4",
|
|
810
898
|
method: "POST",
|
|
811
899
|
routeTemplate: "{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",
|
|
812
900
|
routeValues: {
|
|
@@ -829,7 +917,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
829
917
|
return __awaiter(this, void 0, void 0, function () {
|
|
830
918
|
return __generator(this, function (_a) {
|
|
831
919
|
return [2 /*return*/, this.beginRequest({
|
|
832
|
-
apiVersion: "
|
|
920
|
+
apiVersion: "7.1-preview.4",
|
|
833
921
|
method: "PATCH",
|
|
834
922
|
routeTemplate: "{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",
|
|
835
923
|
routeValues: {
|
|
@@ -849,7 +937,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
849
937
|
return __awaiter(this, void 0, void 0, function () {
|
|
850
938
|
return __generator(this, function (_a) {
|
|
851
939
|
return [2 /*return*/, this.beginRequest({
|
|
852
|
-
apiVersion: "
|
|
940
|
+
apiVersion: "7.1-preview.2",
|
|
853
941
|
method: "POST",
|
|
854
942
|
routeTemplate: "{project}/_apis/testresults/results",
|
|
855
943
|
routeValues: {
|
|
@@ -879,7 +967,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
879
967
|
'$top': top
|
|
880
968
|
};
|
|
881
969
|
return [2 /*return*/, this.beginRequest({
|
|
882
|
-
apiVersion: "
|
|
970
|
+
apiVersion: "7.1-preview.2",
|
|
883
971
|
method: "POST",
|
|
884
972
|
routeTemplate: "{project}/_apis/testresults/results/query",
|
|
885
973
|
routeValues: {
|
|
@@ -900,7 +988,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
900
988
|
return __awaiter(this, void 0, void 0, function () {
|
|
901
989
|
return __generator(this, function (_a) {
|
|
902
990
|
return [2 /*return*/, this.beginRequest({
|
|
903
|
-
apiVersion: "
|
|
991
|
+
apiVersion: "7.1-preview.2",
|
|
904
992
|
method: "POST",
|
|
905
993
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}",
|
|
906
994
|
routeValues: {
|
|
@@ -926,7 +1014,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
926
1014
|
detailsToInclude: detailsToInclude
|
|
927
1015
|
};
|
|
928
1016
|
return [2 /*return*/, this.beginRequest({
|
|
929
|
-
apiVersion: "
|
|
1017
|
+
apiVersion: "7.1-preview.2",
|
|
930
1018
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}",
|
|
931
1019
|
routeValues: {
|
|
932
1020
|
project: project,
|
|
@@ -945,8 +1033,9 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
945
1033
|
* @param skip -
|
|
946
1034
|
* @param top -
|
|
947
1035
|
* @param outcomes -
|
|
1036
|
+
* @param newTestsOnly -
|
|
948
1037
|
*/
|
|
949
|
-
TestResultsRestClient.prototype.getTestResults = function (project, runId, detailsToInclude, skip, top, outcomes) {
|
|
1038
|
+
TestResultsRestClient.prototype.getTestResults = function (project, runId, detailsToInclude, skip, top, outcomes, newTestsOnly) {
|
|
950
1039
|
return __awaiter(this, void 0, void 0, function () {
|
|
951
1040
|
var queryValues;
|
|
952
1041
|
return __generator(this, function (_a) {
|
|
@@ -954,10 +1043,11 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
954
1043
|
detailsToInclude: detailsToInclude,
|
|
955
1044
|
'$skip': skip,
|
|
956
1045
|
'$top': top,
|
|
957
|
-
outcomes: outcomes && outcomes.join(",")
|
|
1046
|
+
outcomes: outcomes && outcomes.join(","),
|
|
1047
|
+
'$newTestsOnly': newTestsOnly
|
|
958
1048
|
};
|
|
959
1049
|
return [2 /*return*/, this.beginRequest({
|
|
960
|
-
apiVersion: "
|
|
1050
|
+
apiVersion: "7.1-preview.2",
|
|
961
1051
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}",
|
|
962
1052
|
routeValues: {
|
|
963
1053
|
project: project,
|
|
@@ -977,7 +1067,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
977
1067
|
return __awaiter(this, void 0, void 0, function () {
|
|
978
1068
|
return __generator(this, function (_a) {
|
|
979
1069
|
return [2 /*return*/, this.beginRequest({
|
|
980
|
-
apiVersion: "
|
|
1070
|
+
apiVersion: "7.1-preview.2",
|
|
981
1071
|
method: "PATCH",
|
|
982
1072
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}",
|
|
983
1073
|
routeValues: {
|
|
@@ -1000,6 +1090,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1000
1090
|
TestResultsRestClient.prototype.getTestResultsByBuild = function (project, buildId, publishContext, outcomes, top, continuationToken) {
|
|
1001
1091
|
return __awaiter(this, void 0, void 0, function () {
|
|
1002
1092
|
var queryValues;
|
|
1093
|
+
var _this = this;
|
|
1003
1094
|
return __generator(this, function (_a) {
|
|
1004
1095
|
queryValues = {
|
|
1005
1096
|
buildId: buildId,
|
|
@@ -1009,13 +1100,25 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1009
1100
|
continuationToken: continuationToken
|
|
1010
1101
|
};
|
|
1011
1102
|
return [2 /*return*/, this.beginRequest({
|
|
1012
|
-
apiVersion: "
|
|
1103
|
+
apiVersion: "7.1-preview.1",
|
|
1013
1104
|
routeTemplate: "{project}/_apis/testresults/resultsbybuild",
|
|
1014
1105
|
routeValues: {
|
|
1015
1106
|
project: project
|
|
1016
1107
|
},
|
|
1017
|
-
queryParams: queryValues
|
|
1018
|
-
|
|
1108
|
+
queryParams: queryValues,
|
|
1109
|
+
returnRawResponse: true
|
|
1110
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1111
|
+
var body;
|
|
1112
|
+
return __generator(this, function (_a) {
|
|
1113
|
+
switch (_a.label) {
|
|
1114
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
1115
|
+
case 1:
|
|
1116
|
+
body = _a.sent();
|
|
1117
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
1118
|
+
return [2 /*return*/, body];
|
|
1119
|
+
}
|
|
1120
|
+
});
|
|
1121
|
+
}); })];
|
|
1019
1122
|
});
|
|
1020
1123
|
});
|
|
1021
1124
|
};
|
|
@@ -1034,6 +1137,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1034
1137
|
TestResultsRestClient.prototype.getTestResultsByPipeline = function (project, pipelineId, stageName, phaseName, jobName, outcomes, top, continuationToken) {
|
|
1035
1138
|
return __awaiter(this, void 0, void 0, function () {
|
|
1036
1139
|
var queryValues;
|
|
1140
|
+
var _this = this;
|
|
1037
1141
|
return __generator(this, function (_a) {
|
|
1038
1142
|
queryValues = {
|
|
1039
1143
|
pipelineId: pipelineId,
|
|
@@ -1044,7 +1148,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1044
1148
|
'$top': top
|
|
1045
1149
|
};
|
|
1046
1150
|
return [2 /*return*/, this.beginRequest({
|
|
1047
|
-
apiVersion: "
|
|
1151
|
+
apiVersion: "7.1-preview.1",
|
|
1048
1152
|
routeTemplate: "{project}/_apis/testresults/resultsbypipeline",
|
|
1049
1153
|
routeValues: {
|
|
1050
1154
|
project: project
|
|
@@ -1052,8 +1156,20 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1052
1156
|
customHeaders: {
|
|
1053
1157
|
"x-ms-continuationtoken": continuationToken,
|
|
1054
1158
|
},
|
|
1055
|
-
queryParams: queryValues
|
|
1056
|
-
|
|
1159
|
+
queryParams: queryValues,
|
|
1160
|
+
returnRawResponse: true
|
|
1161
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1162
|
+
var body;
|
|
1163
|
+
return __generator(this, function (_a) {
|
|
1164
|
+
switch (_a.label) {
|
|
1165
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
1166
|
+
case 1:
|
|
1167
|
+
body = _a.sent();
|
|
1168
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
1169
|
+
return [2 /*return*/, body];
|
|
1170
|
+
}
|
|
1171
|
+
});
|
|
1172
|
+
}); })];
|
|
1057
1173
|
});
|
|
1058
1174
|
});
|
|
1059
1175
|
};
|
|
@@ -1069,6 +1185,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1069
1185
|
TestResultsRestClient.prototype.getTestResultsByRelease = function (project, releaseId, releaseEnvid, publishContext, outcomes, top, continuationToken) {
|
|
1070
1186
|
return __awaiter(this, void 0, void 0, function () {
|
|
1071
1187
|
var queryValues;
|
|
1188
|
+
var _this = this;
|
|
1072
1189
|
return __generator(this, function (_a) {
|
|
1073
1190
|
queryValues = {
|
|
1074
1191
|
releaseId: releaseId,
|
|
@@ -1079,13 +1196,25 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1079
1196
|
continuationToken: continuationToken
|
|
1080
1197
|
};
|
|
1081
1198
|
return [2 /*return*/, this.beginRequest({
|
|
1082
|
-
apiVersion: "
|
|
1199
|
+
apiVersion: "7.1-preview.1",
|
|
1083
1200
|
routeTemplate: "{project}/_apis/testresults/resultsbyrelease",
|
|
1084
1201
|
routeValues: {
|
|
1085
1202
|
project: project
|
|
1086
1203
|
},
|
|
1087
|
-
queryParams: queryValues
|
|
1088
|
-
|
|
1204
|
+
queryParams: queryValues,
|
|
1205
|
+
returnRawResponse: true
|
|
1206
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1207
|
+
var body;
|
|
1208
|
+
return __generator(this, function (_a) {
|
|
1209
|
+
switch (_a.label) {
|
|
1210
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
1211
|
+
case 1:
|
|
1212
|
+
body = _a.sent();
|
|
1213
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
1214
|
+
return [2 /*return*/, body];
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1217
|
+
}); })];
|
|
1089
1218
|
});
|
|
1090
1219
|
});
|
|
1091
1220
|
};
|
|
@@ -1113,7 +1242,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1113
1242
|
queryGroupSummaryForInProgress: queryGroupSummaryForInProgress
|
|
1114
1243
|
};
|
|
1115
1244
|
return [2 /*return*/, this.beginRequest({
|
|
1116
|
-
apiVersion: "
|
|
1245
|
+
apiVersion: "7.1-preview.1",
|
|
1117
1246
|
routeTemplate: "{project}/_apis/testresults/resultsgroupDetails",
|
|
1118
1247
|
routeValues: {
|
|
1119
1248
|
project: project
|
|
@@ -1141,7 +1270,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1141
1270
|
buildToCompare: buildToCompare
|
|
1142
1271
|
};
|
|
1143
1272
|
return [2 /*return*/, this.beginRequest({
|
|
1144
|
-
apiVersion: "
|
|
1273
|
+
apiVersion: "7.1-preview.1",
|
|
1145
1274
|
routeTemplate: "{project}/_apis/testresults/resultsummarybybuild",
|
|
1146
1275
|
routeValues: {
|
|
1147
1276
|
project: project
|
|
@@ -1173,7 +1302,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1173
1302
|
includeFailureDetails: includeFailureDetails
|
|
1174
1303
|
};
|
|
1175
1304
|
return [2 /*return*/, this.beginRequest({
|
|
1176
|
-
apiVersion: "
|
|
1305
|
+
apiVersion: "7.1-preview.1",
|
|
1177
1306
|
routeTemplate: "{project}/_apis/testresults/resultsummarybypipeline",
|
|
1178
1307
|
routeValues: {
|
|
1179
1308
|
project: project
|
|
@@ -1203,7 +1332,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1203
1332
|
releaseToCompare: releaseToCompare
|
|
1204
1333
|
};
|
|
1205
1334
|
return [2 /*return*/, this.beginRequest({
|
|
1206
|
-
apiVersion: "
|
|
1335
|
+
apiVersion: "7.1-preview.1",
|
|
1207
1336
|
routeTemplate: "{project}/_apis/testresults/resultsummarybyrelease",
|
|
1208
1337
|
routeValues: {
|
|
1209
1338
|
project: project
|
|
@@ -1221,7 +1350,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1221
1350
|
return __awaiter(this, void 0, void 0, function () {
|
|
1222
1351
|
return __generator(this, function (_a) {
|
|
1223
1352
|
return [2 /*return*/, this.beginRequest({
|
|
1224
|
-
apiVersion: "
|
|
1353
|
+
apiVersion: "7.1-preview.1",
|
|
1225
1354
|
method: "POST",
|
|
1226
1355
|
routeTemplate: "{project}/_apis/testresults/resultsummarybyrelease",
|
|
1227
1356
|
routeValues: {
|
|
@@ -1245,7 +1374,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1245
1374
|
workItemIds: workItemIds && workItemIds.join(",")
|
|
1246
1375
|
};
|
|
1247
1376
|
return [2 /*return*/, this.beginRequest({
|
|
1248
|
-
apiVersion: "
|
|
1377
|
+
apiVersion: "7.1-preview.1",
|
|
1249
1378
|
method: "POST",
|
|
1250
1379
|
routeTemplate: "{project}/_apis/testresults/resultsummarybyrequirement",
|
|
1251
1380
|
routeValues: {
|
|
@@ -1265,7 +1394,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1265
1394
|
return __awaiter(this, void 0, void 0, function () {
|
|
1266
1395
|
return __generator(this, function (_a) {
|
|
1267
1396
|
return [2 /*return*/, this.beginRequest({
|
|
1268
|
-
apiVersion: "
|
|
1397
|
+
apiVersion: "7.1-preview.1",
|
|
1269
1398
|
method: "POST",
|
|
1270
1399
|
routeTemplate: "{project}/_apis/testresults/ResultTrendByBuild",
|
|
1271
1400
|
routeValues: {
|
|
@@ -1284,7 +1413,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1284
1413
|
return __awaiter(this, void 0, void 0, function () {
|
|
1285
1414
|
return __generator(this, function (_a) {
|
|
1286
1415
|
return [2 /*return*/, this.beginRequest({
|
|
1287
|
-
apiVersion: "
|
|
1416
|
+
apiVersion: "7.1-preview.1",
|
|
1288
1417
|
method: "POST",
|
|
1289
1418
|
routeTemplate: "{project}/_apis/testresults/ResultTrendByRelease",
|
|
1290
1419
|
routeValues: {
|
|
@@ -1295,26 +1424,6 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1295
1424
|
});
|
|
1296
1425
|
});
|
|
1297
1426
|
};
|
|
1298
|
-
/**
|
|
1299
|
-
* Get test run statistics , used when we want to get summary of a run by outcome.
|
|
1300
|
-
*
|
|
1301
|
-
* @param project - Project ID or project name
|
|
1302
|
-
* @param runId - ID of the run to get.
|
|
1303
|
-
*/
|
|
1304
|
-
TestResultsRestClient.prototype.getTestRunStatistics = function (project, runId) {
|
|
1305
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1306
|
-
return __generator(this, function (_a) {
|
|
1307
|
-
return [2 /*return*/, this.beginRequest({
|
|
1308
|
-
apiVersion: "5.2-preview.1",
|
|
1309
|
-
routeTemplate: "{project}/_apis/testresults/runs/{runId}/statistics",
|
|
1310
|
-
routeValues: {
|
|
1311
|
-
project: project,
|
|
1312
|
-
runId: runId
|
|
1313
|
-
}
|
|
1314
|
-
})];
|
|
1315
|
-
});
|
|
1316
|
-
});
|
|
1317
|
-
};
|
|
1318
1427
|
/**
|
|
1319
1428
|
* @param testRun -
|
|
1320
1429
|
* @param project - Project ID or project name
|
|
@@ -1323,7 +1432,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1323
1432
|
return __awaiter(this, void 0, void 0, function () {
|
|
1324
1433
|
return __generator(this, function (_a) {
|
|
1325
1434
|
return [2 /*return*/, this.beginRequest({
|
|
1326
|
-
apiVersion: "
|
|
1435
|
+
apiVersion: "7.1-preview.1",
|
|
1327
1436
|
method: "POST",
|
|
1328
1437
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}",
|
|
1329
1438
|
routeValues: {
|
|
@@ -1342,7 +1451,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1342
1451
|
return __awaiter(this, void 0, void 0, function () {
|
|
1343
1452
|
return __generator(this, function (_a) {
|
|
1344
1453
|
return [2 /*return*/, this.beginRequest({
|
|
1345
|
-
apiVersion: "
|
|
1454
|
+
apiVersion: "7.1-preview.1",
|
|
1346
1455
|
method: "DELETE",
|
|
1347
1456
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}",
|
|
1348
1457
|
routeValues: {
|
|
@@ -1368,7 +1477,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1368
1477
|
includeTags: includeTags
|
|
1369
1478
|
};
|
|
1370
1479
|
return [2 /*return*/, this.beginRequest({
|
|
1371
|
-
apiVersion: "
|
|
1480
|
+
apiVersion: "7.1-preview.1",
|
|
1372
1481
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}",
|
|
1373
1482
|
routeValues: {
|
|
1374
1483
|
project: project,
|
|
@@ -1405,7 +1514,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1405
1514
|
'$top': top
|
|
1406
1515
|
};
|
|
1407
1516
|
return [2 /*return*/, this.beginRequest({
|
|
1408
|
-
apiVersion: "
|
|
1517
|
+
apiVersion: "7.1-preview.1",
|
|
1409
1518
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}",
|
|
1410
1519
|
routeValues: {
|
|
1411
1520
|
project: project
|
|
@@ -1422,16 +1531,16 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1422
1531
|
* @param minLastUpdatedDate - Minimum Last Modified Date of run to be queried (Mandatory).
|
|
1423
1532
|
* @param maxLastUpdatedDate - Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).
|
|
1424
1533
|
* @param state - Current state of the Runs to be queried.
|
|
1425
|
-
* @param planIds - Plan Ids of the Runs to be queried, comma
|
|
1534
|
+
* @param planIds - Plan Ids of the Runs to be queried, comma separated list of valid ids.
|
|
1426
1535
|
* @param isAutomated - Automation type of the Runs to be queried.
|
|
1427
1536
|
* @param publishContext - PublishContext of the Runs to be queried.
|
|
1428
|
-
* @param buildIds - Build Ids of the Runs to be queried, comma
|
|
1429
|
-
* @param buildDefIds - Build Definition Ids of the Runs to be queried, comma
|
|
1537
|
+
* @param buildIds - Build Ids of the Runs to be queried, comma separated list of valid ids.
|
|
1538
|
+
* @param buildDefIds - Build Definition Ids of the Runs to be queried, comma separated list of valid ids.
|
|
1430
1539
|
* @param branchName - Source Branch name of the Runs to be queried.
|
|
1431
|
-
* @param releaseIds - Release Ids of the Runs to be queried, comma
|
|
1432
|
-
* @param releaseDefIds - Release Definition Ids of the Runs to be queried, comma
|
|
1433
|
-
* @param releaseEnvIds - Release Environment Ids of the Runs to be queried, comma
|
|
1434
|
-
* @param releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma
|
|
1540
|
+
* @param releaseIds - Release Ids of the Runs to be queried, comma separated list of valid ids.
|
|
1541
|
+
* @param releaseDefIds - Release Definition Ids of the Runs to be queried, comma separated list of valid ids.
|
|
1542
|
+
* @param releaseEnvIds - Release Environment Ids of the Runs to be queried, comma separated list of valid ids.
|
|
1543
|
+
* @param releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids.
|
|
1435
1544
|
* @param runTitle - Run Title of the Runs to be queried.
|
|
1436
1545
|
* @param top - Number of runs to be queried. Limit is 100
|
|
1437
1546
|
* @param continuationToken - continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.
|
|
@@ -1439,6 +1548,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1439
1548
|
TestResultsRestClient.prototype.queryTestRuns = function (project, minLastUpdatedDate, maxLastUpdatedDate, state, planIds, isAutomated, publishContext, buildIds, buildDefIds, branchName, releaseIds, releaseDefIds, releaseEnvIds, releaseEnvDefIds, runTitle, top, continuationToken) {
|
|
1440
1549
|
return __awaiter(this, void 0, void 0, function () {
|
|
1441
1550
|
var queryValues;
|
|
1551
|
+
var _this = this;
|
|
1442
1552
|
return __generator(this, function (_a) {
|
|
1443
1553
|
queryValues = {
|
|
1444
1554
|
minLastUpdatedDate: minLastUpdatedDate,
|
|
@@ -1459,13 +1569,25 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1459
1569
|
continuationToken: continuationToken
|
|
1460
1570
|
};
|
|
1461
1571
|
return [2 /*return*/, this.beginRequest({
|
|
1462
|
-
apiVersion: "
|
|
1572
|
+
apiVersion: "7.1-preview.1",
|
|
1463
1573
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}",
|
|
1464
1574
|
routeValues: {
|
|
1465
1575
|
project: project
|
|
1466
1576
|
},
|
|
1467
|
-
queryParams: queryValues
|
|
1468
|
-
|
|
1577
|
+
queryParams: queryValues,
|
|
1578
|
+
returnRawResponse: true
|
|
1579
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1580
|
+
var body;
|
|
1581
|
+
return __generator(this, function (_a) {
|
|
1582
|
+
switch (_a.label) {
|
|
1583
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
1584
|
+
case 1:
|
|
1585
|
+
body = _a.sent();
|
|
1586
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
1587
|
+
return [2 /*return*/, body];
|
|
1588
|
+
}
|
|
1589
|
+
});
|
|
1590
|
+
}); })];
|
|
1469
1591
|
});
|
|
1470
1592
|
});
|
|
1471
1593
|
};
|
|
@@ -1478,7 +1600,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1478
1600
|
return __awaiter(this, void 0, void 0, function () {
|
|
1479
1601
|
return __generator(this, function (_a) {
|
|
1480
1602
|
return [2 /*return*/, this.beginRequest({
|
|
1481
|
-
apiVersion: "
|
|
1603
|
+
apiVersion: "7.1-preview.1",
|
|
1482
1604
|
method: "PATCH",
|
|
1483
1605
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}",
|
|
1484
1606
|
routeValues: {
|
|
@@ -1490,6 +1612,26 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1490
1612
|
});
|
|
1491
1613
|
});
|
|
1492
1614
|
};
|
|
1615
|
+
/**
|
|
1616
|
+
* Get test run summary, used when we want to get summary of a run by outcome. Test run should be in completed state.
|
|
1617
|
+
*
|
|
1618
|
+
* @param project - Project ID or project name
|
|
1619
|
+
* @param runId - ID of the run to get.
|
|
1620
|
+
*/
|
|
1621
|
+
TestResultsRestClient.prototype.getTestRunSummaryByOutcome = function (project, runId) {
|
|
1622
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1623
|
+
return __generator(this, function (_a) {
|
|
1624
|
+
return [2 /*return*/, this.beginRequest({
|
|
1625
|
+
apiVersion: "7.1-preview.1",
|
|
1626
|
+
routeTemplate: "{project}/_apis/testresults/runs/{runId}/runsummary",
|
|
1627
|
+
routeValues: {
|
|
1628
|
+
project: project,
|
|
1629
|
+
runId: runId
|
|
1630
|
+
}
|
|
1631
|
+
})];
|
|
1632
|
+
});
|
|
1633
|
+
});
|
|
1634
|
+
};
|
|
1493
1635
|
/**
|
|
1494
1636
|
* Get TestResultsSettings data
|
|
1495
1637
|
*
|
|
@@ -1504,7 +1646,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1504
1646
|
settingsType: settingsType
|
|
1505
1647
|
};
|
|
1506
1648
|
return [2 /*return*/, this.beginRequest({
|
|
1507
|
-
apiVersion: "
|
|
1649
|
+
apiVersion: "7.1-preview.3",
|
|
1508
1650
|
routeTemplate: "{project}/_apis/testresults/settings",
|
|
1509
1651
|
routeValues: {
|
|
1510
1652
|
project: project
|
|
@@ -1524,7 +1666,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1524
1666
|
return __awaiter(this, void 0, void 0, function () {
|
|
1525
1667
|
return __generator(this, function (_a) {
|
|
1526
1668
|
return [2 /*return*/, this.beginRequest({
|
|
1527
|
-
apiVersion: "
|
|
1669
|
+
apiVersion: "7.1-preview.3",
|
|
1528
1670
|
method: "PATCH",
|
|
1529
1671
|
routeTemplate: "{project}/_apis/testresults/settings",
|
|
1530
1672
|
routeValues: {
|
|
@@ -1554,7 +1696,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1554
1696
|
'$top': top
|
|
1555
1697
|
};
|
|
1556
1698
|
return [2 /*return*/, this.beginRequest({
|
|
1557
|
-
apiVersion: "
|
|
1699
|
+
apiVersion: "7.1-preview.1",
|
|
1558
1700
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}/SimilarTestResults",
|
|
1559
1701
|
routeValues: {
|
|
1560
1702
|
project: project,
|
|
@@ -1569,6 +1711,26 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1569
1711
|
});
|
|
1570
1712
|
});
|
|
1571
1713
|
};
|
|
1714
|
+
/**
|
|
1715
|
+
* Get test run statistics , used when we want to get summary of a run by outcome.
|
|
1716
|
+
*
|
|
1717
|
+
* @param project - Project ID or project name
|
|
1718
|
+
* @param runId - ID of the run to get.
|
|
1719
|
+
*/
|
|
1720
|
+
TestResultsRestClient.prototype.getTestRunStatistics = function (project, runId) {
|
|
1721
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1722
|
+
return __generator(this, function (_a) {
|
|
1723
|
+
return [2 /*return*/, this.beginRequest({
|
|
1724
|
+
apiVersion: "7.1-preview.2",
|
|
1725
|
+
routeTemplate: "{project}/_apis/testresults/runs/{runId}/statistics",
|
|
1726
|
+
routeValues: {
|
|
1727
|
+
project: project,
|
|
1728
|
+
runId: runId
|
|
1729
|
+
}
|
|
1730
|
+
})];
|
|
1731
|
+
});
|
|
1732
|
+
});
|
|
1733
|
+
};
|
|
1572
1734
|
/**
|
|
1573
1735
|
* \<p\>Gets the coverage status for the last successful build of a definition, optionally scoped to a specific branch\</p\>
|
|
1574
1736
|
*
|
|
@@ -1586,7 +1748,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1586
1748
|
label: label
|
|
1587
1749
|
};
|
|
1588
1750
|
return [2 /*return*/, this.beginRequest({
|
|
1589
|
-
apiVersion: "
|
|
1751
|
+
apiVersion: "7.1-preview.1",
|
|
1590
1752
|
routeTemplate: "{project}/_apis/testresults/codecoverage/status/{*definition}",
|
|
1591
1753
|
routeValues: {
|
|
1592
1754
|
project: project,
|
|
@@ -1609,7 +1771,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1609
1771
|
buildId: buildId
|
|
1610
1772
|
};
|
|
1611
1773
|
return [2 /*return*/, this.beginRequest({
|
|
1612
|
-
apiVersion: "
|
|
1774
|
+
apiVersion: "7.1-preview.1",
|
|
1613
1775
|
routeTemplate: "{project}/_apis/testresults/tags",
|
|
1614
1776
|
routeValues: {
|
|
1615
1777
|
project: project
|
|
@@ -1633,7 +1795,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1633
1795
|
releaseEnvId: releaseEnvId
|
|
1634
1796
|
};
|
|
1635
1797
|
return [2 /*return*/, this.beginRequest({
|
|
1636
|
-
apiVersion: "
|
|
1798
|
+
apiVersion: "7.1-preview.1",
|
|
1637
1799
|
routeTemplate: "{project}/_apis/testresults/tags",
|
|
1638
1800
|
routeValues: {
|
|
1639
1801
|
project: project
|
|
@@ -1652,7 +1814,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1652
1814
|
return __awaiter(this, void 0, void 0, function () {
|
|
1653
1815
|
return __generator(this, function (_a) {
|
|
1654
1816
|
return [2 /*return*/, this.beginRequest({
|
|
1655
|
-
apiVersion: "
|
|
1817
|
+
apiVersion: "7.1-preview.1",
|
|
1656
1818
|
method: "PATCH",
|
|
1657
1819
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/tags",
|
|
1658
1820
|
routeValues: {
|
|
@@ -1676,7 +1838,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1676
1838
|
buildId: buildId
|
|
1677
1839
|
};
|
|
1678
1840
|
return [2 /*return*/, this.beginRequest({
|
|
1679
|
-
apiVersion: "
|
|
1841
|
+
apiVersion: "7.1-preview.1",
|
|
1680
1842
|
routeTemplate: "{project}/_apis/testresults/tagsummary",
|
|
1681
1843
|
routeValues: {
|
|
1682
1844
|
project: project
|
|
@@ -1700,7 +1862,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1700
1862
|
releaseEnvId: releaseEnvId
|
|
1701
1863
|
};
|
|
1702
1864
|
return [2 /*return*/, this.beginRequest({
|
|
1703
|
-
apiVersion: "
|
|
1865
|
+
apiVersion: "7.1-preview.1",
|
|
1704
1866
|
routeTemplate: "{project}/_apis/testresults/tagsummary",
|
|
1705
1867
|
routeValues: {
|
|
1706
1868
|
project: project
|
|
@@ -1710,6 +1872,153 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1710
1872
|
});
|
|
1711
1873
|
});
|
|
1712
1874
|
};
|
|
1875
|
+
/**
|
|
1876
|
+
* Creates an attachment in the LogStore for the specified buildId.
|
|
1877
|
+
*
|
|
1878
|
+
* @param attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType
|
|
1879
|
+
* @param project - Project ID or project name
|
|
1880
|
+
* @param buildId - BuildId
|
|
1881
|
+
*/
|
|
1882
|
+
TestResultsRestClient.prototype.createBuildAttachmentInLogStore = function (attachmentRequestModel, project, buildId) {
|
|
1883
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1884
|
+
return __generator(this, function (_a) {
|
|
1885
|
+
return [2 /*return*/, this.beginRequest({
|
|
1886
|
+
apiVersion: "7.1-preview.1",
|
|
1887
|
+
method: "POST",
|
|
1888
|
+
routeTemplate: "{project}/_apis/testresults/uploadbuildattachments/{buildId}",
|
|
1889
|
+
routeValues: {
|
|
1890
|
+
project: project,
|
|
1891
|
+
buildId: buildId
|
|
1892
|
+
},
|
|
1893
|
+
body: attachmentRequestModel
|
|
1894
|
+
})];
|
|
1895
|
+
});
|
|
1896
|
+
});
|
|
1897
|
+
};
|
|
1898
|
+
/**
|
|
1899
|
+
* Creates an attachment in the LogStore for the specified runId.
|
|
1900
|
+
*
|
|
1901
|
+
* @param attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType
|
|
1902
|
+
* @param project - Project ID or project name
|
|
1903
|
+
* @param runId - Test RunId
|
|
1904
|
+
*/
|
|
1905
|
+
TestResultsRestClient.prototype.createTestRunLogStoreAttachment = function (attachmentRequestModel, project, runId) {
|
|
1906
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1907
|
+
return __generator(this, function (_a) {
|
|
1908
|
+
return [2 /*return*/, this.beginRequest({
|
|
1909
|
+
apiVersion: "7.1-preview.1",
|
|
1910
|
+
method: "POST",
|
|
1911
|
+
routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
|
|
1912
|
+
routeValues: {
|
|
1913
|
+
project: project,
|
|
1914
|
+
runId: runId
|
|
1915
|
+
},
|
|
1916
|
+
body: attachmentRequestModel
|
|
1917
|
+
})];
|
|
1918
|
+
});
|
|
1919
|
+
});
|
|
1920
|
+
};
|
|
1921
|
+
/**
|
|
1922
|
+
* Deletes the attachment with the specified filename for the specified runId from the LogStore.
|
|
1923
|
+
*
|
|
1924
|
+
* @param project - Project ID or project name
|
|
1925
|
+
* @param runId - Test RunId
|
|
1926
|
+
* @param filename - Attachment FileName
|
|
1927
|
+
*/
|
|
1928
|
+
TestResultsRestClient.prototype.deleteTestRunLogStoreAttachment = function (project, runId, filename) {
|
|
1929
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1930
|
+
var queryValues;
|
|
1931
|
+
return __generator(this, function (_a) {
|
|
1932
|
+
queryValues = {
|
|
1933
|
+
filename: filename
|
|
1934
|
+
};
|
|
1935
|
+
return [2 /*return*/, this.beginRequest({
|
|
1936
|
+
apiVersion: "7.1-preview.1",
|
|
1937
|
+
method: "DELETE",
|
|
1938
|
+
routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
|
|
1939
|
+
routeValues: {
|
|
1940
|
+
project: project,
|
|
1941
|
+
runId: runId
|
|
1942
|
+
},
|
|
1943
|
+
queryParams: queryValues
|
|
1944
|
+
})];
|
|
1945
|
+
});
|
|
1946
|
+
});
|
|
1947
|
+
};
|
|
1948
|
+
/**
|
|
1949
|
+
* Returns the attachment with the specified filename for the specified runId from the LogStore.
|
|
1950
|
+
*
|
|
1951
|
+
* @param project - Project ID or project name
|
|
1952
|
+
* @param runId - Test RunId
|
|
1953
|
+
* @param filename - Attachment FileName
|
|
1954
|
+
*/
|
|
1955
|
+
TestResultsRestClient.prototype.getTestRunLogStoreAttachmentContent = function (project, runId, filename) {
|
|
1956
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1957
|
+
var queryValues;
|
|
1958
|
+
return __generator(this, function (_a) {
|
|
1959
|
+
queryValues = {
|
|
1960
|
+
filename: filename
|
|
1961
|
+
};
|
|
1962
|
+
return [2 /*return*/, this.beginRequest({
|
|
1963
|
+
apiVersion: "7.1-preview.1",
|
|
1964
|
+
httpResponseType: "application/octet-stream",
|
|
1965
|
+
routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
|
|
1966
|
+
routeValues: {
|
|
1967
|
+
project: project,
|
|
1968
|
+
runId: runId
|
|
1969
|
+
},
|
|
1970
|
+
queryParams: queryValues
|
|
1971
|
+
})];
|
|
1972
|
+
});
|
|
1973
|
+
});
|
|
1974
|
+
};
|
|
1975
|
+
/**
|
|
1976
|
+
* Returns a list of attachments for the specified runId from the LogStore.
|
|
1977
|
+
*
|
|
1978
|
+
* @param project - Project ID or project name
|
|
1979
|
+
* @param runId - Test RunId
|
|
1980
|
+
*/
|
|
1981
|
+
TestResultsRestClient.prototype.getTestRunLogStoreAttachments = function (project, runId) {
|
|
1982
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1983
|
+
return __generator(this, function (_a) {
|
|
1984
|
+
return [2 /*return*/, this.beginRequest({
|
|
1985
|
+
apiVersion: "7.1-preview.1",
|
|
1986
|
+
routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
|
|
1987
|
+
routeValues: {
|
|
1988
|
+
project: project,
|
|
1989
|
+
runId: runId
|
|
1990
|
+
}
|
|
1991
|
+
})];
|
|
1992
|
+
});
|
|
1993
|
+
});
|
|
1994
|
+
};
|
|
1995
|
+
/**
|
|
1996
|
+
* Returns the attachment with the specified filename for the specified runId from the LogStore.
|
|
1997
|
+
*
|
|
1998
|
+
* @param project - Project ID or project name
|
|
1999
|
+
* @param runId - Test RunId
|
|
2000
|
+
* @param filename - Attachment FileName
|
|
2001
|
+
*/
|
|
2002
|
+
TestResultsRestClient.prototype.getTestRunLogStoreAttachmentZip = function (project, runId, filename) {
|
|
2003
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2004
|
+
var queryValues;
|
|
2005
|
+
return __generator(this, function (_a) {
|
|
2006
|
+
queryValues = {
|
|
2007
|
+
filename: filename
|
|
2008
|
+
};
|
|
2009
|
+
return [2 /*return*/, this.beginRequest({
|
|
2010
|
+
apiVersion: "7.1-preview.1",
|
|
2011
|
+
httpResponseType: "application/zip",
|
|
2012
|
+
routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
|
|
2013
|
+
routeValues: {
|
|
2014
|
+
project: project,
|
|
2015
|
+
runId: runId
|
|
2016
|
+
},
|
|
2017
|
+
queryParams: queryValues
|
|
2018
|
+
})];
|
|
2019
|
+
});
|
|
2020
|
+
});
|
|
2021
|
+
};
|
|
1713
2022
|
/**
|
|
1714
2023
|
* Get history of a test method using TestHistoryQuery
|
|
1715
2024
|
*
|
|
@@ -1720,7 +2029,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1720
2029
|
return __awaiter(this, void 0, void 0, function () {
|
|
1721
2030
|
return __generator(this, function (_a) {
|
|
1722
2031
|
return [2 /*return*/, this.beginRequest({
|
|
1723
|
-
apiVersion: "
|
|
2032
|
+
apiVersion: "7.1-preview.2",
|
|
1724
2033
|
method: "POST",
|
|
1725
2034
|
routeTemplate: "{project}/_apis/testresults/results/TestHistory",
|
|
1726
2035
|
routeValues: {
|
|
@@ -1746,6 +2055,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1746
2055
|
TestResultsRestClient.prototype.getTestLogsForBuild = function (project, buildId, type, directoryPath, fileNamePrefix, fetchMetaData, top, continuationToken) {
|
|
1747
2056
|
return __awaiter(this, void 0, void 0, function () {
|
|
1748
2057
|
var queryValues;
|
|
2058
|
+
var _this = this;
|
|
1749
2059
|
return __generator(this, function (_a) {
|
|
1750
2060
|
queryValues = {
|
|
1751
2061
|
buildId: buildId,
|
|
@@ -1756,7 +2066,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1756
2066
|
top: top
|
|
1757
2067
|
};
|
|
1758
2068
|
return [2 /*return*/, this.beginRequest({
|
|
1759
|
-
apiVersion: "
|
|
2069
|
+
apiVersion: "7.1-preview.1",
|
|
1760
2070
|
routeTemplate: "{project}/_apis/testresults/testlog",
|
|
1761
2071
|
routeValues: {
|
|
1762
2072
|
project: project
|
|
@@ -1764,8 +2074,20 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1764
2074
|
customHeaders: {
|
|
1765
2075
|
"x-ms-continuationtoken": continuationToken,
|
|
1766
2076
|
},
|
|
1767
|
-
queryParams: queryValues
|
|
1768
|
-
|
|
2077
|
+
queryParams: queryValues,
|
|
2078
|
+
returnRawResponse: true
|
|
2079
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2080
|
+
var body;
|
|
2081
|
+
return __generator(this, function (_a) {
|
|
2082
|
+
switch (_a.label) {
|
|
2083
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
2084
|
+
case 1:
|
|
2085
|
+
body = _a.sent();
|
|
2086
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
2087
|
+
return [2 /*return*/, body];
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
}); })];
|
|
1769
2091
|
});
|
|
1770
2092
|
});
|
|
1771
2093
|
};
|
|
@@ -1785,6 +2107,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1785
2107
|
TestResultsRestClient.prototype.getTestResultLogs = function (project, runId, resultId, type, directoryPath, fileNamePrefix, fetchMetaData, top, continuationToken) {
|
|
1786
2108
|
return __awaiter(this, void 0, void 0, function () {
|
|
1787
2109
|
var queryValues;
|
|
2110
|
+
var _this = this;
|
|
1788
2111
|
return __generator(this, function (_a) {
|
|
1789
2112
|
queryValues = {
|
|
1790
2113
|
type: type,
|
|
@@ -1794,7 +2117,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1794
2117
|
top: top
|
|
1795
2118
|
};
|
|
1796
2119
|
return [2 /*return*/, this.beginRequest({
|
|
1797
|
-
apiVersion: "
|
|
2120
|
+
apiVersion: "7.1-preview.1",
|
|
1798
2121
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",
|
|
1799
2122
|
routeValues: {
|
|
1800
2123
|
project: project,
|
|
@@ -1804,8 +2127,20 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1804
2127
|
customHeaders: {
|
|
1805
2128
|
"x-ms-continuationtoken": continuationToken,
|
|
1806
2129
|
},
|
|
1807
|
-
queryParams: queryValues
|
|
1808
|
-
|
|
2130
|
+
queryParams: queryValues,
|
|
2131
|
+
returnRawResponse: true
|
|
2132
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2133
|
+
var body;
|
|
2134
|
+
return __generator(this, function (_a) {
|
|
2135
|
+
switch (_a.label) {
|
|
2136
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
2137
|
+
case 1:
|
|
2138
|
+
body = _a.sent();
|
|
2139
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
2140
|
+
return [2 /*return*/, body];
|
|
2141
|
+
}
|
|
2142
|
+
});
|
|
2143
|
+
}); })];
|
|
1809
2144
|
});
|
|
1810
2145
|
});
|
|
1811
2146
|
};
|
|
@@ -1826,6 +2161,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1826
2161
|
TestResultsRestClient.prototype.getTestSubResultLogs = function (project, runId, resultId, subResultId, type, directoryPath, fileNamePrefix, fetchMetaData, top, continuationToken) {
|
|
1827
2162
|
return __awaiter(this, void 0, void 0, function () {
|
|
1828
2163
|
var queryValues;
|
|
2164
|
+
var _this = this;
|
|
1829
2165
|
return __generator(this, function (_a) {
|
|
1830
2166
|
queryValues = {
|
|
1831
2167
|
subResultId: subResultId,
|
|
@@ -1836,7 +2172,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1836
2172
|
top: top
|
|
1837
2173
|
};
|
|
1838
2174
|
return [2 /*return*/, this.beginRequest({
|
|
1839
|
-
apiVersion: "
|
|
2175
|
+
apiVersion: "7.1-preview.1",
|
|
1840
2176
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",
|
|
1841
2177
|
routeValues: {
|
|
1842
2178
|
project: project,
|
|
@@ -1846,8 +2182,20 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1846
2182
|
customHeaders: {
|
|
1847
2183
|
"x-ms-continuationtoken": continuationToken,
|
|
1848
2184
|
},
|
|
1849
|
-
queryParams: queryValues
|
|
1850
|
-
|
|
2185
|
+
queryParams: queryValues,
|
|
2186
|
+
returnRawResponse: true
|
|
2187
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2188
|
+
var body;
|
|
2189
|
+
return __generator(this, function (_a) {
|
|
2190
|
+
switch (_a.label) {
|
|
2191
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
2192
|
+
case 1:
|
|
2193
|
+
body = _a.sent();
|
|
2194
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
2195
|
+
return [2 /*return*/, body];
|
|
2196
|
+
}
|
|
2197
|
+
});
|
|
2198
|
+
}); })];
|
|
1851
2199
|
});
|
|
1852
2200
|
});
|
|
1853
2201
|
};
|
|
@@ -1866,6 +2214,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1866
2214
|
TestResultsRestClient.prototype.getTestRunLogs = function (project, runId, type, directoryPath, fileNamePrefix, fetchMetaData, top, continuationToken) {
|
|
1867
2215
|
return __awaiter(this, void 0, void 0, function () {
|
|
1868
2216
|
var queryValues;
|
|
2217
|
+
var _this = this;
|
|
1869
2218
|
return __generator(this, function (_a) {
|
|
1870
2219
|
queryValues = {
|
|
1871
2220
|
type: type,
|
|
@@ -1875,7 +2224,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1875
2224
|
top: top
|
|
1876
2225
|
};
|
|
1877
2226
|
return [2 /*return*/, this.beginRequest({
|
|
1878
|
-
apiVersion: "
|
|
2227
|
+
apiVersion: "7.1-preview.1",
|
|
1879
2228
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/testlog",
|
|
1880
2229
|
routeValues: {
|
|
1881
2230
|
project: project,
|
|
@@ -1884,8 +2233,20 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1884
2233
|
customHeaders: {
|
|
1885
2234
|
"x-ms-continuationtoken": continuationToken,
|
|
1886
2235
|
},
|
|
1887
|
-
queryParams: queryValues
|
|
1888
|
-
|
|
2236
|
+
queryParams: queryValues,
|
|
2237
|
+
returnRawResponse: true
|
|
2238
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2239
|
+
var body;
|
|
2240
|
+
return __generator(this, function (_a) {
|
|
2241
|
+
switch (_a.label) {
|
|
2242
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
2243
|
+
case 1:
|
|
2244
|
+
body = _a.sent();
|
|
2245
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
2246
|
+
return [2 /*return*/, body];
|
|
2247
|
+
}
|
|
2248
|
+
});
|
|
2249
|
+
}); })];
|
|
1889
2250
|
});
|
|
1890
2251
|
});
|
|
1891
2252
|
};
|
|
@@ -1907,7 +2268,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1907
2268
|
filePath: filePath
|
|
1908
2269
|
};
|
|
1909
2270
|
return [2 /*return*/, this.beginRequest({
|
|
1910
|
-
apiVersion: "
|
|
2271
|
+
apiVersion: "7.1-preview.1",
|
|
1911
2272
|
routeTemplate: "{project}/_apis/testresults/testlogstoreendpoint",
|
|
1912
2273
|
routeValues: {
|
|
1913
2274
|
project: project
|
|
@@ -1933,7 +2294,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1933
2294
|
testLogStoreOperationType: testLogStoreOperationType
|
|
1934
2295
|
};
|
|
1935
2296
|
return [2 /*return*/, this.beginRequest({
|
|
1936
|
-
apiVersion: "
|
|
2297
|
+
apiVersion: "7.1-preview.1",
|
|
1937
2298
|
method: "POST",
|
|
1938
2299
|
routeTemplate: "{project}/_apis/testresults/testlogstoreendpoint",
|
|
1939
2300
|
routeValues: {
|
|
@@ -1962,7 +2323,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1962
2323
|
filePath: filePath
|
|
1963
2324
|
};
|
|
1964
2325
|
return [2 /*return*/, this.beginRequest({
|
|
1965
|
-
apiVersion: "
|
|
2326
|
+
apiVersion: "7.1-preview.1",
|
|
1966
2327
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",
|
|
1967
2328
|
routeValues: {
|
|
1968
2329
|
project: project,
|
|
@@ -1994,7 +2355,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1994
2355
|
filePath: filePath
|
|
1995
2356
|
};
|
|
1996
2357
|
return [2 /*return*/, this.beginRequest({
|
|
1997
|
-
apiVersion: "
|
|
2358
|
+
apiVersion: "7.1-preview.1",
|
|
1998
2359
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",
|
|
1999
2360
|
routeValues: {
|
|
2000
2361
|
project: project,
|
|
@@ -2026,7 +2387,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2026
2387
|
type: type
|
|
2027
2388
|
};
|
|
2028
2389
|
return [2 /*return*/, this.beginRequest({
|
|
2029
|
-
apiVersion: "
|
|
2390
|
+
apiVersion: "7.1-preview.1",
|
|
2030
2391
|
method: "POST",
|
|
2031
2392
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",
|
|
2032
2393
|
routeValues: {
|
|
@@ -2056,7 +2417,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2056
2417
|
filePath: filePath
|
|
2057
2418
|
};
|
|
2058
2419
|
return [2 /*return*/, this.beginRequest({
|
|
2059
|
-
apiVersion: "
|
|
2420
|
+
apiVersion: "7.1-preview.1",
|
|
2060
2421
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",
|
|
2061
2422
|
routeValues: {
|
|
2062
2423
|
project: project,
|
|
@@ -2086,7 +2447,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2086
2447
|
type: type
|
|
2087
2448
|
};
|
|
2088
2449
|
return [2 /*return*/, this.beginRequest({
|
|
2089
|
-
apiVersion: "
|
|
2450
|
+
apiVersion: "7.1-preview.1",
|
|
2090
2451
|
method: "POST",
|
|
2091
2452
|
routeTemplate: "{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",
|
|
2092
2453
|
routeValues: {
|
|
@@ -2106,7 +2467,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2106
2467
|
return __awaiter(this, void 0, void 0, function () {
|
|
2107
2468
|
return __generator(this, function (_a) {
|
|
2108
2469
|
return [2 /*return*/, this.beginRequest({
|
|
2109
|
-
apiVersion: "
|
|
2470
|
+
apiVersion: "7.1-preview.1",
|
|
2110
2471
|
method: "POST",
|
|
2111
2472
|
routeTemplate: "{project}/_apis/testresults/testsettings",
|
|
2112
2473
|
routeValues: {
|
|
@@ -2129,7 +2490,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2129
2490
|
testSettingsId: testSettingsId
|
|
2130
2491
|
};
|
|
2131
2492
|
return [2 /*return*/, this.beginRequest({
|
|
2132
|
-
apiVersion: "
|
|
2493
|
+
apiVersion: "7.1-preview.1",
|
|
2133
2494
|
method: "DELETE",
|
|
2134
2495
|
routeTemplate: "{project}/_apis/testresults/testsettings",
|
|
2135
2496
|
routeValues: {
|
|
@@ -2152,7 +2513,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2152
2513
|
testSettingsId: testSettingsId
|
|
2153
2514
|
};
|
|
2154
2515
|
return [2 /*return*/, this.beginRequest({
|
|
2155
|
-
apiVersion: "
|
|
2516
|
+
apiVersion: "7.1-preview.1",
|
|
2156
2517
|
routeTemplate: "{project}/_apis/testresults/testsettings",
|
|
2157
2518
|
routeValues: {
|
|
2158
2519
|
project: project
|
|
@@ -2170,7 +2531,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2170
2531
|
return __awaiter(this, void 0, void 0, function () {
|
|
2171
2532
|
return __generator(this, function (_a) {
|
|
2172
2533
|
return [2 /*return*/, this.beginRequest({
|
|
2173
|
-
apiVersion: "
|
|
2534
|
+
apiVersion: "7.1-preview.2",
|
|
2174
2535
|
method: "POST",
|
|
2175
2536
|
routeTemplate: "{project}/_apis/testresults/testmethods/workitems",
|
|
2176
2537
|
routeValues: {
|
|
@@ -2195,7 +2556,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2195
2556
|
workItemId: workItemId
|
|
2196
2557
|
};
|
|
2197
2558
|
return [2 /*return*/, this.beginRequest({
|
|
2198
|
-
apiVersion: "
|
|
2559
|
+
apiVersion: "7.1-preview.2",
|
|
2199
2560
|
method: "DELETE",
|
|
2200
2561
|
routeTemplate: "{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",
|
|
2201
2562
|
routeValues: {
|
|
@@ -2218,7 +2579,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2218
2579
|
testName: testName
|
|
2219
2580
|
};
|
|
2220
2581
|
return [2 /*return*/, this.beginRequest({
|
|
2221
|
-
apiVersion: "
|
|
2582
|
+
apiVersion: "7.1-preview.2",
|
|
2222
2583
|
method: "POST",
|
|
2223
2584
|
routeTemplate: "{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",
|
|
2224
2585
|
routeValues: {
|
|
@@ -2231,7 +2592,29 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2231
2592
|
};
|
|
2232
2593
|
/**
|
|
2233
2594
|
* @param project - Project ID or project name
|
|
2234
|
-
* @param
|
|
2595
|
+
* @param runId -
|
|
2596
|
+
* @param testCaseResultId -
|
|
2597
|
+
*/
|
|
2598
|
+
TestResultsRestClient.prototype.getTestResultWorkItemsById = function (project, runId, testCaseResultId) {
|
|
2599
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2600
|
+
return __generator(this, function (_a) {
|
|
2601
|
+
return [2 /*return*/, this.beginRequest({
|
|
2602
|
+
apiVersion: "7.1-preview.2",
|
|
2603
|
+
routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/workitems",
|
|
2604
|
+
routeValues: {
|
|
2605
|
+
project: project,
|
|
2606
|
+
runId: runId,
|
|
2607
|
+
testCaseResultId: testCaseResultId
|
|
2608
|
+
}
|
|
2609
|
+
})];
|
|
2610
|
+
});
|
|
2611
|
+
});
|
|
2612
|
+
};
|
|
2613
|
+
/**
|
|
2614
|
+
* Query Test Result WorkItems based on filter
|
|
2615
|
+
*
|
|
2616
|
+
* @param project - Project ID or project name
|
|
2617
|
+
* @param workItemCategory - can take values Microsoft.BugCategory or all(for getting all workitems)
|
|
2235
2618
|
* @param automatedTestName -
|
|
2236
2619
|
* @param testCaseId -
|
|
2237
2620
|
* @param maxCompleteDate -
|
|
@@ -2251,7 +2634,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2251
2634
|
'$workItemCount': workItemCount
|
|
2252
2635
|
};
|
|
2253
2636
|
return [2 /*return*/, this.beginRequest({
|
|
2254
|
-
apiVersion: "
|
|
2637
|
+
apiVersion: "7.1-preview.2",
|
|
2255
2638
|
routeTemplate: "{project}/_apis/testresults/results/workitems",
|
|
2256
2639
|
routeValues: {
|
|
2257
2640
|
project: project
|
|
@@ -2261,6 +2644,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2261
2644
|
});
|
|
2262
2645
|
});
|
|
2263
2646
|
};
|
|
2647
|
+
TestResultsRestClient.RESOURCE_AREA_ID = "c83eaf52-edf3-4034-ae11-17d38f25404c";
|
|
2264
2648
|
return TestResultsRestClient;
|
|
2265
2649
|
}(RestClientBase_1.RestClientBase));
|
|
2266
2650
|
exports.TestResultsRestClient = TestResultsRestClient;
|