@alex_neo/playwright-azure-reporter 1.4.0-beta.0 → 1.4.1

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,9 +1,4 @@
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))
1
+ ## [1.4.1](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.3.1-beta.0...v1.4.1) (2023-01-11)
7
2
 
8
3
 
9
4
 
package/README.md CHANGED
@@ -90,7 +90,6 @@ const config: PlaywrightTestConfig = {
90
90
  environment: 'AQA',
91
91
  logging: true,
92
92
  testRunTitle: 'Playwright Test Run',
93
- publishTestResultsMode: 'testRun',
94
93
  uploadAttachments: true,
95
94
  attachmentsType: ['screenshot', 'video', 'trace'],
96
95
  testRunConfig: {
@@ -119,7 +118,7 @@ Reporter options (\* - required):
119
118
  - \*`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)
120
119
  - \*`orgUrl` - Full url for your organization space. Example: `https://dev.azure.com/your-organization-name`
121
120
 
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}
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}
123
122
 
124
123
  - \*`projectName` - Name of your project (also can be got from run URL). Example: `https://dev.azure.com/alex-neo/SampleProject/` - **SampleProject**
125
124
  - \*`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**
@@ -130,7 +129,3 @@ Reporter options (\* - required):
130
129
  - `isDisabled` [true/false] - Disable reporter. Default: `false`.
131
130
  - `testRunTitle` - Title of test run using to create new test run. Default: `Playwright Test Run`.
132
131
  - `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,13 +5,11 @@ 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';
9
8
  export interface AzureReporterOptions {
10
9
  token: string;
11
10
  planId: number;
12
11
  orgUrl: string;
13
12
  projectName: string;
14
- publishTestResultsMode?: TPublishTestResults;
15
13
  logging?: boolean | undefined;
16
14
  isDisabled?: boolean | undefined;
17
15
  environment?: string | undefined;
@@ -21,31 +19,26 @@ export interface AzureReporterOptions {
21
19
  testRunConfig?: TTestRunConfig;
22
20
  }
23
21
  declare class AzureDevOpsReporter implements Reporter {
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;
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;
41
+ private azureClientOptions;
49
42
  constructor(options: AzureReporterOptions);
50
43
  _validateOptions(options: AzureReporterOptions): void;
51
44
  onBegin(): Promise<void>;
@@ -59,11 +52,9 @@ declare class AzureDevOpsReporter implements Reporter {
59
52
  private _createRun;
60
53
  private _removePublished;
61
54
  private _checkProject;
62
- private _getTestPointIdByTCId;
63
55
  private _getTestPointIdsByTCIds;
64
56
  private _addReportingOverride;
65
57
  private _uploadAttachmentsFunc;
66
58
  private _publishCaseResult;
67
- private _publishTestResults;
68
59
  }
69
60
  export default AzureDevOpsReporter;
@@ -41,136 +41,117 @@ function shortID() {
41
41
  return crypto_1.default.randomBytes(8).toString('hex');
42
42
  }
43
43
  exports.shortID = shortID;
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 = {}));
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 = {}));
52
52
  const attachmentTypesArray = ['screenshot', 'video', 'trace'];
