@comeonautomation/reportportal-client
Advanced tools
Comparing version
@@ -354,20 +354,17 @@ /* eslint-disable quotes,no-console,class-methods-use-this */ | ||
const item_id_url='/item/uuid/'+response.content[i].id | ||
if (response.content[i].statistics.executions.skipped==1 && response.content[i].hasChildren == false){ | ||
this.restClient | ||
.retrieve(item_id_url) | ||
.then(response => { | ||
hasSkipTestItems.push(response.id) | ||
}); | ||
} | ||
if ((response.content[i].statistics.executions.skipped==1 && response.content[i].hasChildren == false) || (response.content[i].statistics.executions.total==response.content[i].statistics.executions.skipped)){ | ||
this.restClient | ||
.retrieve(item_id_url) | ||
.then(response => { | ||
hasSkipTestItems.push(response.id) | ||
this.restClient | ||
.delete("/item?ids="+response.id) | ||
.then(response => { | ||
this.logDebug('Deleted Skipped tests successfully'); | ||
}); | ||
}); | ||
} | ||
} | ||
}); | ||
} | ||
const test_item_delete_url = "/item?ids="+hasSkipTestItems; | ||
this.logDebug(test_item_delete_url) | ||
this.restClient | ||
.delete(test_item_delete_url) | ||
.then(response => { | ||
this.logDebug('Deleted Skipped tests successfully'); | ||
}); | ||
} | ||
@@ -374,0 +371,0 @@ |
{ | ||
"name": "@comeonautomation/reportportal-client", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "ReportPortal client for node.js", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
147638
0.1%1741
-0.11%