diff options
Diffstat (limited to 'cvp/3rd_party/static/testapi-ui/components')
-rw-r--r-- | cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html | 2 | ||||
-rw-r--r-- | cvp/3rd_party/static/testapi-ui/components/results-report/resultsReportController.js | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html b/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html index 9f8ed140..091cab88 100644 --- a/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html +++ b/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html @@ -42,7 +42,7 @@ Test Filters:<br /> <span ng-if="ctrl.testStatus == 'passed'" class="text-success">[{{ testcase.pass }}]</span> <span ng-if="ctrl.testStatus == 'not passed'" class="text-danger">[{{ testcase.fail }}]</span> </a> - + <a uib-tooltip="view log" ng-click="ctrl.gotoResultLog(testcase.build_tag.split('-').pop())"><span class="glyphicon glyphicon-cog"></a> <ul class="list-unstyled" uib-collapse="testcase.folder"> <li ng-if="!testcase.details.success"> <span ng-class="{'glyphicon glyphicon-ok text-success':testcase.criteria == 'PASS'}" aria-hidden="true"></span> diff --git a/cvp/3rd_party/static/testapi-ui/components/results-report/resultsReportController.js b/cvp/3rd_party/static/testapi-ui/components/results-report/resultsReportController.js index 1d37c583..2b61c981 100644 --- a/cvp/3rd_party/static/testapi-ui/components/results-report/resultsReportController.js +++ b/cvp/3rd_party/static/testapi-ui/components/results-report/resultsReportController.js @@ -56,6 +56,20 @@ ctrl.optional_fail = 0; ctrl.testStatus = 'total'; + ctrl.gotoResultLog = gotoResultLog; + + function gotoResultLog(case_name) { + var case_area = case_name.split(".")[1]; + var log_url = "/logs/"+ctrl.testId+"/results/"; + if (case_area == "vping") { + log_url += "functest.log"; + } else if (case_area == "ha") { + log_url += "yardstick.log"; + } else { + log_url += case_area+"_logs/"+case_name+".log"; + } + window.open(log_url); + } /** |