qase-javascript-commons 2.1.2 → 2.1.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 +7 -0
- package/dist/reporters/testops-reporter.js +12 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -235,13 +235,24 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
235
235
|
const id = Array.isArray(result.testops_id) ? null : result.testops_id;
|
|
236
236
|
if (id) {
|
|
237
237
|
resultCreate.case_id = id;
|
|
238
|
-
return resultCreate;
|
|
239
238
|
}
|
|
240
239
|
const rootSuite = this.rootSuite ? `${this.rootSuite}\t` : '';
|
|
241
240
|
resultCreate.case = {
|
|
242
241
|
title: result.title,
|
|
243
242
|
suite_title: result.relations?.suite ? `${rootSuite}${result.relations?.suite?.data.map((suite) => suite.title).join('\t')}` : rootSuite,
|
|
243
|
+
description: result.fields['description'] ?? null,
|
|
244
|
+
postconditions: result.fields['postconditions'] ?? null,
|
|
245
|
+
preconditions: result.fields['preconditions'] ?? null,
|
|
244
246
|
};
|
|
247
|
+
if (result.fields['severity']) {
|
|
248
|
+
resultCreate.case.severity = result.fields['severity'];
|
|
249
|
+
}
|
|
250
|
+
if (result.fields['priority']) {
|
|
251
|
+
resultCreate.case.priority = result.fields['priority'];
|
|
252
|
+
}
|
|
253
|
+
if (result.fields['layer']) {
|
|
254
|
+
resultCreate.case.layer = result.fields['layer'];
|
|
255
|
+
}
|
|
245
256
|
this.logger.logDebug(`Transformed result: ${JSON.stringify(resultCreate)}`);
|
|
246
257
|
return resultCreate;
|
|
247
258
|
}
|