@comeonautomation/reportportal-client
Advanced tools
Comparing version
@@ -275,7 +275,7 @@ /* eslint-disable quotes,no-console,class-methods-use-this */ | ||
/* | ||
* This method is used for force stop launches in ReportPortal. | ||
* | ||
* Please, keep in mind that this method is work only in case | ||
* the option isLaunchMergeRequired is true. | ||
*/ | ||
* This method is used for force stop launches in ReportPortal. | ||
* | ||
* Please, keep in mind that this method is work only in case | ||
* the option isLaunchMergeRequired is true. | ||
*/ | ||
forceStopAndDeleteSkippedInterruptedTests() { | ||
@@ -308,3 +308,3 @@ if (this.isLaunchMergeRequired) { | ||
) | ||
.then(async (response) => { | ||
.then(async response => { | ||
this.logDebug(`Launches successfully stopped!`); | ||
@@ -325,2 +325,3 @@ await this.deleteSkippedInterruptedTest() | ||
isLaunchWithFailedTests(launchTempId) { | ||
@@ -359,3 +360,3 @@ const launchObj = this.map[launchTempId]; | ||
.retrieve('/item?filter.eq.launchId=' + launchIds[item] + '&page.size=100') | ||
.then(async (response) => { | ||
.then(async response => { | ||
this.logDebug(`Total elements in ${launchIds[item]}: ` + response.page.totalElements); | ||
@@ -366,3 +367,4 @@ for (var i = 0; i < response.page.totalElements; i++) { | ||
if ( | ||
(response.content[i].statistics.executions.skipped === 1 | ||
(response.content[i].statistics.executions | ||
.skipped === 1 | ||
&& response.content[i].hasChildren === false) | ||
@@ -375,9 +377,9 @@ || (response.content[i].statistics.executions.total | ||
) { | ||
await this.restClient | ||
this.restClient | ||
.retrieve(item_id_url) | ||
.then(async (response) => { | ||
.then(response => { | ||
hasSkipTestItems.push(response.id); | ||
await this.restClient | ||
this.restClient | ||
.delete('/item?ids=' + response.id) | ||
.then((response) => { | ||
.then(response => { | ||
this.logDebug('Deleted Skipped & Interrupted tests successfully'); | ||
@@ -488,2 +490,3 @@ }); | ||
/* | ||
@@ -490,0 +493,0 @@ * This method is used for frameworks as Jasmine. There is problem when |
{ | ||
"name": "@comeonautomation/reportportal-client", | ||
"version": "2.3.7", | ||
"version": "2.3.8", | ||
"description": "ReportPortal client for node.js", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
1924
0.05%153227
0