@alex_neo/playwright-azure-reporter 1.3.0-beta.0 → 1.4.0-beta.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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # [1.4.0-beta.0](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.3.1-beta.0...v1.4.0-beta.0) (2022-12-29)
2
+
3
+
4
+ ### Features
5
+
6
+ * publishTestResultsMode config to set mode when publish test results ([4e25019](https://github.com/alexneo2003/playwright-azure-reporter/commit/4e2501926beb4680c4ef770273847fae39c57b71))
7
+
8
+
9
+
10
+ ## [1.3.1-beta.0](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.3.0-beta.0...v1.3.1-beta.0) (2022-12-22)
11
+
12
+
13
+
1
14
  # [1.3.0-beta.0](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.2.0-beta.2...v1.3.0-beta.0) (2022-10-31)
2
15
 
3
16
 
package/README.md CHANGED
@@ -90,6 +90,7 @@ const config: PlaywrightTestConfig = {
90
90
  environment: 'AQA',
91
91
  logging: true,
92
92
  testRunTitle: 'Playwright Test Run',
93
+ publishTestResultsMode: 'testRun',
93
94
  uploadAttachments: true,
94
95
  attachmentsType: ['screenshot', 'video', 'trace'],
95
96
  testRunConfig: {
@@ -118,7 +119,7 @@ Reporter options (\* - required):
118
119
  - \*`token` - Azure DevOps token, you can find more information [here](https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=Windows)
119
120
  - \*`orgUrl` - Full url for your organization space. Example: `https://dev.azure.com/your-organization-name`
120
121
 
121
- > Please note that some API's (e.g. ProfileApi) can't be hit at the org level, and has to be hit at the deployment level, so url should be structured like https://vssps.dev.azure.com/{yourorgname}
122
+ > **Note:** some API's (e.g. ProfileApi) can't be hit at the org level, and has to be hit at the deployment level, so url should be structured like https://vssps.dev.azure.com/{yourorgname}
122
123
 
123
124
  - \*`projectName` - Name of your project (also can be got from run URL). Example: `https://dev.azure.com/alex-neo/SampleProject/` - **SampleProject**
124
125
  - \*`planId` - Id of test plan. You can find it in test plan URL. Example: `https://dev.azure.com/alex-neo/SampleProject/_testPlans/execute?planId=4&suiteId=6` - **planId=4**
@@ -129,3 +130,7 @@ Reporter options (\* - required):
129
130
  - `isDisabled` [true/false] - Disable reporter. Default: `false`.
130
131
  - `testRunTitle` - Title of test run using to create new test run. Default: `Playwright Test Run`.
131
132
  - `testRunConfig` - Extra data to pass when Test Run creating. Read [doc](https://learn.microsoft.com/en-us/rest/api/azure/devops/test/runs/create?view=azure-devops-rest-7.1&tabs=HTTP#request-body) from more information. Default: `empty`.
133
+ - `publishTestResultsMode` - Mode of publishing test results. Default: `'testResult'`. Available options:
134
+ - `testResult` - Published results of tests, at the end of each test, parallel to test run..
135
+ - `testRun` - Published test results to test run, at the end of test run.
136
+ > **Note:** If you use `testRun` mode and using same test cases in different tests (yes i know it sounds funny), it will be overwritten with last test result.
@@ -5,11 +5,13 @@ export declare function shortID(): string;
5
5
  declare const attachmentTypesArray: readonly ["screenshot", "video", "trace"];
6
6
  declare type TAttachmentType = Array<typeof attachmentTypesArray[number]>;
7
7
  declare type TTestRunConfig = Omit<TestInterfaces.RunCreateModel, 'name' | 'automated' | 'plan' | 'pointIds'> | undefined;
8
+ declare type TPublishTestResults = 'testResult' | 'testRun';
8
9
  export interface AzureReporterOptions {
9
10
  token: string;
10
11
  planId: number;
11
12
  orgUrl: string;
12
13
  projectName: string;
14
+ publishTestResultsMode?: TPublishTestResults;
13
15
  logging?: boolean | undefined;
14
16
  isDisabled?: boolean | undefined;
15
17
  environment?: string | undefined;
@@ -19,25 +21,31 @@ export interface AzureReporterOptions {
19
21
  testRunConfig?: TTestRunConfig;
20
22
  }
21
23
  declare class AzureDevOpsReporter implements Reporter {
22
- private testApi;
23
- private coreApi;
24
- private publishedResultsCount;
25
- private resultsToBePublished;
26
- private connection;
27
- private orgUrl;
28
- private projectName;
29
- private environment?;
30
- private planId;
31
- private logging;
32
- private isDisabled;
33
- private testRunTitle;
34
- private uploadAttachments;
35
- private attachmentsType?;
36
- private token;
37
- private runIdPromise;
38
- private resolveRunId;
39
- private rejectRunId;
40
- private testRunConfig;
24
+ private _testApi;
25
+ private _coreApi;
26
+ private _publishedResultsCount;
27
+ private _testsAliasToBePublished;
28
+ private _testResultsToBePublished;
29
+ private _connection;
30
+ private _orgUrl;
31
+ private _projectName;
32
+ private _environment?;
33
+ private _planId;
34
+ private _logging;
35
+ private _isDisabled;
36
+ private _testRunTitle;
37
+ private _uploadAttachments;
38
+ private _attachmentsType?;
39
+ private _token;
40
+ private _runIdPromise;
41
+ private _resolveRunId;
42
+ private _rejectRunId;
43
+ private _publishResultsPromise;
44
+ private _resolvePublishResults;
45
+ private _rejectPublishResults;
46
+ private _testRunConfig;
47
+ private _azureClientOptions;
48
+ private _publishTestResultsMode;
41
49
  constructor(options: AzureReporterOptions);
42
50
  _validateOptions(options: AzureReporterOptions): void;
43
51
  onBegin(): Promise<void>;
@@ -51,9 +59,11 @@ declare class AzureDevOpsReporter implements Reporter {
51
59
  private _createRun;
52
60
  private _removePublished;
53
61
  private _checkProject;
62
+ private _getTestPointIdByTCId;
54
63
  private _getTestPointIdsByTCIds;
55
64
  private _addReportingOverride;
56
65
  private _uploadAttachmentsFunc;
57
66
  private _publishCaseResult;
67
+ private _publishTestResults;
58
68
  }
59
69
  export default AzureDevOpsReporter;
@@ -41,113 +41,136 @@ function shortID() {
41
41
  return crypto_1.default.randomBytes(8).toString('hex');
42
42
  }
43
43
  exports.shortID = shortID;
44
- var AzureTestStatuses;
45
- (function (AzureTestStatuses) {
46
- AzureTestStatuses["passed"] = "Passed";
47
- AzureTestStatuses["failed"] = "Failed";
48
- AzureTestStatuses["skipped"] = "Paused";
49
- AzureTestStatuses["timedOut"] = "Failed";
50
- AzureTestStatuses["interrupted"] = "Failed";
51
- })(AzureTestStatuses || (AzureTestStatuses = {}));
44
+ var EAzureTestStatuses;
45
+ (function (EAzureTestStatuses) {
46
+ EAzureTestStatuses["passed"] = "Passed";
47
+ EAzureTestStatuses["failed"] = "Failed";
48
+ EAzureTestStatuses["skipped"] = "Paused";
49
+ EAzureTestStatuses["timedOut"] = "Failed";
50
+ EAzureTestStatuses["interrupted"] = "Failed";
51
+ })(EAzureTestStatuses || (EAzureTestStatuses = {}));
52
52
  const attachmentTypesArray = ['screenshot', 'video', 'trace'];
53
53
  class AzureDevOpsReporter {
54
- testApi;
55
- coreApi;
56
- publishedResultsCount = 0;
57
- resultsToBePublished = [];
58
- connection;
59
- orgUrl;
60
- projectName;
61
- environment;
62
- planId = 0;
63
- logging = false;
64
- isDisabled = false;
65
- testRunTitle = '';
66
- uploadAttachments = false;
67
- attachmentsType;
68
- token = '';
69
- runIdPromise;
70
- resolveRunId = () => { };
71
- rejectRunId = () => { };
72
- testRunConfig = {};
54
+ _testApi;
55
+ _coreApi;
56
+ _publishedResultsCount = 0;
57
+ _testsAliasToBePublished = [];
58
+ _testResultsToBePublished = [];
59
+ _connection;
60
+ _orgUrl;
61
+ _projectName;
62
+ _environment;
63
+ _planId = 0;
64
+ _logging = false;
65
+ _isDisabled = false;
66
+ _testRunTitle = '';
67
+ _uploadAttachments = false;
68
+ _attachmentsType;
69
+ _token = '';
70
+ _runIdPromise;
71
+ _resolveRunId = () => { };
72
+ _rejectRunId = () => { };
73
+ _publishResultsPromise;
74
+ _resolvePublishResults = () => { };
75
+ _rejectPublishResults = () => { };
76
+ _testRunConfig = {};
77
+ _azureClientOptions = {
78
+ allowRetries: true,
79
+ maxRetries: 20,
80
+ };
81
+ _publishTestResultsMode = 'testResult';
73
82
  constructor(options) {
74
- this.runIdPromise = new Promise((resolve, reject) => {
75
- this.resolveRunId = resolve;
76
- this.rejectRunId = reject;
83
+ this._runIdPromise = new Promise((resolve, reject) => {
84
+ this._resolveRunId = resolve;
85
+ this._rejectRunId = reject;
86
+ })
87
+ .then((runId) => {
88
+ return runId;
89
+ })
90
+ .catch((error) => {
91
+ this._warning(error);
92
+ this._isDisabled = true;
93
+ });
94
+ this._publishResultsPromise = new Promise((resolve, reject) => {
95
+ this._resolvePublishResults = resolve;
96
+ this._rejectPublishResults = reject;
77
97
  })
78
98
  .then((runId) => {
79
99
  return runId;
80
100
  })
81
101
  .catch((error) => {
82
102
  this._warning(error);
83
- this.isDisabled = true;
103
+ this._isDisabled = true;
84
104
  });
85
105
  this._validateOptions(options);
86
106
  }
87
107
  _validateOptions(options) {
88
108
  if (options?.isDisabled) {
89
- this.isDisabled = true;
109
+ this._isDisabled = true;
90
110
  return;
91
111
  }
92
112
  if (!options?.orgUrl) {
93
113
  this._warning("'orgUrl' is not set. Reporting is disabled.");
94
- this.isDisabled = true;
114
+ this._isDisabled = true;
95
115
  return;
96
116
  }
97
117
  if (!options?.projectName) {
98
118
  this._warning("'projectName' is not set. Reporting is disabled.");
99
- this.isDisabled = true;
119
+ this._isDisabled = true;
100
120
  return;
101
121
  }
102
122
  if (!options?.planId) {
103
123
  this._warning("'planId' is not set. Reporting is disabled.");
104
- this.isDisabled = true;
124
+ this._isDisabled = true;
105
125
  return;
106
126
  }
107
127
  if (!options?.token) {
108
128
  this._warning("'token' is not set. Reporting is disabled.");
109
- this.isDisabled = true;
129
+ this._isDisabled = true;
110
130
  return;
111
131
  }
112
132
  if (options?.uploadAttachments) {
113
133
  if (!options?.attachmentsType) {
114
134
  this._warning("'attachmentsType' is not set. Attachments Type will be set to 'screenshot' by default.");
115
- this.attachmentsType = ['screenshot'];
135
+ this._attachmentsType = ['screenshot'];
116
136
  }
117
137
  else {
118
- this.attachmentsType = options.attachmentsType;
138
+ this._attachmentsType = options.attachmentsType;
119
139
  }
120
140
  }
121
- this.orgUrl = options.orgUrl;
122
- this.projectName = options.projectName;
123
- this.planId = options.planId;
124
- this.logging = options.logging || false;
125
- this.token = options.token;
126
- this.environment = options?.environment || undefined;
127
- this.testRunTitle =
128
- `${this.environment ? `[${this.environment}]:` : ''} ${options?.testRunTitle || 'Playwright Test Run'}` ||
129
- `${this.environment ? `[${this.environment}]:` : ''}Test plan ${this.planId}`;
130
- this.uploadAttachments = options?.uploadAttachments || false;
131
- this.connection = new azdev.WebApi(this.orgUrl, azdev.getPersonalAccessTokenHandler(this.token));
132
- this.testRunConfig = options?.testRunConfig || undefined;
141
+ this._orgUrl = options.orgUrl;
142
+ this._projectName = options.projectName;
143
+ this._planId = options.planId;
144
+ this._logging = options.logging || false;
145
+ this._token = options.token;
146
+ this._environment = options?.environment || undefined;
147
+ this._testRunTitle =
148
+ `${this._environment ? `[${this._environment}]:` : ''} ${options?.testRunTitle || 'Playwright Test Run'}` ||
149
+ `${this._environment ? `[${this._environment}]:` : ''}Test plan ${this._planId}`;
150
+ this._uploadAttachments = options?.uploadAttachments || false;
151
+ this._connection = new azdev.WebApi(this._orgUrl, azdev.getPersonalAccessTokenHandler(this._token), this._azureClientOptions);
152
+ this._testRunConfig = options?.testRunConfig || undefined;
153
+ this._publishTestResultsMode = options?.publishTestResultsMode || 'testResult';
133
154
  }
134
155
  async onBegin() {
135
- if (this.isDisabled)
156
+ if (this._isDisabled)
136
157
  return;
137
158
  try {
138
- this.testApi = await this.connection.getTestApi();
139
- const run = await this._createRun(this.testRunTitle);
140
- if (run?.id) {
141
- this.resolveRunId(run.id);
142
- this._log(chalk_1.default.green(`Using run ${run.id} to publish test results`));
143
- }
144
- else {
145
- this.isDisabled = true;
146
- this.rejectRunId('Failed to create test run. Reporting is disabled.');
159
+ this._testApi = await this._connection.getTestApi();
160
+ if (this._publishTestResultsMode === 'testResult') {
161
+ const run = await this._createRun(this._testRunTitle);
162
+ if (run?.id) {
163
+ this._resolveRunId(run.id);
164
+ this._log(chalk_1.default.green(`Using run ${run.id} to publish test results`));
165
+ }
166
+ else {
167
+ this._isDisabled = true;
168
+ this._rejectRunId('Failed to create test run. Reporting is disabled.');
169
+ }
147
170
  }
148
171
  }
149
172
  catch (error) {
150
- this.isDisabled = true;
173
+ this._isDisabled = true;
151
174
  if (error.message.includes('401')) {
152
175
  this._warning('Failed to create test run. Check your token. Reporting is disabled.');
153
176
  }
@@ -162,40 +185,69 @@ class AzureDevOpsReporter {
162
185
  }
163
186
  }
164
187
  async onTestEnd(test, testResult) {
165
- if (this.isDisabled)
188
+ if (this._isDisabled)
166
189
  return;
167
190
  try {
168
- const runId = await this.runIdPromise;
169
- if (!runId)
170
- return;
171
- this._logTestItem(test, testResult);
172
- await this._publishCaseResult(test, testResult);
191
+ if (this._publishTestResultsMode === 'testResult') {
192
+ const runId = await this._runIdPromise;
193
+ if (!runId)
194
+ return;
195
+ this._logTestItem(test, testResult);
196
+ await this._publishCaseResult(test, testResult);
197
+ }
198
+ else {
199
+ this._logTestItem(test, testResult);
200
+ const testCase = {
201
+ ...test,
202
+ testAlias: `${shortID()} - ${test.title}`,
203
+ testCaseIds: this._getCaseIds(test),
204
+ };
205
+ this._testResultsToBePublished.push({ test: testCase, testResult });
206
+ }
173
207
  }
174
208
  catch (error) {
175
209
  this._warning(`Failed to publish test result. \n ${error.message}`);
176
210
  }
177
211
  }
178
212
  async onEnd() {
179
- if (this.isDisabled)
213
+ if (this._isDisabled)
180
214
  return;
181
215
  try {
182
- const runId = await this.runIdPromise;
183
- let prevCount = this.resultsToBePublished.length;
184
- while (this.resultsToBePublished.length > 0) {
185
- // need wait all results to be published
186
- if (prevCount > this.resultsToBePublished.length) {
187
- this._log(chalk_1.default.gray(`Waiting for all results to be published. Remaining ${this.resultsToBePublished.length} results`));
188
- prevCount--;
216
+ let runId;
217
+ if (this._publishTestResultsMode === 'testResult') {
218
+ runId = await this._runIdPromise;
219
+ let prevCount = this._testsAliasToBePublished.length;
220
+ while (this._testsAliasToBePublished.length > 0) {
221
+ // need wait all results to be published
222
+ if (prevCount > this._testsAliasToBePublished.length) {
223
+ this._log(chalk_1.default.gray(`Waiting for all results to be published. Remaining ${this._testsAliasToBePublished.length} results`));
224
+ prevCount--;
225
+ }
226
+ await new Promise((resolve) => setTimeout(resolve, 250));
227
+ }
228
+ }
229
+ else {
230
+ this._logging = true;
231
+ const createRunResponse = await this._createRun(this._testRunTitle);
232
+ runId = createRunResponse?.id;
233
+ if (runId) {
234
+ this._resolveRunId(runId);
235
+ this._log(chalk_1.default.green(`Using run ${runId} to publish test results`));
236
+ await this._publishTestResults(runId, this._testResultsToBePublished);
189
237
  }
190
- await new Promise((resolve) => setTimeout(resolve, 250));
238
+ else {
239
+ this._isDisabled = true;
240
+ this._rejectRunId('Failed to create test run. Reporting is disabled.');
241
+ }
242
+ await this._publishResultsPromise;
191
243
  }
192
- if (this.publishedResultsCount === 0 && !runId) {
244
+ if (this._publishedResultsCount === 0 && !runId) {
193
245
  this._log(chalk_1.default.gray('No testcases were matched. Ensure that your tests are declared correctly.'));
194
246
  return;
195
247
  }
196
- if (!this.testApi)
197
- this.testApi = await this.connection.getTestApi();
198
- const runUpdatedResponse = await this.testApi.updateTestRun({ state: 'Completed' }, this.projectName, runId);
248
+ if (!this._testApi)
249
+ this._testApi = await this._connection.getTestApi();
250
+ const runUpdatedResponse = await this._testApi.updateTestRun({ state: 'Completed' }, this._projectName, runId);
199
251
  this._log(chalk_1.default.green(`Run ${runId} - ${runUpdatedResponse.state}`));
200
252
  }
201
253
  catch (error) {
@@ -206,7 +258,7 @@ class AzureDevOpsReporter {
206
258
  return true;
207
259
  }
208
260
  _log(message) {
209
- if (this.logging) {
261
+ if (this._logging) {
210
262
  console.log(chalk_1.default.magenta(`azure: ${message}`));
211
263
  }
212
264
  }
@@ -248,7 +300,7 @@ class AzureDevOpsReporter {
248
300
  }
249
301
  async _createRun(runName) {
250
302
  try {
251
- const isExists = await this._checkProject(this.projectName);
303
+ const isExists = await this._checkProject(this._projectName);
252
304
  if (!isExists) {
253
305
  return;
254
306
  }
@@ -256,16 +308,16 @@ class AzureDevOpsReporter {
256
308
  const runModel = {
257
309
  name: runName,
258
310
  automated: true,
259
- plan: { id: String(this.planId) },
260
- ...(this.testRunConfig
261
- ? this.testRunConfig
311
+ plan: { id: String(this._planId) },
312
+ ...(this._testRunConfig
313
+ ? this._testRunConfig
262
314
  : {
263
315
  configurationIds: [1],
264
316
  }),
265
317
  };
266
- if (!this.testApi)
267
- this.testApi = await this.connection.getTestApi();
268
- const adTestRun = await this.testApi.createTestRun(runModel, this.projectName);
318
+ if (!this._testApi)
319
+ this._testApi = await this._connection.getTestApi();
320
+ const adTestRun = await this._testApi.createTestRun(runModel, this._projectName);
269
321
  if (adTestRun?.id)
270
322
  return adTestRun;
271
323
  else
@@ -274,19 +326,19 @@ class AzureDevOpsReporter {
274
326
  }
275
327
  catch (error) {
276
328
  this._warning(chalk_1.default.red(error.message));
277
- this.isDisabled = true;
329
+ this._isDisabled = true;
278
330
  }
279
331
  }
280
332
  _removePublished(testAlias) {
281
- const resultIndex = this.resultsToBePublished.indexOf(testAlias);
333
+ const resultIndex = this._testsAliasToBePublished.indexOf(testAlias);
282
334
  if (resultIndex !== -1)
283
- this.resultsToBePublished.splice(resultIndex, 1);
335
+ this._testsAliasToBePublished.splice(resultIndex, 1);
284
336
  }
285
337
  async _checkProject(projectName) {
286
338
  try {
287
- if (!this.coreApi)
288
- this.coreApi = await this.connection.getCoreApi();
289
- const project = await this.coreApi.getProject(projectName);
339
+ if (!this._coreApi)
340
+ this._coreApi = await this._connection.getCoreApi();
341
+ const project = await this._coreApi.getProject(projectName);
290
342
  if (project)
291
343
  return project;
292
344
  else
@@ -294,24 +346,24 @@ class AzureDevOpsReporter {
294
346
  }
295
347
  catch (error) {
296
348
  this._warning(chalk_1.default.red(error.message));
297
- this.isDisabled = true;
349
+ this._isDisabled = true;
298
350
  }
299
351
  }
300
- async _getTestPointIdsByTCIds(planId, testcaseIds) {
352
+ async _getTestPointIdByTCId(planId, testcaseId) {
301
353
  const result = {};
302
354
  try {
303
355
  const pointsQuery = {
304
- pointsFilter: { testcaseIds },
356
+ pointsFilter: { testcaseIds: [testcaseId] },
305
357
  };
306
- if (!this.testApi)
307
- this.testApi = await this.connection.getTestApi();
308
- const pointsQueryResult = await this.testApi.getPointsByQuery(pointsQuery, this.projectName);
358
+ if (!this._testApi)
359
+ this._testApi = await this._connection.getTestApi();
360
+ const pointsQueryResult = await this._testApi.getPointsByQuery(pointsQuery, this._projectName);
309
361
  if (pointsQueryResult.points) {
310
362
  const findedPointWithConfiguration = pointsQueryResult.points.find((point) => point.testPlan &&
311
363
  point.testPlan.id &&
312
364
  parseInt(point.testPlan.id, 10) === planId &&
313
- (this.testRunConfig?.configurationIds?.length
314
- ? this.testRunConfig.configurationIds.includes(Number(point.configuration.id))
365
+ (this._testRunConfig?.configurationIds?.length
366
+ ? this._testRunConfig.configurationIds.includes(Number(point.configuration.id))
315
367
  : false));
316
368
  if (findedPointWithConfiguration) {
317
369
  result.point = findedPointWithConfiguration.id;
@@ -326,7 +378,56 @@ class AzureDevOpsReporter {
326
378
  }
327
379
  }
328
380
  if (!result?.point) {
329
- throw new Error(`Could not find test point for test cases [${testcaseIds.join(',')}] associated with test plan ${this.planId}. Check, maybe testPlanId, what you specified, is incorrect.`);
381
+ throw new Error(`Could not find test point for test cases [${testcaseId}] associated with test plan ${this._planId}. Check, maybe testPlanId, what you specified, is incorrect.`);
382
+ }
383
+ }
384
+ catch (error) {
385
+ this._warning(chalk_1.default.red(error.message));
386
+ }
387
+ return result;
388
+ }
389
+ async _getTestPointIdsByTCIds(planId, testcaseIds) {
390
+ const result = [];
391
+ try {
392
+ const pointsQuery = {
393
+ pointsFilter: { testcaseIds: testcaseIds },
394
+ };
395
+ if (!this._testApi)
396
+ this._testApi = await this._connection.getTestApi();
397
+ const pointsQueryResult = await this._testApi.getPointsByQuery(pointsQuery, this._projectName);
398
+ testcaseIds.forEach((testcaseId) => {
399
+ if (pointsQueryResult.points) {
400
+ const findedPointWithConfiguration = pointsQueryResult.points.find((point) => point.testCase.id === testcaseId.toString() &&
401
+ point.testPlan &&
402
+ point.testPlan.id &&
403
+ parseInt(point.testPlan.id, 10) === planId &&
404
+ (this._testRunConfig?.configurationIds?.length
405
+ ? this._testRunConfig.configurationIds.includes(Number(point.configuration.id))
406
+ : false));
407
+ if (findedPointWithConfiguration) {
408
+ result.push({
409
+ testCaseId: testcaseId,
410
+ point: findedPointWithConfiguration.id,
411
+ configurationId: findedPointWithConfiguration.configuration.id,
412
+ configurationName: findedPointWithConfiguration.configuration.name,
413
+ });
414
+ }
415
+ else {
416
+ const findedPoint = pointsQueryResult.points.find((point) => point.testCase.id === testcaseId.toString() &&
417
+ point.testPlan &&
418
+ point.testPlan.id &&
419
+ parseInt(point.testPlan.id, 10) === planId);
420
+ if (findedPoint) {
421
+ result.push({
422
+ testCaseId: testcaseId,
423
+ point: findedPoint.id,
424
+ });
425
+ }
426
+ }
427
+ }
428
+ });
429
+ if (!result?.some((item) => item.point)) {
430
+ throw new Error(`Could not find test point for test cases [${testcaseIds.join(',')}] associated with test plan ${this._planId}. Check, maybe testPlanId, what you specified, is incorrect.`);
330
431
  }
331
432
  }
332
433
  catch (error) {
@@ -362,24 +463,27 @@ class AzureDevOpsReporter {
362
463
  };
363
464
  return api;
364
465
  };
365
- async _uploadAttachmentsFunc(testResult, caseId, testCaseId) {
366
- this._log(chalk_1.default.gray(`Start upload attachments for test case [${testCaseId}]`));
367
- const runId = await this.runIdPromise;
466
+ async _uploadAttachmentsFunc(testResult, testCaseResultId, test) {
467
+ this._log(chalk_1.default.gray(`Uploading attachments for test: ${test.title}`));
468
+ const runId = await this._runIdPromise;
368
469
  const attachmentsResult = [];
470
+ if (!runId) {
471
+ throw new Error('Could not find test run id. Check, maybe testPlanId, what you specified, is incorrect.');
472
+ }
369
473
  for (const attachment of testResult.attachments) {
370
474
  try {
371
- if (this.attachmentsType.includes(attachment.name)) {
475
+ if (this._attachmentsType.includes(attachment.name)) {
372
476
  if ((0, fs_1.existsSync)(attachment.path)) {
373
- const attachments = {
477
+ const attachmentRequestModel = {
374
478
  attachmentType: 'GeneralAttachment',
375
479
  fileName: `${attachment.name}-${createGuid()}.${attachment.contentType.split('/')[1]}`,
376
480
  stream: (0, fs_1.readFileSync)(attachment.path, { encoding: 'base64' }),
377
481
  };
378
- if (!this.testApi)
379
- this.testApi = await this.connection.getTestApi();
380
- const response = await this.testApi.createTestResultAttachment(attachments, this.projectName, runId, caseId);
482
+ if (!this._testApi)
483
+ this._testApi = await this._connection.getTestApi();
484
+ const response = await this._testApi.createTestResultAttachment(attachmentRequestModel, this._projectName, runId, testCaseResultId);
381
485
  if (!response?.id)
382
- throw new Error(`Failed to upload attachment for test case [${testCaseId}]`);
486
+ throw new Error(`Failed to upload attachment for test: ${test.title}`);
383
487
  attachmentsResult.push(response.url);
384
488
  }
385
489
  else {
@@ -391,6 +495,7 @@ class AzureDevOpsReporter {
391
495
  this._log(chalk_1.default.red(error.message));
392
496
  }
393
497
  }
498
+ this._log(chalk_1.default.gray('Uploaded attachments'));
394
499
  return attachmentsResult;
395
500
  }
396
501
  async _publishCaseResult(test, testResult) {
@@ -399,11 +504,11 @@ class AzureDevOpsReporter {
399
504
  return;
400
505
  await Promise.all(caseIds.map(async (caseId) => {
401
506
  const testAlias = `${shortID()} - ${test.title}`;
402
- this.resultsToBePublished.push(testAlias);
507
+ this._testsAliasToBePublished.push(testAlias);
403
508
  try {
404
- const runId = await this.runIdPromise;
509
+ const runId = await this._runIdPromise;
405
510
  this._log(chalk_1.default.gray(`Start publishing: TC:${caseId} - ${test.title}`));
406
- const points = await this._getTestPointIdsByTCIds(this.planId, [parseInt(caseId, 10)]);
511
+ const points = await this._getTestPointIdByTCId(this._planId, parseInt(caseId, 10));
407
512
  if (!points.point) {
408
513
  this._removePublished(testAlias);
409
514
  throw new Error(`No test points found for test case [${caseIds}]`);
@@ -413,7 +518,7 @@ class AzureDevOpsReporter {
413
518
  testCase: { id: caseId },
414
519
  testPoint: { id: String(points.point) },
415
520
  testCaseTitle: test.title,
416
- outcome: AzureTestStatuses[testResult.status],
521
+ outcome: EAzureTestStatuses[testResult.status],
417
522
  state: 'Completed',
418
523
  durationInMs: testResult.duration,
419
524
  errorMessage: testResult.error
@@ -425,15 +530,15 @@ class AzureDevOpsReporter {
425
530
  }),
426
531
  },
427
532
  ];
428
- if (!this.testApi)
429
- this.testApi = await this.connection.getTestApi();
430
- const testCaseResult = (await this._addReportingOverride(this.testApi).addTestResultsToTestRun(results, this.projectName, runId));
533
+ if (!this._testApi)
534
+ this._testApi = await this._connection.getTestApi();
535
+ const testCaseResult = (await this._addReportingOverride(this._testApi).addTestResultsToTestRun(results, this._projectName, runId));
431
536
  if (!testCaseResult?.result)
432
537
  throw new Error(`Failed to publish test result for test case [${caseId}]`);
433
- if (this.uploadAttachments && testResult.attachments.length > 0)
434
- await this._uploadAttachmentsFunc(testResult, testCaseResult.result.value[0].id, caseId);
538
+ if (this._uploadAttachments && testResult.attachments.length > 0)
539
+ await this._uploadAttachmentsFunc(testResult, testCaseResult.result.value[0].id, test);
435
540
  this._removePublished(testAlias);
436
- this.publishedResultsCount++;
541
+ this._publishedResultsCount++;
437
542
  this._log(chalk_1.default.gray(`Result published: TC:${caseId} - ${test.title}`));
438
543
  return testCaseResult;
439
544
  }
@@ -443,6 +548,80 @@ class AzureDevOpsReporter {
443
548
  }
444
549
  }));
445
550
  }
551
+ async _publishTestResults(runId, testsResults) {
552
+ if (!this._testApi)
553
+ this._testApi = await this._connection.getTestApi();
554
+ const testsPackSize = 50;
555
+ const testsEndPack = Math.ceil(testsResults.length / testsPackSize);
556
+ const testsPacksArray = Array.from({ length: testsEndPack }, (_, i) => testsResults.slice(i * testsPackSize, (i + 1) * testsPackSize));
557
+ this._log(chalk_1.default.gray(`Start publishing test results for ${testsResults.length} test(s)`));
558
+ try {
559
+ for (const testsPack of testsPacksArray) {
560
+ let testCaseIds = [];
561
+ const testsPoints = await this._getTestPointIdsByTCIds(this._planId, [
562
+ ...new Set(testsPack.map((t) => t.test.testCaseIds.map((id) => parseInt(id, 10))).flat()),
563
+ ]);
564
+ const testCaseResults = [];
565
+ for (const { test, testResult } of testsPack) {
566
+ testCaseIds = test.testCaseIds;
567
+ for (const id of testCaseIds) {
568
+ const testPoint = testsPoints.find((p) => p.testCaseId === parseInt(id, 10));
569
+ if (!testPoint) {
570
+ throw new Error(`No test points found for test case [${testCaseIds}]`);
571
+ }
572
+ else {
573
+ testCaseResults.push({
574
+ testCase: { id },
575
+ testPoint: { id: String(testPoint.point) },
576
+ testCaseTitle: test.title,
577
+ outcome: EAzureTestStatuses[testResult.status],
578
+ state: 'Completed',
579
+ durationInMs: testResult.duration,
580
+ errorMessage: testResult.error
581
+ ? `${test.title}: ${testResult.error?.message?.replace(/\u001b\[.*?m/g, '')}`
582
+ : undefined,
583
+ stackTrace: testResult.error?.stack?.replace(/\u001b\[.*?m/g, ''),
584
+ ...(testPoint.configurationId && {
585
+ configuration: { id: testPoint.configurationId, name: testPoint.configurationName },
586
+ }),
587
+ });
588
+ }
589
+ }
590
+ }
591
+ const testCaseResult = (await this._addReportingOverride(this._testApi).addTestResultsToTestRun(testCaseResults, this._projectName, runId));
592
+ if (!testCaseResult.result) {
593
+ throw new Error(`Failed to publish test result for test case [${testCaseIds.join(', ')}]`);
594
+ }
595
+ const testsWithAttachments = testsPack.filter((t) => t.testResult.attachments.length > 0);
596
+ if (this._uploadAttachments && testsWithAttachments.length > 0) {
597
+ this._log(chalk_1.default.gray(`Starting to uploading attachments for ${testsWithAttachments.length} test(s)`));
598
+ }
599
+ if (this._uploadAttachments && testsWithAttachments?.length > 0) {
600
+ const testResultsQuery = {
601
+ fields: [''],
602
+ results: testCaseResult.result.value?.map((r) => {
603
+ return { id: r.id, testRun: { id: r.testRun?.id } };
604
+ }),
605
+ };
606
+ const resultData = await this._testApi.getTestResultsByQuery(testResultsQuery, this._projectName);
607
+ for (const publishedTestResult of resultData.results) {
608
+ const testWithAttachments = testsWithAttachments.find((t) => t.test.testCaseIds.includes(publishedTestResult.testCase?.id));
609
+ if (testWithAttachments) {
610
+ await this._uploadAttachmentsFunc(testWithAttachments.testResult, publishedTestResult.id, testWithAttachments.test);
611
+ }
612
+ }
613
+ }
614
+ this._publishedResultsCount += testsPack.length;
615
+ this._log(chalk_1.default.gray(`Left to publish: ${testsResults.length - this._publishedResultsCount}`));
616
+ }
617
+ this._log(chalk_1.default.gray(`Test results published for ${this._publishedResultsCount} test(s)`));
618
+ this._resolvePublishResults();
619
+ }
620
+ catch (error) {
621
+ this._warning(chalk_1.default.red(error.message));
622
+ this._rejectPublishResults(error);
623
+ }
624
+ }
446
625
  }
447
626
  exports.default = AzureDevOpsReporter;
448
627
  //# sourceMappingURL=playwright-azure-reporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"playwright-azure-reporter.js","sourceRoot":"","sources":["../src/playwright-azure-reporter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAmC;AACnC,qCAAqC;AACrC,6DAA+C;AAU/C,kDAA0B;AAC1B,oDAA4B;AAC5B,2BAA8C;AAE9C,SAAgB,UAAU;IACxB,OAAO,gBAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAChD,CAAC;AAFD,gCAEC;AAED,SAAgB,OAAO;IACrB,OAAO,gBAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC;AAFD,0BAEC;AAED,IAAK,iBAMJ;AAND,WAAK,iBAAiB;IACpB,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;IACjB,uCAAkB,CAAA;IAClB,wCAAmB,CAAA;IACnB,2CAAsB,CAAA;AACxB,CAAC,EANI,iBAAiB,KAAjB,iBAAiB,QAMrB;AAED,MAAM,oBAAoB,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC;AAuEvE,MAAM,mBAAmB;IACf,OAAO,CAAiB;IACxB,OAAO,CAAY;IACnB,qBAAqB,GAAG,CAAC,CAAC;IAC1B,oBAAoB,GAAa,EAAE,CAAC;IACpC,UAAU,CAAU;IACpB,MAAM,C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AoB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAC1D,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,EAAE,EAAY,CAAC,CACxE,CAAC;wBAEF,IAAI,mBAAmB,EAAE;4BACvB,MAAM,IAAI,CAAC,sBAAsB,CAC/B,mBAAmB,CAAC,UAAU,EAC9B,mBAAmB,CAAC,EAAG,EACvB,mBAAmB,CAAC,IAAI,CACzB,CAAC;yBACH;qBACF;iBACF;gBAED,IAAI,CAAC,sBAAsB,IAAI,SAAS,CAAC,MAAM,CAAC;gBAChD,IAAI,CAAC,IAAI,CAAC,eAAK,CAAC,IAAI,CAAC,oBAAoB,YAAY,CAAC,MAAM,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC;aAChG;YACD,IAAI,CAAC,IAAI,CAAC,eAAK,CAAC,IAAI,CAAC,8BAA8B,IAAI,CAAC,sBAAsB,UAAU,CAAC,CAAC,CAAC;YAC3F,IAAI,CAAC,sBAAsB,EAAE,CAAC;SAC/B;QAAC,OAAO,KAAU,EAAE;YACnB,IAAI,CAAC,QAAQ,CAAC,eAAK,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACxC,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;SACnC;IACH,CAAC;CACF;AAED,kBAAe,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alex_neo/playwright-azure-reporter",
3
- "version": "1.3.0-beta.0",
3
+ "version": "1.4.0-beta.0",
4
4
  "description": "Playwright Azure Reporter",
5
5
  "main": "./dist/playwright-azure-reporter.js",
6
6
  "types": "./dist/playwright-azure-reporter.d.js",
@@ -35,12 +35,12 @@
35
35
  },
36
36
  "license": "ISC",
37
37
  "dependencies": {
38
- "azure-devops-node-api": "^11.1.1",
38
+ "azure-devops-node-api": "^11.2.0",
39
39
  "chalk": "^4.1.2",
40
40
  "cryptojs": "^2.5.3"
41
41
  },
42
42
  "devDependencies": {
43
- "@playwright/test": "^1.26.1",
43
+ "@playwright/test": "^1.29.1",
44
44
  "@typescript-eslint/eslint-plugin": "^5.27.1",
45
45
  "@typescript-eslint/eslint-plugin-tslint": "^5.27.1",
46
46
  "@typescript-eslint/parser": "^5.27.1",
@@ -26,8 +26,9 @@ const config: PlaywrightTestConfig = {
26
26
  environment: 'AQA',
27
27
  testRunTitle: 'Playwright Test Run',
28
28
  uploadAttachments: true,
29
- logging: true,
30
- attachmentsType: ['screenshot'],
29
+ logging: false,
30
+ attachmentsType: ['screenshot', 'trace'],
31
+ publishTestResultsMode: 'testRun',
31
32
  testRunConfig: {
32
33
  configurationIds: [1],
33
34
  owner: {
@@ -41,7 +42,7 @@ const config: PlaywrightTestConfig = {
41
42
  use: {
42
43
  screenshot: 'only-on-failure',
43
44
  actionTimeout: 0,
44
- trace: 'on-first-retry',
45
+ trace: 'retain-on-failure',
45
46
  },
46
47
  };
47
48
 
@@ -4,7 +4,7 @@ test.beforeEach(async ({ page }) => {
4
4
  await page.goto('https://playwright.dev/');
5
5
  });
6
6
 
7
- test.describe('Describe', () => {
7
+ test.describe.parallel('Describe', () => {
8
8
  test('[3] Should page opened', async ({ page }) => {
9
9
  await page.locator('text=Get started').click();
10
10
  await expect(page).toHaveTitle(/Getting started/);
@@ -17,15 +17,15 @@ test.describe('Describe', () => {
17
17
  await page.locator('text=Get started').click();
18
18
  await expect(page).toHaveTitle(/Getting started/);
19
19
  });
20
- test('[3] [7] [8] Awaiting for user input', async ({ page }) => {
20
+ test('[7] [8] Awaiting for user input', async ({ page }) => {
21
21
  await page.locator('text=Get started').click();
22
22
  await expect(page).toHaveTitle(/Getting started/);
23
23
  });
24
- test('[3,7,8] Awaiting for user input', async ({ page }) => {
24
+ test('[3,8] Awaiting for user input', async ({ page }) => {
25
25
  await page.locator('text=Get started').click();
26
26
  await expect(page).toHaveTitle(/Getting started/);
27
27
  });
28
- test('[3, 7, 8] Awaiting for user input', async ({ page }) => {
28
+ test('[3, 7] Awaiting for user input', async ({ page }) => {
29
29
  await page.locator('text=Get started').click();
30
30
  await expect(page).toHaveTitle(/Getting started/);
31
31
  });