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 CHANGED
@@ -1,3 +1,10 @@
1
+ # qase-javascript-commons@2.1.3
2
+
3
+ ## What's new
4
+
5
+ Reporters will send all data on the results of the autotests. Including the data of the title, the description, etc.
6
+
7
+
1
8
  # qase-javascript-commons@2.1.1
2
9
 
3
10
  ## What's new
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qase-javascript-commons",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Qase JS Reporters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",