@alex_neo/playwright-azure-reporter 1.4.1 → 1.4.3

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,7 +1,51 @@
1
+ ## [1.4.3](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.4.2...v1.4.3) (2023-02-08)
2
+
3
+
4
+
5
+ ## [1.4.2](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.4.1...v1.4.2) (2023-01-11)
6
+
7
+
8
+
9
+ ## [1.4.1-beta.0](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.4.0-beta.0...v1.4.1-beta.0) (2022-12-30)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * fixing some throwe error ([733e759](https://github.com/alexneo2003/playwright-azure-reporter/commit/733e759f82bf7dc17176af7f3ef04ce43593ceeb))
15
+
16
+
17
+
18
+ # [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)
19
+
20
+
21
+ ### Features
22
+
23
+ * publishTestResultsMode config to set mode when publish test results ([4e25019](https://github.com/alexneo2003/playwright-azure-reporter/commit/4e2501926beb4680c4ef770273847fae39c57b71))
24
+
25
+
26
+
1
27
  ## [1.4.1](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.3.1-beta.0...v1.4.1) (2023-01-11)
2
28
 
3
29
 
4
30
 
31
+ ## [1.4.1-beta.0](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.4.0-beta.0...v1.4.1-beta.0) (2022-12-30)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * fixing some throwe error ([733e759](https://github.com/alexneo2003/playwright-azure-reporter/commit/733e759f82bf7dc17176af7f3ef04ce43593ceeb))
37
+
38
+
39
+
40
+ # [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)
41
+
42
+
43
+ ### Features
44
+
45
+ * publishTestResultsMode config to set mode when publish test results ([4e25019](https://github.com/alexneo2003/playwright-azure-reporter/commit/4e2501926beb4680c4ef770273847fae39c57b71))
46
+
47
+
48
+
5
49
  ## [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)
6
50
 
7
51
 
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,26 +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;
41
- private azureClientOptions;
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;
42
49
  constructor(options: AzureReporterOptions);
43
50
  _validateOptions(options: AzureReporterOptions): void;
44
51
  onBegin(): Promise<void>;
@@ -52,9 +59,11 @@ declare class AzureDevOpsReporter implements Reporter {
52
59
  private _createRun;
53
60
  private _removePublished;
54
61
  private _checkProject;
62
+ private _getTestPointIdByTCId;
55
63
  private _getTestPointIdsByTCIds;
56
64
  private _addReportingOverride;
57
65
  private _uploadAttachmentsFunc;
58
66
  private _publishCaseResult;
67
+ private _publishTestResults;
59
68
  }
60
69
  export default AzureDevOpsReporter;
@@ -41,117 +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 = {};
73
- azureClientOptions = {
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 = {
74
78
  allowRetries: true,
75
79
  maxRetries: 20,
76
80
  };
81
+ _publishTestResultsMode = 'testResult';
77
82
  constructor(options) {
78
- this.runIdPromise = new Promise((resolve, reject) => {
79
- this.resolveRunId = resolve;
80
- this.rejectRunId = reject;
83
+ this._runIdPromise = new Promise((resolve, reject) => {
84
+ this._resolveRunId = resolve;
85
+ this._rejectRunId = reject;
81
86
  })
82
87
  .then((runId) => {
83
88
  return runId;
84
89
  })
85
90
  .catch((error) => {
86
91
  this._warning(error);
87
- this.isDisabled = true;
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;
88
104
  });
89
105
  this._validateOptions(options);
90
106
  }
91
107
  _validateOptions(options) {
92
108
  if (options?.isDisabled) {
93
- this.isDisabled = true;
109
+ this._isDisabled = true;
94
110
  return;
95
111
  }
96
112
  if (!options?.orgUrl) {
97
113
  this._warning("'orgUrl' is not set. Reporting is disabled.");
98
- this.isDisabled = true;
114
+ this._isDisabled = true;
99
115
  return;
100
116
  }
101
117
  if (!options?.projectName) {
102
118
  this._warning("'projectName' is not set. Reporting is disabled.");
103
- this.isDisabled = true;
119
+ this._isDisabled = true;
104
120
  return;
105
121
  }
106
122
  if (!options?.planId) {
107
123
  this._warning("'planId' is not set. Reporting is disabled.");
108
- this.isDisabled = true;
124
+ this._isDisabled = true;
109
125
  return;
110
126
  }
111
127
  if (!options?.token) {
112
128
  this._warning("'token' is not set. Reporting is disabled.");
113
- this.isDisabled = true;
129
+ this._isDisabled = true;
114
130
  return;
115
131
  }
116
132
  if (options?.uploadAttachments) {
117
133
  if (!options?.attachmentsType) {
118
134
  this._warning("'attachmentsType' is not set. Attachments Type will be set to 'screenshot' by default.");
119
- this.attachmentsType = ['screenshot'];
135
+ this._attachmentsType = ['screenshot'];
120
136
  }
121
137
  else {
122
- this.attachmentsType = options.attachmentsType;
138
+ this._attachmentsType = options.attachmentsType;
123
139
  }
124
140
  }
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;
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';
137
154
  }
138
155
  async onBegin() {
139
- if (this.isDisabled)
156
+ if (this._isDisabled)
140
157
  return;
141
158
  try {
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.');
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
+ }
151
170
  }
152
171
  }
153
172
  catch (error) {
154
- this.isDisabled = true;
173
+ this._isDisabled = true;
155
174
  if (error.message.includes('401')) {
156
175
  this._warning('Failed to create test run. Check your token. Reporting is disabled.');
157
176
  }
@@ -166,40 +185,69 @@ class AzureDevOpsReporter {
166
185
  }
167
186
  }
168
187
  async onTestEnd(test, testResult) {
169
- if (this.isDisabled)
188
+ if (this._isDisabled)
170
189
  return;
171
190
  try {
172
- const runId = await this.runIdPromise;
173
- if (!runId)
174
- return;
175
- this._logTestItem(test, testResult);
176
- 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
+ }
177
207
  }
178
208
  catch (error) {
179
209
  this._warning(`Failed to publish test result. \n ${error.message}`);
180
210
  }
181
211
  }
182
212
  async onEnd() {
183
- if (this.isDisabled)
213
+ if (this._isDisabled)
184
214
  return;
185
215
  try {
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--;
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);
237
+ }
238
+ else {
239
+ this._isDisabled = true;
240
+ this._rejectRunId('Failed to create test run. Reporting is disabled.');
193
241
  }
194
- await new Promise((resolve) => setTimeout(resolve, 250));
242
+ await this._publishResultsPromise;
195
243
  }
196
- if (this.publishedResultsCount === 0 && !runId) {
244
+ if (this._publishedResultsCount === 0 && !runId) {
197
245
  this._log(chalk_1.default.gray('No testcases were matched. Ensure that your tests are declared correctly.'));
198
246
  return;
199
247
  }
200
- if (!this.testApi)
201
- this.testApi = await this.connection.getTestApi();
202
- 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);
203
251
  this._log(chalk_1.default.green(`Run ${runId} - ${runUpdatedResponse.state}`));
204
252
  }
205
253
  catch (error) {
@@ -210,7 +258,7 @@ class AzureDevOpsReporter {
210
258
  return true;
211
259
  }
212
260
  _log(message) {
213
- if (this.logging) {
261
+ if (this._logging) {
214
262
  console.log(chalk_1.default.magenta(`azure: ${message}`));
215
263
  }
216
264
  }
@@ -252,7 +300,7 @@ class AzureDevOpsReporter {
252
300
  }
253
301
  async _createRun(runName) {
254
302
  try {
255
- const isExists = await this._checkProject(this.projectName);
303
+ const isExists = await this._checkProject(this._projectName);
256
304
  if (!isExists) {
257
305
  return;
258
306
  }
@@ -260,16 +308,16 @@ class AzureDevOpsReporter {
260
308
  const runModel = {
261
309
  name: runName,
262
310
  automated: true,
263
- plan: { id: String(this.planId) },
264
- ...(this.testRunConfig
265
- ? this.testRunConfig
311
+ plan: { id: String(this._planId) },
312
+ ...(this._testRunConfig
313
+ ? this._testRunConfig
266
314
  : {
267
315
  configurationIds: [1],
268
316
  }),
269
317
  };
270
- if (!this.testApi)
271
- this.testApi = await this.connection.getTestApi();
272
- 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);
273
321
  if (adTestRun?.id)
274
322
  return adTestRun;
275
323
  else
@@ -278,19 +326,19 @@ class AzureDevOpsReporter {
278
326
  }
279
327
  catch (error) {
280
328
  this._warning(chalk_1.default.red(error.message));
281
- this.isDisabled = true;
329
+ this._isDisabled = true;
282
330
  }
283
331
  }
284
332
  _removePublished(testAlias) {
285
- const resultIndex = this.resultsToBePublished.indexOf(testAlias);
333
+ const resultIndex = this._testsAliasToBePublished.indexOf(testAlias);
286
334
  if (resultIndex !== -1)
287
- this.resultsToBePublished.splice(resultIndex, 1);
335
+ this._testsAliasToBePublished.splice(resultIndex, 1);
288
336
  }
289
337
  async _checkProject(projectName) {
290
338
  try {
291
- if (!this.coreApi)
292
- this.coreApi = await this.connection.getCoreApi();
293
- 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);
294
342
  if (project)
295
343
  return project;
296
344
  else
@@ -298,24 +346,24 @@ class AzureDevOpsReporter {
298
346
  }
299
347
  catch (error) {
300
348
  this._warning(chalk_1.default.red(error.message));
301
- this.isDisabled = true;
349
+ this._isDisabled = true;
302
350
  }
303
351
  }
304
- async _getTestPointIdsByTCIds(planId, testcaseIds) {
352
+ async _getTestPointIdByTCId(planId, testcaseId) {
305
353
  const result = {};
306
354
  try {
307
355
  const pointsQuery = {
308
- pointsFilter: { testcaseIds },
356
+ pointsFilter: { testcaseIds: [testcaseId] },
309
357
  };
310
- if (!this.testApi)
311
- this.testApi = await this.connection.getTestApi();
312
- 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);
313
361
  if (pointsQueryResult.points) {
314
362
  const findedPointWithConfiguration = pointsQueryResult.points.find((point) => point.testPlan &&
315
363
  point.testPlan.id &&
316
364
  parseInt(point.testPlan.id, 10) === planId &&
317
- (this.testRunConfig?.configurationIds?.length
318
- ? this.testRunConfig.configurationIds.includes(Number(point.configuration.id))
365
+ (this._testRunConfig?.configurationIds?.length
366
+ ? this._testRunConfig.configurationIds.includes(Number(point.configuration.id))
319
367
  : false));
320
368
  if (findedPointWithConfiguration) {
321
369
  result.point = findedPointWithConfiguration.id;
@@ -330,7 +378,56 @@ class AzureDevOpsReporter {
330
378
  }
331
379
  }
332
380
  if (!result?.point) {
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.`);
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
+ this._warning(`Could not find test point for test cases [${testcaseIds.join(',')}] associated with test plan ${this._planId}. Check, maybe testPlanId, what you specified, is incorrect.`);
334
431
  }
335
432
  }
336
433
  catch (error) {
@@ -366,24 +463,27 @@ class AzureDevOpsReporter {
366
463
  };
367
464
  return api;
368
465
  };
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;
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;
372
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
+ }
373
473
  for (const attachment of testResult.attachments) {
374
474
  try {
375
- if (this.attachmentsType.includes(attachment.name)) {
475
+ if (this._attachmentsType.includes(attachment.name)) {
376
476
  if ((0, fs_1.existsSync)(attachment.path)) {
377
- const attachments = {
477
+ const attachmentRequestModel = {
378
478
  attachmentType: 'GeneralAttachment',
379
479
  fileName: `${attachment.name}-${createGuid()}.${attachment.contentType.split('/')[1]}`,
380
480
  stream: (0, fs_1.readFileSync)(attachment.path, { encoding: 'base64' }),
381
481
  };
382
- if (!this.testApi)
383
- this.testApi = await this.connection.getTestApi();
384
- 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);
385
485
  if (!response?.id)
386
- throw new Error(`Failed to upload attachment for test case [${testCaseId}]`);
486
+ throw new Error(`Failed to upload attachment for test: ${test.title}`);
387
487
  attachmentsResult.push(response.url);
388
488
  }
389
489
  else {
@@ -395,6 +495,7 @@ class AzureDevOpsReporter {
395
495
  this._log(chalk_1.default.red(error.message));
396
496
  }
397
497
  }
498
+ this._log(chalk_1.default.gray('Uploaded attachments'));
398
499
  return attachmentsResult;
399
500
  }
400
501
  async _publishCaseResult(test, testResult) {
@@ -403,11 +504,11 @@ class AzureDevOpsReporter {
403
504
  return;
404
505
  await Promise.all(caseIds.map(async (caseId) => {
405
506
  const testAlias = `${shortID()} - ${test.title}`;
406
- this.resultsToBePublished.push(testAlias);
507
+ this._testsAliasToBePublished.push(testAlias);
407
508
  try {
408
- const runId = await this.runIdPromise;
509
+ const runId = await this._runIdPromise;
409
510
  this._log(chalk_1.default.gray(`Start publishing: TC:${caseId} - ${test.title}`));
410
- const points = await this._getTestPointIdsByTCIds(this.planId, [parseInt(caseId, 10)]);
511
+ const points = await this._getTestPointIdByTCId(this._planId, parseInt(caseId, 10));
411
512
  if (!points.point) {
412
513
  this._removePublished(testAlias);
413
514
  throw new Error(`No test points found for test case [${caseIds}]`);
@@ -417,7 +518,7 @@ class AzureDevOpsReporter {
417
518
  testCase: { id: caseId },
418
519
  testPoint: { id: String(points.point) },
419
520
  testCaseTitle: test.title,
420
- outcome: AzureTestStatuses[testResult.status],
521
+ outcome: EAzureTestStatuses[testResult.status],
421
522
  state: 'Completed',
422
523
  durationInMs: testResult.duration,
423
524
  errorMessage: testResult.error
@@ -429,15 +530,15 @@ class AzureDevOpsReporter {
429
530
  }),
430
531
  },
431
532
  ];
432
- if (!this.testApi)
433
- this.testApi = await this.connection.getTestApi();
434
- 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));
435
536
  if (!testCaseResult?.result)
436
537
  throw new Error(`Failed to publish test result for test case [${caseId}]`);
437
- if (this.uploadAttachments && testResult.attachments.length > 0)
438
- 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);
439
540
  this._removePublished(testAlias);
440
- this.publishedResultsCount++;
541
+ this._publishedResultsCount++;
441
542
  this._log(chalk_1.default.gray(`Result published: TC:${caseId} - ${test.title}`));
442
543
  return testCaseResult;
443
544
  }
@@ -447,6 +548,83 @@ class AzureDevOpsReporter {
447
548
  }
448
549
  }));
449
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
+ this._warning(`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
+ if (testCaseResults.length === 0) {
592
+ continue;
593
+ }
594
+ const testCaseResult = (await this._addReportingOverride(this._testApi).addTestResultsToTestRun(testCaseResults, this._projectName, runId));
595
+ if (!testCaseResult.result) {
596
+ this._warning(`Failed to publish test result for test case [${testCaseIds.join(', ')}]`);
597
+ }
598
+ const testsWithAttachments = testsPack.filter((t) => t.testResult.attachments.length > 0);
599
+ if (this._uploadAttachments && testsWithAttachments.length > 0) {
600
+ this._log(chalk_1.default.gray(`Starting to uploading attachments for ${testsWithAttachments.length} test(s)`));
601
+ }
602
+ if (this._uploadAttachments && testsWithAttachments?.length > 0) {
603
+ const testResultsQuery = {
604
+ fields: [''],
605
+ results: testCaseResult.result.value?.map((r) => {
606
+ return { id: r.id, testRun: { id: r.testRun?.id } };
607
+ }),
608
+ };
609
+ const resultData = await this._testApi.getTestResultsByQuery(testResultsQuery, this._projectName);
610
+ for (const publishedTestResult of resultData.results) {
611
+ const testWithAttachments = testsWithAttachments.find((t) => t.test.testCaseIds.includes(publishedTestResult.testCase?.id));
612
+ if (testWithAttachments) {
613
+ await this._uploadAttachmentsFunc(testWithAttachments.testResult, publishedTestResult.id, testWithAttachments.test);
614
+ }
615
+ }
616
+ }
617
+ this._publishedResultsCount += testsPack.length;
618
+ this._log(chalk_1.default.gray(`Left to publish: ${testsResults.length - this._publishedResultsCount}`));
619
+ }
620
+ this._log(chalk_1.default.gray(`Test results published for ${this._publishedResultsCount} test(s)`));
621
+ this._resolvePublishResults();
622
+ }
623
+ catch (error) {
624
+ this._warning(chalk_1.default.red(error.message));
625
+ this._rejectPublishResults(error);
626
+ }
627
+ }
450
628
  }
451
629
  exports.default = AzureDevOpsReporter;
452
630
  //# 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,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,CAAU;IAChB,WAAW,CAAU;IACrB,WAAW,CAAU;IACrB,MAAM,GAAG,CAAC,CAAC;IACX,OAAO,GAAG,KAAK,CAAC;IAChB,UAAU,GAAG,KAAK,CAAC;IACnB,YAAY,GAAG,EAAE,CAAC;IAClB,iBAAiB,GAAG,KAAK,CAAC;IAC1B,eAAe,CAAmB;IAClC,KAAK,GAAW,EAAE,CAAC;IACnB,YAAY,CAAyB;IACrC,YAAY,GAA4B,GAAG,EA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AC,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.4.1",
3
+ "version": "1.4.3",
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,11 @@
35
35
  },
36
36
  "license": "ISC",
37
37
  "dependencies": {
38
- "azure-devops-node-api": "^11.1.1",
39
- "chalk": "^4.1.2",
40
- "cryptojs": "^2.5.3"
38
+ "azure-devops-node-api": "^11.2.0",
39
+ "chalk": "^4.1.2"
41
40
  },
42
41
  "devDependencies": {
43
- "@playwright/test": "^1.26.1",
42
+ "@playwright/test": "^1.29.1",
44
43
  "@typescript-eslint/eslint-plugin": "^5.27.1",
45
44
  "@typescript-eslint/eslint-plugin-tslint": "^5.27.1",
46
45
  "@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
  });