@alex_neo/playwright-azure-reporter 1.0.4 → 1.1.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 +9 -0
- package/README.md +26 -23
- package/azure.config.json +4 -4
- package/dist/playwright-azure-reporter.d.ts +25 -19
- package/dist/playwright-azure-reporter.js +340 -195
- package/dist/playwright-azure-reporter.js.map +1 -1
- package/package.json +10 -5
- package/playwright.config.ts +5 -33
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# [1.1.0](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.0.4...v1.1.0) (2022-07-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* added attachmentsType, full code refactoring ([b6e5c0f](https://github.com/alexneo2003/playwright-azure-reporter/commit/b6e5c0f364ff03595e6aef8240aca36ab7d91569))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ npm install @alex_neo/playwright-azure-reporter
|
|
|
9
9
|
## Usage
|
|
10
10
|
You must register an ID already existing test cases from Azure DevOps before running tests.
|
|
11
11
|
|
|
12
|
-
**You need write testCaseId
|
|
12
|
+
> **You need write testCaseId wraped in square brackets at the test name.**
|
|
13
13
|
|
|
14
14
|
For example:
|
|
15
15
|
|
|
@@ -32,17 +32,6 @@ describe('Test suite', () => {
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
```
|
|
36
|
-
You can use external file with Azure DevOps config values
|
|
37
|
-
|
|
38
|
-
```azure.config.json```
|
|
39
|
-
```json
|
|
40
|
-
{
|
|
41
|
-
"token": "AZURE-TOKEN",
|
|
42
|
-
"orgUrl": "https://dev.azure.com/alex-neo",
|
|
43
|
-
"projectName": "SampleProject",
|
|
44
|
-
"testPlanId": 4
|
|
45
|
-
}
|
|
46
35
|
```
|
|
47
36
|
|
|
48
37
|
Configure Playwright Azure Reporter with `playwright-azure-reporter` package.
|
|
@@ -51,30 +40,41 @@ Configure Playwright Azure Reporter with `playwright-azure-reporter` package.
|
|
|
51
40
|
```typescript
|
|
52
41
|
import { PlaywrightTestConfig } from '@playwright/test'
|
|
53
42
|
import azureConfig from './azure.config.json'
|
|
43
|
+
import { AzureReporterOptions } from './src/playwright-azure-reporter'
|
|
54
44
|
|
|
45
|
+
/**
|
|
46
|
+
* See https://playwright.dev/docs/test-configuration.
|
|
47
|
+
*/
|
|
55
48
|
const config: PlaywrightTestConfig = {
|
|
56
49
|
testDir: './tests',
|
|
57
50
|
timeout: 30 * 1000,
|
|
51
|
+
expect: {
|
|
52
|
+
timeout: 5000
|
|
53
|
+
},
|
|
54
|
+
forbidOnly: !!process.env.CI,
|
|
55
|
+
retries: process.env.CI ? 2 : 0,
|
|
56
|
+
workers: process.env.CI ? 1 : undefined,
|
|
58
57
|
reporter: [
|
|
59
58
|
['list'],
|
|
60
59
|
[
|
|
61
60
|
'@alex_neo/playwright-azure-reporter',
|
|
62
61
|
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
environment: '
|
|
62
|
+
orgUrl: "https://dev.azure.com/your-organization-name",
|
|
63
|
+
token: "AZURE-TOKEN",
|
|
64
|
+
planId: 44,
|
|
65
|
+
projectName: "SampleSample",
|
|
66
|
+
environment: 'AQA',
|
|
68
67
|
testRunTitle: 'Playwright Test Run',
|
|
69
|
-
uploadAttachments: true
|
|
70
|
-
|
|
71
|
-
}
|
|
68
|
+
uploadAttachments: true,
|
|
69
|
+
attachmentsType: ['screenshot', 'video', 'trace'],
|
|
70
|
+
} as AzureReporterOptions
|
|
72
71
|
]
|
|
73
72
|
],
|
|
74
73
|
use: {
|
|
75
74
|
screenshot: 'only-on-failure',
|
|
75
|
+
actionTimeout: 0,
|
|
76
|
+
trace: 'on-first-retry'
|
|
76
77
|
}
|
|
77
|
-
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
export default config
|
|
@@ -86,11 +86,14 @@ export default config
|
|
|
86
86
|
Reporter options (* - required):
|
|
87
87
|
|
|
88
88
|
- *`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)
|
|
89
|
-
- *`orgUrl` - Full url for your organization space. Example: `https://dev.azure.com/
|
|
89
|
+
- *`orgUrl` - Full url for your organization space. Example: `https://dev.azure.com/your-organization-name`
|
|
90
|
+
|
|
91
|
+
> 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}
|
|
90
92
|
- *`projectName` - Name of your project (also can be got from run URL). Example: `https://dev.azure.com/alex-neo/SampleProject/` - __SampleProject__
|
|
91
93
|
- *`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__
|
|
92
94
|
- `environment` - Any string that will be used as environment name. Will be used as prefix for all test runs. Default: `undefined`. Example: `QA`
|
|
93
95
|
- `logging` [true/false] - Enabled debug logging from reporter or not. Default: `true`.
|
|
94
96
|
- `uploadAttachments` [true/false] - Uploading attachments (screenshot/video) after test ended. Default: `false`.
|
|
97
|
+
- `attachmentsType` - List of attachments types that will be uploaded. Default: `['screenshot']`.
|
|
95
98
|
- `isDisabled` [true/false] - Disable reporter. Default: `false`.
|
|
96
|
-
- `testRunTitle` - Title of test run. Default: `Playwright Test Run`.
|
|
99
|
+
- `testRunTitle` - Title of test run using to create new test run. Default: `Playwright Test Run`.
|
package/azure.config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"token": "
|
|
3
|
-
"orgUrl": "https://dev.azure.com/
|
|
2
|
+
"token": "token",
|
|
3
|
+
"orgUrl": "https://dev.azure.com/your-organization-name",
|
|
4
4
|
"projectName": "SampleProject",
|
|
5
|
-
"testPlanId":
|
|
6
|
-
}
|
|
5
|
+
"testPlanId": 44
|
|
6
|
+
}
|
|
@@ -1,33 +1,38 @@
|
|
|
1
1
|
import { Reporter, TestCase, TestResult } from '@playwright/test/reporter';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export declare function createGuid(): string;
|
|
3
|
+
declare const attachmentTypesArray: readonly ["screenshot", "video", "trace"];
|
|
4
|
+
declare type TAttachmentType = Array<typeof attachmentTypesArray[number]>;
|
|
5
|
+
export interface AzureReporterOptions {
|
|
4
6
|
token: string;
|
|
5
7
|
planId: number;
|
|
6
8
|
orgUrl: string;
|
|
7
|
-
connection: WebApi;
|
|
8
9
|
projectName: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
isDisabled?: boolean;
|
|
10
|
+
logging?: boolean | undefined;
|
|
11
|
+
isDisabled?: boolean | undefined;
|
|
12
12
|
environment?: string | undefined;
|
|
13
|
-
testRunTitle
|
|
14
|
-
uploadAttachments?: boolean;
|
|
13
|
+
testRunTitle?: string | undefined;
|
|
14
|
+
uploadAttachments?: boolean | undefined;
|
|
15
|
+
attachmentsType?: TAttachmentType | undefined;
|
|
15
16
|
}
|
|
16
|
-
declare class
|
|
17
|
+
declare class AzureDevOpsReporter implements Reporter {
|
|
17
18
|
private testApi;
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private runId?;
|
|
21
|
-
private isDisabled;
|
|
19
|
+
private coreApi;
|
|
20
|
+
private _options;
|
|
22
21
|
private publishedResultsCount;
|
|
23
22
|
private resultsToBePublished;
|
|
24
|
-
private orgUrl;
|
|
25
23
|
private connection;
|
|
24
|
+
private orgUrl;
|
|
26
25
|
private projectName;
|
|
27
|
-
private environment
|
|
26
|
+
private environment?;
|
|
27
|
+
private planId;
|
|
28
|
+
private runId;
|
|
28
29
|
private logging;
|
|
30
|
+
private isDisabled;
|
|
29
31
|
private testRunTitle;
|
|
30
|
-
|
|
32
|
+
private uploadAttachments;
|
|
33
|
+
private attachmentsType?;
|
|
34
|
+
private token;
|
|
35
|
+
constructor(options?: AzureReporterOptions);
|
|
31
36
|
onBegin(): Promise<void>;
|
|
32
37
|
onTestEnd(test: TestCase, testResult: TestResult): Promise<void>;
|
|
33
38
|
onEnd(): Promise<void>;
|
|
@@ -36,10 +41,11 @@ declare class PlaywrightReporter implements Reporter {
|
|
|
36
41
|
private logTestItem;
|
|
37
42
|
private createRun;
|
|
38
43
|
private removePublished;
|
|
44
|
+
private checkProject;
|
|
39
45
|
private getTestPointIdsByTCIds;
|
|
40
46
|
private addReportingOverride;
|
|
41
|
-
private
|
|
42
|
-
private
|
|
47
|
+
private uploadAttachmentsFunc;
|
|
48
|
+
private awaitForRunId;
|
|
43
49
|
private publishCaseResult;
|
|
44
50
|
}
|
|
45
|
-
export default
|
|
51
|
+
export default AzureDevOpsReporter;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
3
|
if (k2 === undefined) k2 = k;
|
|
8
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -66,26 +62,41 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
66
62
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
67
63
|
};
|
|
68
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
|
+
exports.createGuid = void 0;
|
|
69
66
|
var azdev = __importStar(require("azure-devops-node-api"));
|
|
70
67
|
var chalk_1 = __importDefault(require("chalk"));
|
|
71
68
|
var fs_1 = require("fs");
|
|
69
|
+
var crypto_1 = __importDefault(require("crypto"));
|
|
70
|
+
function createGuid() {
|
|
71
|
+
return crypto_1.default.randomBytes(16).toString('hex');
|
|
72
|
+
}
|
|
73
|
+
exports.createGuid = createGuid;
|
|
72
74
|
var Statuses = {
|
|
73
75
|
passed: 'Passed',
|
|
74
76
|
failed: 'Failed',
|
|
75
77
|
skipped: 'Paused',
|
|
76
78
|
timedOut: 'Failed'
|
|
77
79
|
};
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
var attachmentTypesArray = [
|
|
81
|
+
'screenshot',
|
|
82
|
+
'video',
|
|
83
|
+
'trace',
|
|
84
|
+
];
|
|
85
|
+
var AzureDevOpsReporter = /** @class */ (function () {
|
|
86
|
+
function AzureDevOpsReporter(options) {
|
|
87
|
+
if (options === void 0) { options = {}; }
|
|
82
88
|
this.publishedResultsCount = 0;
|
|
83
89
|
this.resultsToBePublished = [];
|
|
90
|
+
this.planId = 0;
|
|
84
91
|
this.logging = true;
|
|
92
|
+
this.isDisabled = false;
|
|
93
|
+
this.testRunTitle = '';
|
|
94
|
+
this.uploadAttachments = false;
|
|
95
|
+
this.token = '';
|
|
85
96
|
this.addReportingOverride = function (api) {
|
|
97
|
+
// https://github.com/microsoft/azure-devops-node-api/issues/318#issuecomment-498802402
|
|
86
98
|
api.addTestResultsToTestRun = function (results, projectName, runId) {
|
|
87
99
|
var _this = this;
|
|
88
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
89
100
|
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
90
101
|
var routeValues, verData, url, options, res, err_1;
|
|
91
102
|
return __generator(this, function (_a) {
|
|
@@ -119,241 +130,336 @@ var PlaywrightReporter = /** @class */ (function () {
|
|
|
119
130
|
};
|
|
120
131
|
return api;
|
|
121
132
|
};
|
|
122
|
-
this.
|
|
123
|
-
this.orgUrl = _options.orgUrl;
|
|
124
|
-
this.projectName = _options.projectName;
|
|
125
|
-
this.environment = _options.environment || undefined;
|
|
126
|
-
this.planId = _options.planId;
|
|
127
|
-
this.logging = _options.logging
|
|
128
|
-
this.isDisabled = _options.isDisabled || false;
|
|
129
|
-
this.testRunTitle = "".concat(this.environment ? "[".concat(this.environment, "]:") : '', " ").concat(_options.testRunTitle || 'Playwright Test Run') ||
|
|
133
|
+
this._options = options;
|
|
134
|
+
this.orgUrl = this._options.orgUrl;
|
|
135
|
+
this.projectName = this._options.projectName;
|
|
136
|
+
this.environment = this._options.environment || undefined;
|
|
137
|
+
this.planId = this._options.planId;
|
|
138
|
+
this.logging = (typeof this._options.logging === 'undefined') ? true : this._options.logging;
|
|
139
|
+
this.isDisabled = this._options.isDisabled || false;
|
|
140
|
+
this.testRunTitle = "".concat(this.environment ? "[".concat(this.environment, "]:") : '', " ").concat(this._options.testRunTitle || 'Playwright Test Run') ||
|
|
130
141
|
"".concat(this.environment ? "[".concat(this.environment, "]:") : '', "Test plan ").concat(this.planId);
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
133
|
-
|
|
134
|
-
|
|
142
|
+
this.uploadAttachments = this._options.uploadAttachments || false;
|
|
143
|
+
this.attachmentsType = this._options.attachmentsType;
|
|
144
|
+
this.token = this._options.token;
|
|
145
|
+
if (!this.orgUrl || this.orgUrl.length === 0) {
|
|
146
|
+
this.log(chalk_1.default.yellow("'orgUrl' is not set. Reporting is disabled."));
|
|
135
147
|
this.isDisabled = true;
|
|
136
148
|
return;
|
|
137
149
|
}
|
|
138
|
-
if (!this.projectName ||
|
|
139
|
-
this.log(
|
|
150
|
+
if (!this.projectName || this.projectName.length === 0) {
|
|
151
|
+
this.log(chalk_1.default.yellow("'projectName' is not set. Reporting is disabled."));
|
|
140
152
|
this.isDisabled = true;
|
|
141
153
|
return;
|
|
142
154
|
}
|
|
143
|
-
if (!this.planId) {
|
|
144
|
-
this.log(
|
|
155
|
+
if (!this.planId || this.planId === 0) {
|
|
156
|
+
this.log(chalk_1.default.yellow("'planId' is not set. Reporting is disabled."));
|
|
145
157
|
this.isDisabled = true;
|
|
146
158
|
return;
|
|
147
159
|
}
|
|
148
|
-
if (!this.
|
|
149
|
-
this.log(
|
|
160
|
+
if (!this.token || this.token.length === 0) {
|
|
161
|
+
this.log(chalk_1.default.yellow("'token' is not set. Reporting is disabled."));
|
|
150
162
|
this.isDisabled = true;
|
|
151
163
|
}
|
|
164
|
+
if (this.uploadAttachments) {
|
|
165
|
+
if (!this.attachmentsType) {
|
|
166
|
+
this.log(chalk_1.default.yellow("'attachmentsType' is not set. Attachments Type will be set to 'screenshot' by default."));
|
|
167
|
+
this.attachmentsType = ['screenshot'];
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
this.connection = new azdev.WebApi(this.orgUrl, azdev.getPersonalAccessTokenHandler(this.token));
|
|
152
171
|
}
|
|
153
|
-
|
|
172
|
+
AzureDevOpsReporter.prototype.onBegin = function () {
|
|
154
173
|
return __awaiter(this, void 0, void 0, function () {
|
|
155
174
|
var _a;
|
|
156
175
|
var _this = this;
|
|
157
176
|
return __generator(this, function (_b) {
|
|
158
177
|
switch (_b.label) {
|
|
159
178
|
case 0:
|
|
160
|
-
if (this.isDisabled)
|
|
179
|
+
if (this.isDisabled)
|
|
161
180
|
return [2 /*return*/];
|
|
162
|
-
}
|
|
163
181
|
_a = this;
|
|
164
182
|
return [4 /*yield*/, this.connection.getTestApi()];
|
|
165
183
|
case 1:
|
|
166
184
|
_a.testApi = _b.sent();
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
185
|
+
this.createRun(this.testRunTitle).then(function (run) {
|
|
186
|
+
if (run) {
|
|
187
|
+
_this.runId = run.id;
|
|
188
|
+
_this.log(chalk_1.default.green("Using run ".concat(_this.runId, " to publish test results")));
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
_this.isDisabled = true;
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
return [2 /*return*/];
|
|
177
195
|
}
|
|
178
196
|
});
|
|
179
197
|
});
|
|
180
198
|
};
|
|
181
|
-
|
|
199
|
+
AzureDevOpsReporter.prototype.onTestEnd = function (test, testResult) {
|
|
182
200
|
return __awaiter(this, void 0, void 0, function () {
|
|
201
|
+
var _this = this;
|
|
183
202
|
return __generator(this, function (_a) {
|
|
184
|
-
|
|
185
|
-
return [
|
|
203
|
+
switch (_a.label) {
|
|
204
|
+
case 0: return [4 /*yield*/, this.awaitForRunId().catch(function (e) {
|
|
205
|
+
_this.log(chalk_1.default.red(e));
|
|
206
|
+
})];
|
|
207
|
+
case 1:
|
|
208
|
+
_a.sent();
|
|
209
|
+
if (this.isDisabled)
|
|
210
|
+
return [2 /*return*/];
|
|
211
|
+
this.logTestItem(test, testResult);
|
|
212
|
+
return [4 /*yield*/, this.publishCaseResult(test, testResult)];
|
|
213
|
+
case 2:
|
|
214
|
+
_a.sent();
|
|
215
|
+
return [2 /*return*/];
|
|
186
216
|
}
|
|
187
|
-
return [2 /*return*/, this.publishCaseResult(test, testResult).then(alwaysUndefined)];
|
|
188
217
|
});
|
|
189
218
|
});
|
|
190
219
|
};
|
|
191
|
-
|
|
220
|
+
AzureDevOpsReporter.prototype.onEnd = function () {
|
|
192
221
|
return __awaiter(this, void 0, void 0, function () {
|
|
193
|
-
var prevCount, runUpdate,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
222
|
+
var prevCount, runUpdate, _a, runUpdatedResponse, err_2;
|
|
223
|
+
var _this = this;
|
|
224
|
+
return __generator(this, function (_b) {
|
|
225
|
+
switch (_b.label) {
|
|
226
|
+
case 0: return [4 /*yield*/, this.awaitForRunId().catch(function (e) {
|
|
227
|
+
_this.log(chalk_1.default.red(e));
|
|
228
|
+
})];
|
|
229
|
+
case 1:
|
|
230
|
+
_b.sent();
|
|
231
|
+
if (this.isDisabled)
|
|
198
232
|
return [2 /*return*/];
|
|
199
|
-
}
|
|
200
233
|
prevCount = this.resultsToBePublished.length;
|
|
201
|
-
|
|
202
|
-
case
|
|
203
|
-
if (!(this.resultsToBePublished.length > 0)) return [3 /*break*/,
|
|
234
|
+
_b.label = 2;
|
|
235
|
+
case 2:
|
|
236
|
+
if (!(this.resultsToBePublished.length > 0)) return [3 /*break*/, 4];
|
|
204
237
|
// need wait all results to be published
|
|
205
238
|
if (prevCount > this.resultsToBePublished.length) {
|
|
206
|
-
this.log(
|
|
239
|
+
this.log(chalk_1.default.gray("Waiting for all results to be published. Remaining ".concat(this.resultsToBePublished.length, " results")));
|
|
207
240
|
prevCount--;
|
|
208
241
|
}
|
|
209
242
|
return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 250); })];
|
|
210
|
-
case 2:
|
|
211
|
-
_a.sent();
|
|
212
|
-
return [3 /*break*/, 1];
|
|
213
243
|
case 3:
|
|
244
|
+
_b.sent();
|
|
245
|
+
return [3 /*break*/, 2];
|
|
246
|
+
case 4:
|
|
214
247
|
if (this.publishedResultsCount === 0 && !this.runId) {
|
|
215
248
|
this.log('No testcases were matched. Ensure that your tests are declared correctly.');
|
|
216
249
|
return [2 /*return*/];
|
|
217
250
|
}
|
|
218
|
-
|
|
219
|
-
case
|
|
220
|
-
|
|
251
|
+
_b.label = 5;
|
|
252
|
+
case 5:
|
|
253
|
+
_b.trys.push([5, 9, , 10]);
|
|
221
254
|
runUpdate = {
|
|
222
255
|
state: 'Completed'
|
|
223
256
|
};
|
|
224
|
-
return [
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
this.log((0, chalk_1.default)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["{green Run ", " - ", "}"], ["{green Run ", " - ", "}"])), this.runId, runUpdated.state));
|
|
228
|
-
return [3 /*break*/, 7];
|
|
257
|
+
if (!!this.testApi) return [3 /*break*/, 7];
|
|
258
|
+
_a = this;
|
|
259
|
+
return [4 /*yield*/, this.connection.getTestApi()];
|
|
229
260
|
case 6:
|
|
230
|
-
|
|
261
|
+
_a.testApi = _b.sent();
|
|
262
|
+
_b.label = 7;
|
|
263
|
+
case 7: return [4 /*yield*/, this.testApi.updateTestRun(runUpdate, this.projectName, this.runId)];
|
|
264
|
+
case 8:
|
|
265
|
+
runUpdatedResponse = _b.sent();
|
|
266
|
+
this.log(chalk_1.default.green("Run ".concat(this.runId, " - ").concat(runUpdatedResponse.state)));
|
|
267
|
+
return [3 /*break*/, 10];
|
|
268
|
+
case 9:
|
|
269
|
+
err_2 = _b.sent();
|
|
231
270
|
this.log("Error on completing run ".concat(err_2));
|
|
232
|
-
return [3 /*break*/,
|
|
233
|
-
case
|
|
271
|
+
return [3 /*break*/, 10];
|
|
272
|
+
case 10: return [2 /*return*/];
|
|
234
273
|
}
|
|
235
274
|
});
|
|
236
275
|
});
|
|
237
276
|
};
|
|
238
|
-
|
|
239
|
-
if (this.logging)
|
|
240
|
-
|
|
241
|
-
console.log((0, chalk_1.default)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["{bold {magenta azure:} ", "}"], ["{bold {magenta azure:} ", "}"])), message));
|
|
242
|
-
}
|
|
277
|
+
AzureDevOpsReporter.prototype.log = function (message) {
|
|
278
|
+
if (this.logging)
|
|
279
|
+
console.log(chalk_1.default.magenta("azure: ".concat(message)));
|
|
243
280
|
};
|
|
244
|
-
|
|
281
|
+
AzureDevOpsReporter.prototype.getCaseIds = function (test) {
|
|
245
282
|
var regexp = /\[([\d,]+)\]/;
|
|
246
283
|
var results = regexp.exec(test.title);
|
|
247
|
-
if (results && results.length === 2)
|
|
284
|
+
if (results && results.length === 2)
|
|
248
285
|
return results[1];
|
|
249
|
-
}
|
|
250
286
|
return '';
|
|
251
287
|
};
|
|
252
|
-
|
|
288
|
+
AzureDevOpsReporter.prototype.logTestItem = function (test, testResult) {
|
|
253
289
|
var map = {
|
|
254
|
-
failed:
|
|
255
|
-
passed:
|
|
256
|
-
skipped:
|
|
257
|
-
pending:
|
|
258
|
-
disabled:
|
|
259
|
-
timedOut:
|
|
290
|
+
failed: chalk_1.default.red("Test ".concat(test.title, " - ").concat(testResult.status)),
|
|
291
|
+
passed: chalk_1.default.green("Test ".concat(test.title, " - ").concat(testResult.status)),
|
|
292
|
+
skipped: chalk_1.default.blue("Test ".concat(test.title, " - ").concat(testResult.status)),
|
|
293
|
+
pending: chalk_1.default.blue("Test ".concat(test.title, " - ").concat(testResult.status)),
|
|
294
|
+
disabled: chalk_1.default.gray("Test ".concat(test.title, " - ").concat(testResult.status)),
|
|
295
|
+
timedOut: chalk_1.default.gray("Test ".concat(test.title, " - ").concat(testResult.status))
|
|
260
296
|
};
|
|
261
|
-
if (testResult.status)
|
|
297
|
+
if (testResult.status)
|
|
262
298
|
this.log(map[testResult.status]);
|
|
263
|
-
}
|
|
264
299
|
};
|
|
265
|
-
|
|
266
|
-
PlaywrightReporter.prototype.createRun = function (runName, cb) {
|
|
300
|
+
AzureDevOpsReporter.prototype.createRun = function (runName) {
|
|
267
301
|
return __awaiter(this, void 0, void 0, function () {
|
|
268
|
-
var
|
|
302
|
+
var _this = this;
|
|
269
303
|
return __generator(this, function (_a) {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
304
|
+
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
305
|
+
var runModel, _a, adTestRun, e_1;
|
|
306
|
+
return __generator(this, function (_b) {
|
|
307
|
+
switch (_b.label) {
|
|
308
|
+
case 0:
|
|
309
|
+
_b.trys.push([0, 4, , 5]);
|
|
310
|
+
this.checkProject(this.projectName).catch(function (e) {
|
|
311
|
+
reject(e);
|
|
312
|
+
});
|
|
313
|
+
runModel = {
|
|
314
|
+
name: runName,
|
|
315
|
+
automated: true,
|
|
316
|
+
configurationIds: [1],
|
|
317
|
+
plan: { id: "".concat(this.planId) }
|
|
318
|
+
};
|
|
319
|
+
if (!!this.testApi) return [3 /*break*/, 2];
|
|
320
|
+
_a = this;
|
|
321
|
+
return [4 /*yield*/, this.connection.getTestApi()];
|
|
322
|
+
case 1:
|
|
323
|
+
_a.testApi = _b.sent();
|
|
324
|
+
_b.label = 2;
|
|
325
|
+
case 2: return [4 /*yield*/, this.testApi.createTestRun(runModel, this.projectName)];
|
|
326
|
+
case 3:
|
|
327
|
+
adTestRun = _b.sent();
|
|
328
|
+
resolve(adTestRun);
|
|
329
|
+
return [3 /*break*/, 5];
|
|
330
|
+
case 4:
|
|
331
|
+
e_1 = _b.sent();
|
|
332
|
+
reject(e_1);
|
|
333
|
+
return [3 /*break*/, 5];
|
|
334
|
+
case 5: return [2 /*return*/];
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
}); }).catch(function (e) {
|
|
338
|
+
_this.log(chalk_1.default.red("While creating test run.\n ".concat(e)));
|
|
339
|
+
_this.isDisabled = true;
|
|
340
|
+
throw e;
|
|
341
|
+
})];
|
|
292
342
|
});
|
|
293
343
|
});
|
|
294
344
|
};
|
|
295
|
-
|
|
345
|
+
AzureDevOpsReporter.prototype.removePublished = function (testAlias) {
|
|
296
346
|
var resultIndex = this.resultsToBePublished.indexOf(testAlias);
|
|
297
|
-
if (resultIndex !== -1)
|
|
347
|
+
if (resultIndex !== -1)
|
|
298
348
|
this.resultsToBePublished.splice(resultIndex, 1);
|
|
299
|
-
}
|
|
300
349
|
};
|
|
301
|
-
|
|
350
|
+
AzureDevOpsReporter.prototype.checkProject = function (projectName) {
|
|
302
351
|
return __awaiter(this, void 0, void 0, function () {
|
|
303
|
-
var
|
|
352
|
+
var _this = this;
|
|
304
353
|
return __generator(this, function (_a) {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
354
|
+
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
355
|
+
var _a, project, e_2;
|
|
356
|
+
return __generator(this, function (_b) {
|
|
357
|
+
switch (_b.label) {
|
|
358
|
+
case 0:
|
|
359
|
+
_b.trys.push([0, 4, , 5]);
|
|
360
|
+
if (!!this.coreApi) return [3 /*break*/, 2];
|
|
361
|
+
_a = this;
|
|
362
|
+
return [4 /*yield*/, this.connection.getCoreApi()];
|
|
363
|
+
case 1:
|
|
364
|
+
_a.coreApi = _b.sent();
|
|
365
|
+
_b.label = 2;
|
|
366
|
+
case 2: return [4 /*yield*/, this.coreApi.getProject(projectName)];
|
|
367
|
+
case 3:
|
|
368
|
+
project = _b.sent();
|
|
369
|
+
if (project)
|
|
370
|
+
resolve(project);
|
|
371
|
+
else
|
|
372
|
+
reject("Project ".concat(projectName, " does not exist. Reporting is disabled."));
|
|
373
|
+
return [3 /*break*/, 5];
|
|
374
|
+
case 4:
|
|
375
|
+
e_2 = _b.sent();
|
|
376
|
+
reject(e_2);
|
|
377
|
+
return [3 /*break*/, 5];
|
|
378
|
+
case 5: return [2 /*return*/];
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
}); }).catch(function (e) {
|
|
382
|
+
_this.log(e);
|
|
383
|
+
_this.isDisabled = true;
|
|
384
|
+
})];
|
|
330
385
|
});
|
|
331
386
|
});
|
|
332
387
|
};
|
|
333
|
-
|
|
334
|
-
return (
|
|
388
|
+
AzureDevOpsReporter.prototype.getTestPointIdsByTCIds = function (planId, testcaseIds) {
|
|
389
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
390
|
+
var _this = this;
|
|
391
|
+
return __generator(this, function (_a) {
|
|
392
|
+
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
393
|
+
var pointsQuery, _a, pointsQueryResult, pointsIds_1, e_3;
|
|
394
|
+
var _this = this;
|
|
395
|
+
return __generator(this, function (_b) {
|
|
396
|
+
switch (_b.label) {
|
|
397
|
+
case 0:
|
|
398
|
+
_b.trys.push([0, 4, , 5]);
|
|
399
|
+
pointsQuery = {
|
|
400
|
+
pointsFilter: { testcaseIds: testcaseIds }
|
|
401
|
+
};
|
|
402
|
+
if (!!this.testApi) return [3 /*break*/, 2];
|
|
403
|
+
_a = this;
|
|
404
|
+
return [4 /*yield*/, this.connection.getTestApi()];
|
|
405
|
+
case 1:
|
|
406
|
+
_a.testApi = _b.sent();
|
|
407
|
+
_b.label = 2;
|
|
408
|
+
case 2: return [4 /*yield*/, this.testApi.getPointsByQuery(pointsQuery, this.projectName)];
|
|
409
|
+
case 3:
|
|
410
|
+
pointsQueryResult = _b.sent();
|
|
411
|
+
pointsIds_1 = [];
|
|
412
|
+
if (pointsQueryResult.points) {
|
|
413
|
+
pointsQueryResult.points.forEach(function (point) {
|
|
414
|
+
if (point.testPlan && point.testPlan.id && parseInt(point.testPlan.id, 10) === planId)
|
|
415
|
+
pointsIds_1.push(point.id);
|
|
416
|
+
else
|
|
417
|
+
reject("Could not find test point for test case [".concat(point.testCase.id, "] associated with test plan ").concat(_this.planId, ". Check, maybe testPlanId, what you specifiyed, is incorrect."));
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
resolve(pointsIds_1);
|
|
421
|
+
return [3 /*break*/, 5];
|
|
422
|
+
case 4:
|
|
423
|
+
e_3 = _b.sent();
|
|
424
|
+
this.log(chalk_1.default.red("While getting test points ids, by test cases ids.\n ".concat(e_3)));
|
|
425
|
+
reject(e_3);
|
|
426
|
+
return [3 /*break*/, 5];
|
|
427
|
+
case 5: return [2 /*return*/];
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
}); })];
|
|
431
|
+
});
|
|
432
|
+
});
|
|
335
433
|
};
|
|
336
|
-
|
|
434
|
+
AzureDevOpsReporter.prototype.uploadAttachmentsFunc = function (testResult, caseId, testCaseId) {
|
|
337
435
|
return __awaiter(this, void 0, void 0, function () {
|
|
338
436
|
var _this = this;
|
|
339
437
|
return __generator(this, function (_a) {
|
|
340
438
|
switch (_a.label) {
|
|
341
439
|
case 0:
|
|
342
|
-
this.log(
|
|
440
|
+
this.log(chalk_1.default.gray("Start upload attachments for test case [".concat(testCaseId, "]")));
|
|
343
441
|
return [4 /*yield*/, Promise.all(testResult.attachments.map(function (attachment) { return __awaiter(_this, void 0, void 0, function () {
|
|
344
|
-
var attachments, response;
|
|
345
|
-
return __generator(this, function (
|
|
346
|
-
switch (
|
|
442
|
+
var attachments, _a, response;
|
|
443
|
+
return __generator(this, function (_b) {
|
|
444
|
+
switch (_b.label) {
|
|
347
445
|
case 0:
|
|
446
|
+
if (!this.attachmentsType.includes(attachment.name)) return [3 /*break*/, 4];
|
|
348
447
|
attachments = {
|
|
349
448
|
attachmentType: 'GeneralAttachment',
|
|
350
|
-
fileName: (attachment
|
|
351
|
-
stream:
|
|
449
|
+
fileName: "".concat(attachment.name, "-").concat(createGuid(), ".").concat(attachment.contentType.split('/')[1]),
|
|
450
|
+
stream: (0, fs_1.readFileSync)(attachment.path, { encoding: 'base64' })
|
|
352
451
|
};
|
|
353
|
-
return [
|
|
452
|
+
if (!!this.testApi) return [3 /*break*/, 2];
|
|
453
|
+
_a = this;
|
|
454
|
+
return [4 /*yield*/, this.connection.getTestApi()];
|
|
354
455
|
case 1:
|
|
355
|
-
|
|
456
|
+
_a.testApi = _b.sent();
|
|
457
|
+
_b.label = 2;
|
|
458
|
+
case 2: return [4 /*yield*/, this.testApi.createTestResultAttachment(attachments, this.projectName, this.runId, caseId)];
|
|
459
|
+
case 3:
|
|
460
|
+
response = _b.sent();
|
|
356
461
|
return [2 /*return*/, response.url];
|
|
462
|
+
case 4: return [2 /*return*/, ''];
|
|
357
463
|
}
|
|
358
464
|
});
|
|
359
465
|
}); }))];
|
|
@@ -362,41 +468,75 @@ var PlaywrightReporter = /** @class */ (function () {
|
|
|
362
468
|
});
|
|
363
469
|
});
|
|
364
470
|
};
|
|
365
|
-
|
|
471
|
+
AzureDevOpsReporter.prototype.awaitForRunId = function () {
|
|
472
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
473
|
+
var _this = this;
|
|
474
|
+
return __generator(this, function (_a) {
|
|
475
|
+
// need wait runId variable to be initialised in onBegin() hook
|
|
476
|
+
if (this.isDisabled)
|
|
477
|
+
return [2 /*return*/];
|
|
478
|
+
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
479
|
+
var timeout, startTime;
|
|
480
|
+
return __generator(this, function (_a) {
|
|
481
|
+
switch (_a.label) {
|
|
482
|
+
case 0:
|
|
483
|
+
timeout = 10000;
|
|
484
|
+
startTime = Date.now();
|
|
485
|
+
_a.label = 1;
|
|
486
|
+
case 1:
|
|
487
|
+
if (!(this.runId === undefined && Date.now() - startTime < timeout)) return [3 /*break*/, 3];
|
|
488
|
+
return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 250); })];
|
|
489
|
+
case 2:
|
|
490
|
+
_a.sent();
|
|
491
|
+
return [3 /*break*/, 1];
|
|
492
|
+
case 3:
|
|
493
|
+
if (this.runId === undefined) {
|
|
494
|
+
this.isDisabled = true;
|
|
495
|
+
reject('Timeout while waiting for runId. Reporting is disabled.');
|
|
496
|
+
}
|
|
497
|
+
else {
|
|
498
|
+
resolve(this.runId);
|
|
499
|
+
}
|
|
500
|
+
return [2 /*return*/];
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
}); })];
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
};
|
|
507
|
+
AzureDevOpsReporter.prototype.publishCaseResult = function (test, testResult) {
|
|
366
508
|
return __awaiter(this, void 0, void 0, function () {
|
|
367
509
|
var caseId;
|
|
368
510
|
var _this = this;
|
|
369
511
|
return __generator(this, function (_a) {
|
|
370
|
-
this.logTestItem(test, testResult);
|
|
371
512
|
caseId = this.getCaseIds(test);
|
|
372
|
-
if (caseId === '')
|
|
513
|
+
if (caseId === '')
|
|
373
514
|
return [2 /*return*/];
|
|
374
|
-
}
|
|
375
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
376
515
|
return [2 /*return*/, new Promise(function (resolved, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
377
|
-
var testAlias, pointIds, results, testCaseResult, err_3;
|
|
378
|
-
var
|
|
379
|
-
|
|
380
|
-
|
|
516
|
+
var testAlias, pointIds, results, _a, testCaseResult, err_3;
|
|
517
|
+
var _this = this;
|
|
518
|
+
var _b, _c, _d, _e;
|
|
519
|
+
return __generator(this, function (_f) {
|
|
520
|
+
switch (_f.label) {
|
|
381
521
|
case 0:
|
|
382
522
|
testAlias = "".concat(caseId, " - ").concat(test.title);
|
|
383
523
|
this.resultsToBePublished.push(testAlias);
|
|
384
|
-
this.log(
|
|
385
|
-
|
|
524
|
+
this.log(chalk_1.default.gray("Start publishing: ".concat(test.title)));
|
|
525
|
+
return [4 /*yield*/, this.getTestPointIdsByTCIds(this.planId, [parseInt(caseId, 10)]).catch(function (e) {
|
|
526
|
+
_this.log(chalk_1.default.red("While getting test point ids, by test cases ids.\n ".concat(e)));
|
|
527
|
+
_this.removePublished(testAlias);
|
|
528
|
+
return;
|
|
529
|
+
})];
|
|
386
530
|
case 1:
|
|
387
|
-
|
|
388
|
-
|
|
531
|
+
pointIds = _f.sent();
|
|
532
|
+
if (!pointIds || !pointIds.length) {
|
|
533
|
+
this.log(chalk_1.default.red("No test points found for test case [".concat(caseId, "]")));
|
|
534
|
+
this.removePublished(testAlias);
|
|
535
|
+
return [2 /*return*/];
|
|
536
|
+
}
|
|
537
|
+
_f.label = 2;
|
|
389
538
|
case 2:
|
|
390
|
-
|
|
391
|
-
// need wait runId variable to be initialised in onBegin() hook
|
|
392
|
-
return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 50); })];
|
|
393
|
-
case 3:
|
|
394
|
-
// need wait runId variable to be initialised in onBegin() hook
|
|
395
|
-
_e.sent();
|
|
396
|
-
return [3 /*break*/, 2];
|
|
397
|
-
case 4: return [4 /*yield*/, this.getTestPointIdsByTCIds(this.planId, [parseInt(caseId, 10)])];
|
|
398
|
-
case 5:
|
|
399
|
-
pointIds = _e.sent();
|
|
539
|
+
_f.trys.push([2, 8, , 9]);
|
|
400
540
|
results = [
|
|
401
541
|
{
|
|
402
542
|
testCase: { id: caseId },
|
|
@@ -406,40 +546,45 @@ var PlaywrightReporter = /** @class */ (function () {
|
|
|
406
546
|
state: 'Completed',
|
|
407
547
|
durationInMs: testResult.duration,
|
|
408
548
|
errorMessage: testResult.error
|
|
409
|
-
? "".concat(test.title, ": ").concat((
|
|
549
|
+
? "".concat(test.title, ": ").concat((_c = (_b = testResult.error) === null || _b === void 0 ? void 0 : _b.message) === null || _c === void 0 ? void 0 : _c.replace(/\u001b\[.*?m/g, ''))
|
|
410
550
|
: undefined,
|
|
411
|
-
stackTrace: (
|
|
551
|
+
stackTrace: (_e = (_d = testResult.error) === null || _d === void 0 ? void 0 : _d.stack) === null || _e === void 0 ? void 0 : _e.replace(/\u001b\[.*?m/g, '')
|
|
412
552
|
}
|
|
413
553
|
];
|
|
414
|
-
|
|
554
|
+
if (!!this.testApi) return [3 /*break*/, 4];
|
|
555
|
+
_a = this;
|
|
556
|
+
return [4 /*yield*/, this.connection.getTestApi()];
|
|
557
|
+
case 3:
|
|
558
|
+
_a.testApi = _f.sent();
|
|
559
|
+
_f.label = 4;
|
|
560
|
+
case 4: return [4 /*yield*/, this.addReportingOverride(this.testApi).addTestResultsToTestRun(results, this.projectName, this.runId)];
|
|
561
|
+
case 5:
|
|
562
|
+
testCaseResult = _f.sent();
|
|
563
|
+
if (!(this.uploadAttachments && testResult.attachments.length > 0)) return [3 /*break*/, 7];
|
|
564
|
+
return [4 /*yield*/, this.uploadAttachmentsFunc(testResult, testCaseResult.result.value[0].id, caseId)];
|
|
415
565
|
case 6:
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
return [4 /*yield*/, this.uploadAttachments(testResult, testCaseResult.result.value[0].id)];
|
|
566
|
+
_f.sent();
|
|
567
|
+
_f.label = 7;
|
|
419
568
|
case 7:
|
|
420
|
-
_e.sent();
|
|
421
|
-
_e.label = 8;
|
|
422
|
-
case 8:
|
|
423
569
|
this.removePublished(testAlias);
|
|
424
570
|
this.publishedResultsCount++;
|
|
425
|
-
this.log(
|
|
571
|
+
this.log(chalk_1.default.gray("Result published: ".concat(test.title)));
|
|
426
572
|
resolved(testCaseResult);
|
|
427
|
-
return [3 /*break*/,
|
|
428
|
-
case
|
|
429
|
-
err_3 =
|
|
573
|
+
return [3 /*break*/, 9];
|
|
574
|
+
case 8:
|
|
575
|
+
err_3 = _f.sent();
|
|
430
576
|
this.removePublished(testAlias);
|
|
431
|
-
this.log(
|
|
577
|
+
this.log(chalk_1.default.red(err_3));
|
|
432
578
|
reject(err_3);
|
|
433
|
-
return [3 /*break*/,
|
|
434
|
-
case
|
|
579
|
+
return [3 /*break*/, 9];
|
|
580
|
+
case 9: return [2 /*return*/];
|
|
435
581
|
}
|
|
436
582
|
});
|
|
437
|
-
}); })
|
|
583
|
+
}); })];
|
|
438
584
|
});
|
|
439
585
|
});
|
|
440
586
|
};
|
|
441
|
-
return
|
|
587
|
+
return AzureDevOpsReporter;
|
|
442
588
|
}());
|
|
443
|
-
exports.default =
|
|
444
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
|
|
589
|
+
exports.default = AzureDevOpsReporter;
|
|
445
590
|
//# sourceMappingURL=playwright-az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C,eAAK,CAAC,GAAG,CAAC,KAAG,CAAC,CAAC,CAAC;oCACzB,MAAM,CAAC,KAAG,CAAC,CAAC;;;;;yBAEf,CAAC,EAAC;;;KACJ;IACH,0BAAC;AAAD,CAAC,AA3WD,IA2WC;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.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Playwright Azure Reporter",
|
|
5
5
|
"main": "./dist/playwright-azure-reporter.js",
|
|
6
6
|
"types": "./dist/playwright-azure-reporter.d.js",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"clean": "rm -rf dist || true",
|
|
13
13
|
"prepublishOnly": "tsc",
|
|
14
14
|
"dev": "npm run lint && tsc",
|
|
15
|
-
"dev:watch": "nodemon --watch src --exec \"npm run build\""
|
|
15
|
+
"dev:watch": "nodemon --watch src --exec \"npm run build\"",
|
|
16
|
+
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md"
|
|
16
17
|
},
|
|
17
18
|
"keywords": [
|
|
18
19
|
"playwright",
|
|
@@ -27,17 +28,21 @@
|
|
|
27
28
|
"email": "alexneo2003@gmail.com",
|
|
28
29
|
"url": "https://github.com/alexneo2003/"
|
|
29
30
|
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/alexneo2003/playwright-azure-reporter"
|
|
34
|
+
},
|
|
30
35
|
"license": "ISC",
|
|
31
36
|
"dependencies": {
|
|
32
37
|
"azure-devops-node-api": "^11.1.1",
|
|
33
|
-
"chalk": "4.1.
|
|
38
|
+
"chalk": "^4.1.2",
|
|
39
|
+
"cryptojs": "^2.5.3"
|
|
34
40
|
},
|
|
35
41
|
"devDependencies": {
|
|
36
|
-
"@playwright/test": "^1.
|
|
42
|
+
"@playwright/test": "^1.23.4",
|
|
37
43
|
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
38
44
|
"@typescript-eslint/eslint-plugin-tslint": "^5.27.1",
|
|
39
45
|
"@typescript-eslint/parser": "^5.27.1",
|
|
40
|
-
"chalk": "^4.1.0",
|
|
41
46
|
"eslint": "^8.17.0",
|
|
42
47
|
"eslint-config-standard": "^17.0.0",
|
|
43
48
|
"eslint-plugin-import": "^2.26.0",
|
package/playwright.config.ts
CHANGED
|
@@ -1,33 +1,19 @@
|
|
|
1
1
|
import { PlaywrightTestConfig } from '@playwright/test'
|
|
2
2
|
import azureConfig from './azure.config.json'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Read environment variables from file.
|
|
6
|
-
* https://github.com/motdotla/dotenv
|
|
7
|
-
*/
|
|
8
|
-
// require('dotenv').config();
|
|
3
|
+
import { AzureReporterOptions } from './src/playwright-azure-reporter'
|
|
9
4
|
|
|
10
5
|
/**
|
|
11
6
|
* See https://playwright.dev/docs/test-configuration.
|
|
12
7
|
*/
|
|
13
8
|
const config: PlaywrightTestConfig = {
|
|
14
9
|
testDir: './tests',
|
|
15
|
-
/* Maximum time one test can run for. */
|
|
16
10
|
timeout: 30 * 1000,
|
|
17
11
|
expect: {
|
|
18
|
-
/**
|
|
19
|
-
* Maximum time expect() should wait for the condition to be met.
|
|
20
|
-
* For example in `await expect(locator).toHaveText();`
|
|
21
|
-
*/
|
|
22
12
|
timeout: 5000
|
|
23
13
|
},
|
|
24
|
-
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
|
25
14
|
forbidOnly: !!process.env.CI,
|
|
26
|
-
/* Retry on CI only */
|
|
27
15
|
retries: process.env.CI ? 2 : 0,
|
|
28
|
-
/* Opt out of parallel tests on CI. */
|
|
29
16
|
workers: process.env.CI ? 1 : undefined,
|
|
30
|
-
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
|
31
17
|
reporter: [
|
|
32
18
|
['list'],
|
|
33
19
|
[
|
|
@@ -37,32 +23,18 @@ const config: PlaywrightTestConfig = {
|
|
|
37
23
|
token: azureConfig.token,
|
|
38
24
|
planId: azureConfig.testPlanId,
|
|
39
25
|
projectName: azureConfig.projectName,
|
|
40
|
-
|
|
26
|
+
environment: 'AQA',
|
|
41
27
|
testRunTitle: 'Playwright Test Run',
|
|
42
|
-
uploadAttachments:
|
|
43
|
-
|
|
28
|
+
uploadAttachments: true,
|
|
29
|
+
// attachmentsType: ['screenshot'],
|
|
30
|
+
} as AzureReporterOptions
|
|
44
31
|
]
|
|
45
32
|
],
|
|
46
|
-
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
|
47
33
|
use: {
|
|
48
34
|
screenshot: 'only-on-failure',
|
|
49
|
-
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
|
|
50
35
|
actionTimeout: 0,
|
|
51
|
-
/* Base URL to use in actions like `await page.goto('/')`. */
|
|
52
|
-
// baseURL: 'http://localhost:3000',
|
|
53
|
-
|
|
54
|
-
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
|
55
36
|
trace: 'on-first-retry'
|
|
56
37
|
}
|
|
57
|
-
|
|
58
|
-
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
|
|
59
|
-
// outputDir: 'test-results/',
|
|
60
|
-
|
|
61
|
-
/* Run your local dev server before starting the tests */
|
|
62
|
-
// webServer: {
|
|
63
|
-
// command: 'npm run start',
|
|
64
|
-
// port: 3000,
|
|
65
|
-
// },
|
|
66
38
|
}
|
|
67
39
|
|
|
68
40
|
export default config
|