53
53
  class AzureDevOpsReporter {
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 = {
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 = {};
73
+ azureClientOptions = {
78
74
  allowRetries: true,
79
75
  maxRetries: 20,
80
76
  };
81
- _publishTestResultsMode = 'testResult';
82
77
  constructor(options) {
83
- this._runIdPromise = new Promise((resolve, reject) => {
84
- this._resolveRunId = resolve;
85
- this._rejectRunId = reject;
78
+ this.runIdPromise = new Promise((resolve, reject) => {
79
+ this.resolveRunId = resolve;
80
+ this.rejectRunId = reject;
86
81
  })
87
82
  .then((runId) => {
88
83
  return runId;
89
84
  })
90
85
  .catch((error) => {
91
86
  this._warning(error);
92
- this._isDisabled = true;
93
- });
94
- this._publishResultsPromise = new Promise((resolve, reject) => {
95
- this._resolvePublishResults = resolve;
96
- this._rejectPublishResults = reject;
97
- })
98
- .then((runId) => {
99
- return runId;
100
- })
101
- .catch((error) => {
102
- this._warning(error);
103
- this._isDisabled = true;
87
+ this.isDisabled = true;
104
88
  });
105
89
  this._validateOptions(options);
106
90
  }
107
91
  _validateOptions(options) {
108
92
  if (options?.isDisabled) {
109
- this._isDisabled = true;
93
+ this.isDisabled = true;
110
94
  return;
111
95
  }
112
96
  if (!options?.orgUrl) {
113
97
  this._warning("'orgUrl' is not set. Reporting is disabled.");
114
- this._isDisabled = true;
98
+ this.isDisabled = true;
115
99
  return;
116
100
  }
117
101
  if (!options?.projectName) {
118
102
  this._warning("'projectName' is not set. Reporting is disabled.");
119
- this._isDisabled = true;
103
+ this.isDisabled = true;
120
104
  return;
121
105
  }
122
106
  if (!options?.planId) {
123
107
  this._warning("'planId' is not set. Reporting is disabled.");
124
- this._isDisabled = true;
108
+ this.isDisabled = true;
125
109
  return;
126
110
  }
127
111
  if (!options?.token) {
128
112
  this._warning("'token' is not set. Reporting is disabled.");
129
- this._isDisabled = true;
113
+ this.isDisabled = true;
130
114
  return;
131
115
  }
132
116
  if (options?.uploadAttachments) {
133
117
  if (!options?.attachmentsType) {
134
118
  this._warning("'attachmentsType' is not set. Attachments Type will be set to 'screenshot' by default.");
135
- this._attachmentsType = ['screenshot'];
119
+ this.attachmentsType = ['screenshot'];
136
120
  }
137
121
  else {
138
- this._attachmentsType = options.attachmentsType;
122
+ this.attachmentsType = options.attachmentsType;
139
123
  }
140
124
  }
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';
125
+ this.orgUrl = options.orgUrl;
126
+ this.projectName = options.projectName;
127
+ this.planId = options.planId;
128
+ this.logging = options.logging || false;
129
+ this.token = options.token;
130
+ this.environment = options?.environment || undefined;
131
+ this.testRunTitle =
132
+ `${this.environment ? `[${this.environment}]:` : ''} ${options?.testRunTitle || 'Playwright Test Run'}` ||
133
+ `${this.environment ? `[${this.environment}]:` : ''}Test plan ${this.planId}`;
134
+ this.uploadAttachments = options?.uploadAttachments || false;
135
+ this.connection = new azdev.WebApi(this.orgUrl, azdev.getPersonalAccessTokenHandler(this.token), this.azureClientOptions);
136
+ this.testRunConfig = options?.testRunConfig || undefined;
154
137
  }
155
138
  async onBegin() {
156
- if (this._isDisabled)
139
+ if (this.isDisabled)
157
140
  return;
158
141
  try {
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
- }
142
+ this.testApi = await this.connection.getTestApi();
143
+ const run = await this._createRun(this.testRunTitle);
144
+ if (run?.id) {
145
+ this.resolveRunId(run.id);
146
+ this._log(chalk_1.default.green(`Using run ${run.id} to publish test results`));
147
+ }
148
+ else {
149
+ this.isDisabled = true;
150
+ this.rejectRunId('Failed to create test run. Reporting is disabled.');
170
151
  }
171
152
  }
172
153
  catch (error) {
173
- this._isDisabled = true;
154
+ this.isDisabled = true;
174
155
  if (error.message.includes('401')) {
175
156
  this._warning('Failed to create test run. Check your token. Reporting is disabled.');
176
157
  }
@@ -185,69 +166,40 @@ class AzureDevOpsReporter {
185
166
  }
186
167
  }
187
168
  async onTestEnd(test, testResult) {
188
- if (this._isDisabled)
169
+ if (this.isDisabled)
189
170
  return;
190
171
  try {
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
- }
172
+ const runId = await this.runIdPromise;
173
+ if (!runId)
174
+ return;
175
+ this._logTestItem(test, testResult);
176
+ await this._publishCaseResult(test, testResult);
207
177
  }
208
178
  catch (error) {
209
179
  this._warning(`Failed to publish test result. \n ${error.message}`);
210
180
  }
211
181
  }
212
182
  async onEnd() {
213
- if (this._isDisabled)
183
+ if (this.isDisabled)
214
184
  return;
215
185
  try {
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);
186
+ const runId = await this.runIdPromise;
187
+ let prevCount = this.resultsToBePublished.length;
188
+ while (this.resultsToBePublished.length > 0) {
189
+ // need wait all results to be published
190
+ if (prevCount > this.resultsToBePublished.length) {
191
+ this._log(chalk_1.default.gray(`Waiting for all results to be published. Remaining ${this.resultsToBePublished.length} results`));
192
+ prevCount--;
237
193
  }
238
- else {
239
- this._isDisabled = true;
240
- this._rejectRunId('Failed to create test run. Reporting is disabled.');
241
- }
242
- await this._publishResultsPromise;
194
+ await new Promise((resolve) => setTimeout(resolve, 250));
243
195
  }
244
- if (this._publishedResultsCount === 0 && !runId) {
196
+ if (this.publishedResultsCount === 0 && !runId) {
245
197
  this._log(chalk_1.default.gray('No testcases were matched. Ensure that your tests are declared correctly.'));
246
198
  return;
247
199
  }
248
- if (!this._testApi)
249
- this._testApi = await this._connection.getTestApi();
250
- const runUpdatedResponse = await this._testApi.updateTestRun({ state: 'Completed' }, this._projectName, runId);
200
+ if (!this.testApi)
201
+ this.testApi = await this.connection.getTestApi();
202
+ const runUpdatedResponse = await this.testApi.updateTestRun({ state: 'Completed' }, this.projectName, runId);
251
203
  this._log(chalk_1.default.green(`Run ${runId} - ${runUpdatedResponse.state}`));
252
204
  }
253
205
  catch (error) {
@@ -258,7 +210,7 @@ class AzureDevOpsReporter {
258
210
  return true;
259
211
  }
260
212
  _log(message) {
261
- if (this._logging) {
213
+ if (this.logging) {
262
214
  console.log(chalk_1.default.magenta(`azure: ${message}`));
263
215
  }
264
216
  }
@@ -300,7 +252,7 @@ class AzureDevOpsReporter {
300
252
  }
301
253
  async _createRun(runName) {
302
254
  try {
303
- const isExists = await this._checkProject(this._projectName);
255
+ const isExists = await this._checkProject(this.projectName);
304
256
  if (!isExists) {
305
257
  return;
306
258
  }
@@ -308,16 +260,16 @@ class AzureDevOpsReporter {
308
260
  const runModel = {
309
261
  name: runName,
310
262
  automated: true,
311
- plan: { id: String(this._planId) },
312
- ...(this._testRunConfig
313
- ? this._testRunConfig
263
+ plan: { id: String(this.planId) },
264
+ ...(this.testRunConfig
265
+ ? this.testRunConfig
314
266
  : {
315
267
  configurationIds: [1],
316
268
  }),
317
269
  };
318
- if (!this._testApi)
319
- this._testApi = await this._connection.getTestApi();
320
- const adTestRun = await this._testApi.createTestRun(runModel, this._projectName);
270
+ if (!this.testApi)
271
+ this.testApi = await this.connection.getTestApi();
272
+ const adTestRun = await this.testApi.createTestRun(runModel, this.projectName);
321
273
  if (adTestRun?.id)
322
274
  return adTestRun;
323
275
  else
@@ -326,19 +278,19 @@ class AzureDevOpsReporter {
326
278
  }
327
279
  catch (error) {
328
280
  this._warning(chalk_1.default.red(error.message));
329
- this._isDisabled = true;
281
+ this.isDisabled = true;
330
282
  }
331
283
  }
332
284
  _removePublished(testAlias) {
333
- const resultIndex = this._testsAliasToBePublished.indexOf(testAlias);
285
+ const resultIndex = this.resultsToBePublished.indexOf(testAlias);
334
286
  if (resultIndex !== -1)
335
- this._testsAliasToBePublished.splice(resultIndex, 1);
287
+ this.resultsToBePublished.splice(resultIndex, 1);
336
288
  }
337
289
  async _checkProject(projectName) {
338
290
  try {
339
- if (!this._coreApi)
340
- this._coreApi = await this._connection.getCoreApi();
341
- const project = await this._coreApi.getProject(projectName);
291
+ if (!this.coreApi)
292
+ this.coreApi = await this.connection.getCoreApi();
293
+ const project = await this.coreApi.getProject(projectName);
342
294
  if (project)
343
295
  return project;
344
296
  else
@@ -346,24 +298,24 @@ class AzureDevOpsReporter {
346
298
  }
347
299
  catch (error) {
348
300
  this._warning(chalk_1.default.red(error.message));
349
- this._isDisabled = true;
301
+ this.isDisabled = true;
350
302
  }
351
303
  }
352
- async _getTestPointIdByTCId(planId, testcaseId) {
304
+ async _getTestPointIdsByTCIds(planId, testcaseIds) {
353
305
  const result = {};
354
306
  try {
355
307
  const pointsQuery = {
356
- pointsFilter: { testcaseIds: [testcaseId] },
308
+ pointsFilter: { testcaseIds },
357
309
  };
358
- if (!this._testApi)
359
- this._testApi = await this._connection.getTestApi();
360
- const pointsQueryResult = await this._testApi.getPointsByQuery(pointsQuery, this._projectName);
310
+ if (!this.testApi)
311
+ this.testApi = await this.connection.getTestApi();
312
+ const pointsQueryResult = await this.testApi.getPointsByQuery(pointsQuery, this.projectName);
361
313
  if (pointsQueryResult.points) {
362
314
  const findedPointWithConfiguration = pointsQueryResult.points.find((point) => point.testPlan &&
363
315
  point.testPlan.id &&
364
316
  parseInt(point.testPlan.id, 10) === planId &&
365
- (this._testRunConfig?.configurationIds?.length
366
- ? this._testRunConfig.configurationIds.includes(Number(point.configuration.id))
317
+ (this.testRunConfig?.configurationIds?.length
318
+ ? this.testRunConfig.configurationIds.includes(Number(point.configuration.id))
367
319
  : false));
368
320
  if (findedPointWithConfiguration) {
369
321
  result.point = findedPointWithConfiguration.id;
@@ -378,56 +330,7 @@ class AzureDevOpsReporter {
378
330
  }
379
331
  }
380
332
  if (!result?.point) {
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.`);
333
+ 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.`);
431
334
  }
432
335
  }
433
336
  catch (error) {
@@ -463,27 +366,24 @@ class AzureDevOpsReporter {
463
366
  };
464
367
  return api;
465
368
  };
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;
369
+ async _uploadAttachmentsFunc(testResult, caseId, testCaseId) {
370
+ this._log(chalk_1.default.gray(`Start upload attachments for test case [${testCaseId}]`));
371
+ const runId = await this.runIdPromise;
469
372
  const attachmentsResult = [];
470
- if (!runId) {
471
- throw new Error('Could not find test run id. Check, maybe testPlanId, what you specified, is incorrect.');
472
- }
473
373
  for (const attachment of testResult.attachments) {
474
374
  try {
475
- if (this._attachmentsType.includes(attachment.name)) {
375
+ if (this.attachmentsType.includes(attachment.name)) {
476
376
  if ((0, fs_1.existsSync)(attachment.path)) {
477
- const attachmentRequestModel = {
377
+ const attachments = {
478
378
  attachmentType: 'GeneralAttachment',
479
379
  fileName: `${attachment.name}-${createGuid()}.${attachment.contentType.split('/')[1]}`,
480
380
  stream: (0, fs_1.readFileSync)(attachment.path, { encoding: 'base64' }),
481
381
  };
482
- if (!this._testApi)
483
- this._testApi = await this._connection.getTestApi();
484
- const response = await this._testApi.createTestResultAttachment(attachmentRequestModel, this._projectName, runId, testCaseResultId);
382
+ if (!this.testApi)
383
+ this.testApi = await this.connection.getTestApi();
384
+ const response = await this.testApi.createTestResultAttachment(attachments, this.projectName, runId, caseId);
485
385
  if (!response?.id)
486
- throw new Error(`Failed to upload attachment for test: ${test.title}`);
386
+ throw new Error(`Failed to upload attachment for test case [${testCaseId}]`);
487
387
  attachmentsResult.push(response.url);
488
388
  }
489
389
  else {
@@ -495,7 +395,6 @@ class AzureDevOpsReporter {
495
395
  this._log(chalk_1.default.red(error.message));
496
396
  }
497
397
  }
498
- this._log(chalk_1.default.gray('Uploaded attachments'));
499
398
  return attachmentsResult;
500
399
  }
501
400
  async _publishCaseResult(test, testResult) {
@@ -504,11 +403,11 @@ class AzureDevOpsReporter {
504
403
  return;
505
404
  await Promise.all(caseIds.map(async (caseId) => {
506
405
  const testAlias = `${shortID()} - ${test.title}`;
507
- this._testsAliasToBePublished.push(testAlias);
406
+ this.resultsToBePublished.push(testAlias);
508
407
  try {
509
- const runId = await this._runIdPromise;
408
+ const runId = await this.runIdPromise;
510
409
  this._log(chalk_1.default.gray(`Start publishing: TC:${caseId} - ${test.title}`));
511
- const points = await this._getTestPointIdByTCId(this._planId, parseInt(caseId, 10));
410
+ const points = await this._getTestPointIdsByTCIds(this.planId, [parseInt(caseId, 10)]);
512
411
  if (!points.point) {
513
412
  this._removePublished(testAlias);
514
413
  throw new Error(`No test points found for test case [${caseIds}]`);
@@ -518,7 +417,7 @@ class AzureDevOpsReporter {
518
417
  testCase: { id: caseId },
519
418
  testPoint: { id: String(points.point) },
520
419
  testCaseTitle: test.title,
521
- outcome: EAzureTestStatuses[testResult.status],
420
+ outcome: AzureTestStatuses[testResult.status],
522
421
  state: 'Completed',
523
422
  durationInMs: testResult.duration,
524
423
  errorMessage: testResult.error
@@ -530,15 +429,15 @@ class AzureDevOpsReporter {
530
429
  }),
531
430
  },
532
431
  ];
533
- if (!this._testApi)
534
- this._testApi = await this._connection.getTestApi();
535
- const testCaseResult = (await this._addReportingOverride(this._testApi).addTestResultsToTestRun(results, this._projectName, runId));
432
+ if (!this.testApi)
433
+ this.testApi = await this.connection.getTestApi();
434
+ const testCaseResult = (await this._addReportingOverride(this.testApi).addTestResultsToTestRun(results, this.projectName, runId));
536
435
  if (!testCaseResult?.result)
537
436
  throw new Error(`Failed to publish test result for test case [${caseId}]`);
538
- if (this._uploadAttachments && testResult.attachments.length > 0)
539
- await this._uploadAttachmentsFunc(testResult, testCaseResult.result.value[0].id, test);
437
+ if (this.uploadAttachments && testResult.attachments.length > 0)
438
+ await this._uploadAttachmentsFunc(testResult, testCaseResult.result.value[0].id, caseId);
540
439
  this._removePublished(testAlias);
541
- this._publishedResultsCount++;
440
+ this.publishedResultsCount++;
542
441
  this._log(chalk_1.default.gray(`Result published: TC:${caseId} - ${test.title}`));
543
442
  return testCaseResult;
544
443
  }
@@ -548,80 +447,6 @@ class AzureDevOpsReporter {
548
447
  }
549
448
  }));
550
449
  }
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
- }
625
450
  }
626
451
  exports.default = AzureDevOpsReporter;
627
452
  //# 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;AAG9C,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,kBAMJ;AAND,WAAK,kBAAkB;IACrB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,wCAAkB,CAAA;IAClB,yCAAmB,CAAA;IACnB,4CAAsB,CAAA;AACxB,CAAC,EANI,kBAAkB,KAAlB,kBAAkB,QAMtB;AAED,MAAM,oBAAoB,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC;AAoFvE,MAAM,mBAAmB;IACf,QAAQ,CAAiB;IACzB,QAAQ,CAAY;IACpB,sBAAsB,GAAG,CAAC,CAAC;IAC3B,wBAAwB,GAAa,EAAE,CAAC;IACxC,yBAAyB,GAAgC,EAAE,CAAC;IAC5D,WAAW,CAAU;IACrB,OAAO,CAAU;IACjB,YAAY,CAAU;IACtB,YAAY,CAAU;IACtB,OAAO,GAAG,CAAC,CAAC;IACZ,QAAQ,GAAG,KAAK,CAAC;IACjB,WAAW,GAAG,KAAK,CAAC;IACpB,aAAa,GAAG,EAAE,CAAC;IACnB,kBAAkB,GAAG,KAAK,CAAC;IAC3B,gBAAgB,CAAmB;IACnC,MAAM,GAAW,EAAE,CAAC;IACpB,aAAa,CAAyB;IACtC,aAAa,G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iB,IAAI,UAAU,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;oBAC7D,MAAM,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,MAAM,CAAC,KAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;gBAE5F,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;gBACjC,IAAI,CAAC,qBAAqB,EAAE,CAAC;gBAC7B,IAAI,CAAC,IAAI,CAAC,eAAK,CAAC,IAAI,CAAC,wBAAwB,MAAM,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBACxE,OAAO,cAAc,CAAC;aACvB;YAAC,OAAO,KAAU,EAAE;gBACnB,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;gBACjC,IAAI,CAAC,QAAQ,CAAC,eAAK,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;aACzC;QACH,CAAC,CAAC,CACH,CAAC;IACJ,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.4.0-beta.0",
3
+ "version": "1.4.1",
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.2.0",
38
+ "azure-devops-node-api": "^11.1.1",
39
39
  "chalk": "^4.1.2",
40
40
  "cryptojs": "^2.5.3"
41
41
  },
42
42
  "devDependencies": {
43
- "@playwright/test": "^1.29.1",
43
+ "@playwright/test": "^1.26.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,9 +26,8 @@ const config: PlaywrightTestConfig = {
26
26
  environment: 'AQA',
27
27
  testRunTitle: 'Playwright Test Run',
28
28
  uploadAttachments: true,
29
- logging: false,
30
- attachmentsType: ['screenshot', 'trace'],
31
- publishTestResultsMode: 'testRun',
29
+ logging: true,
30
+ attachmentsType: ['screenshot'],
32
31
  testRunConfig: {
33
32
  configurationIds: [1],
34
33
  owner: {
@@ -42,7 +41,7 @@ const config: PlaywrightTestConfig = {
42
41
  use: {
43
42
  screenshot: 'only-on-failure',
44
43
  actionTimeout: 0,
45
- trace: 'retain-on-failure',
44
+ trace: 'on-first-retry',
46
45
  },
47
46
  };
48
47
 
@@ -4,7 +4,7 @@ test.beforeEach(async ({ page }) => {
4
4
  await page.goto('https://playwright.dev/');
5
5
  });
6
6
 
7
- test.describe.parallel('Describe', () => {
7
+ test.describe('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.parallel('Describe', () => {
17
17
  await page.locator('text=Get started').click();
18
18
  await expect(page).toHaveTitle(/Getting started/);
19
19
  });
20
- test('[7] [8] Awaiting for user input', async ({ page }) => {
20
+ test('[3] [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,8] Awaiting for user input', async ({ page }) => {
24
+ test('[3,7,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] Awaiting for user input', async ({ page }) => {
28
+ test('[3, 7, 8] 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
  });