aboutsummaryrefslogtreecommitdiffstats
path: root/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
diff options
context:
space:
mode:
authorPanagiotis Karalis <pkaralis@intracom-telecom.com>2019-03-05 14:43:27 +0200
committerPanagiotis Karalis <pkaralis@intracom-telecom.com>2019-03-08 14:41:19 +0200
commit3b78fa2aeb6c69efb86c68ba5f6c7d7efccfb024 (patch)
tree9753d6d174855e60693efd263abea7eeedfe864e /3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
parent90cb4dca7713f84154fe2ad4c2f5e7145560f3c7 (diff)
Add skipped TCs in the portal's result report
Since the dovetail supports the 'SKIP' verdict for the results, the OVP portal should be updated in order to collect and display the skipped testcases and sub-testcases properly. The report of results has been improved, so that a third column is introduced for skipped results (Passed, Skipped, Not Passed). JIRA: DOVETAIL-765 Change-Id: Ia1a0d8bd732814137e495dc4c6ef5ebb0ef0ed73 Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
Diffstat (limited to '3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html')
-rw-r--r--3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html b/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
index 3f3e9c9..dee4624 100644
--- a/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
+++ b/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
@@ -16,6 +16,11 @@ Test Filters:<br>
<input type="radio" ng-model="ctrl.testStatus" value="passed" name="passed">
<span class="text-success">Passed</span>
</label>
+ <label class="btn btn-default" ng-click="ctrl.changeStatus('skipped')"
+ ng-class="{'active': ctrl.testStatus === 'skipped'}">
+ <input type="radio" ng-model="ctrl.testStatus" value="skipped" name="skipped">
+ <span class="text-warning">Skipped</span>
+ </label>
<label class="btn btn-default" ng-click="ctrl.changeStatus('not passed')"
ng-class="{'active': ctrl.testStatus === 'not passed'}">
<input type="radio" ng-model="ctrl.testStatus" value="not passed" name="not passed">
@@ -36,7 +41,7 @@ Test Filters:<br>
</uib-accordion-heading>
<ol class="capabilities">
<li ng-repeat="(area, value) in data"
- ng-show="(ctrl.testStatus == 'passed' && value.pass != 0) || (ctrl.testStatus == 'not passed' && value.fail != 0) || ctrl.testStatus == 'total'">
+ ng-show="(ctrl.testStatus == 'passed' && value.pass != 0) || (ctrl.testStatus == 'skipped' && value.skip != 0) || (ctrl.testStatus == 'not passed' && value.fail != 0) || ctrl.testStatus == 'total'">
<a ng-click="value.folder = !value.folder">
{{ area }}
<span ng-if="ctrl.testStatus == 'total'"
@@ -44,13 +49,16 @@ Test Filters:<br>
[{{ value.pass }}/{{ value.total }}]
</span>
<span ng-if="ctrl.testStatus == 'passed'" class="text-success">[{{ value.pass }}]</span>
+ <span ng-if="ctrl.testStatus == 'skipped'" class="text-warning">[{{ value.skip }}]</span>
<span ng-if="ctrl.testStatus == 'not passed'" class="text-danger">[{{ value.fail }}]</span>
</a>
<a uib-tooltip="view log" ng-click="ctrl.gotoResultLog(area)"><span class="glyphicon glyphicon-cog"></span></a>
<ul class="list-unstyled" uib-collapse="value.folder">
<li ng-repeat="case in value.cases"
- ng-if="(ctrl.testStatus=='passed' && ctrl.case_list.indexOf(case) > -1) || (ctrl.testStatus=='not passed' && ctrl.case_list.indexOf(case) == -1) || ctrl.testStatus=='total'">
- <span ng-class="{'glyphicon glyphicon-ok text-success':ctrl.case_list.indexOf(case) > -1, 'glyphicon glyphicon-remove text-warning':ctrl.case_list.indexOf(case) == -1}"
+ ng-if="(ctrl.testStatus=='passed' && ctrl.case_list.indexOf(case) > -1) || (ctrl.testStatus=='not passed' && ctrl.case_list_fail.indexOf(case) > -1) || (ctrl.testStatus=='skipped'
+ && ctrl.case_list_skip.indexOf(case) > -1) || ctrl.testStatus=='total'">
+ <span ng-class="{'glyphicon glyphicon-ok text-success':ctrl.case_list.indexOf(case) > -1, 'glyphicon glyphicon-minus text-warning':ctrl.case_list_skip.indexOf(case) > -1,
+ 'glyphicon glyphicon-remove text-danger':ctrl.case_list_fail.indexOf(case) > -1}"
aria-hidden="true"></span>
<a ng-click="ctrl.gotoDoc(case)">{{ case }}</a>
</li>