diff options
author | grakiss <grakiss.wanglei@huawei.com> | 2017-10-19 03:36:04 -0400 |
---|---|---|
committer | grakiss <grakiss.wanglei@huawei.com> | 2017-10-19 03:36:04 -0400 |
commit | 4f2c6191c68567e3fd7ee7e8bcb737c3194fbb2e (patch) | |
tree | 1e4ddb154911760703ab356691225764716a672e /cvp/3rd_party/static | |
parent | ea0354ea16202b9d49e7320317a65402bab8f811 (diff) |
[web-cvp]Direct drill-down for failed tests
JIRA: DOVETAIL-531
people may want to directly drill-down to the exact log file of each results, instead of searching in piles of log files.
Change-Id: I6e18b8d57739fd695e20ee29147e796de5c9e404
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'cvp/3rd_party/static')
-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); + } /** |