summaryrefslogtreecommitdiff
path: root/src/main/webapp
diff options
context:
space:
mode:
authorYoung Gyu Park <younggyu@google.com>2018-05-10 16:16:40 +0900
committerYoung Gyu Park <younggyu@google.com>2018-05-10 16:16:40 +0900
commitdd1cd7539ed82bd31d95234a1b15cded0f177bb9 (patch)
treebc339c42d72cc837f99ec2387c0c70564bdff87a /src/main/webapp
parent34dd5c24c4d0adb6a0e31cb49948a4e6ab6b4446 (diff)
downloaddashboard-dd1cd7539ed82bd31d95234a1b15cded0f177bb9.tar.gz
Adding success ratio on test suite page
Test: go/vts-web-staging/show_plan_release?plan=vts&type=suite&page=1 Bug: 79505901 Change-Id: Ie35ab4ae563c6a19ac000aea917cbd9288e1df7e
Diffstat (limited to 'src/main/webapp')
-rw-r--r--src/main/webapp/WEB-INF/jsp/show_release.jsp2
-rw-r--r--src/main/webapp/WEB-INF/jsp/show_suite_release.jsp10
2 files changed, 11 insertions, 1 deletions
diff --git a/src/main/webapp/WEB-INF/jsp/show_release.jsp b/src/main/webapp/WEB-INF/jsp/show_release.jsp
index 83d71c6..40a072f 100644
--- a/src/main/webapp/WEB-INF/jsp/show_release.jsp
+++ b/src/main/webapp/WEB-INF/jsp/show_release.jsp
@@ -39,7 +39,7 @@
<a class="${testType == 'plan' ? 'active' : 'inactive'}" href="${requestScope['javax.servlet.forward.servlet_path']}?type=plan">Test Plans</a>
</li>
<li class="tab col s6" id="suiteTabLink">
- <a class="${testType == 'suite' ? 'active' : 'inactive'}" href="${requestScope['javax.servlet.forward.servlet_path']}?type=suite">Suite Test Plans</a>
+ <a class="${testType == 'suite' ? 'active' : 'inactive'}" href="${requestScope['javax.servlet.forward.servlet_path']}?type=suite">Test Suite Plans</a>
</li>
</ul>
diff --git a/src/main/webapp/WEB-INF/jsp/show_suite_release.jsp b/src/main/webapp/WEB-INF/jsp/show_suite_release.jsp
index 3670561..b412426 100644
--- a/src/main/webapp/WEB-INF/jsp/show_suite_release.jsp
+++ b/src/main/webapp/WEB-INF/jsp/show_suite_release.jsp
@@ -136,6 +136,16 @@
</c:choose>
">
<c:out value="${testSuiteResultEntity.passedTestCaseCount}"></c:out>/<c:out value="${testSuiteResultEntity.passedTestCaseCount + testSuiteResultEntity.failedTestCaseCount}"></c:out>
+ (
+ <c:choose>
+ <c:when test="${testSuiteResultEntity.passedTestCaseCount eq 0 and testSuiteResultEntity.failedTestCaseCount eq 0}">
+ <fmt:formatNumber type="percent" minFractionDigits="2" maxFractionDigits="2" value="0" />
+ </c:when>
+ <c:otherwise>
+ <fmt:formatNumber type="percent" minFractionDigits="2" maxFractionDigits="2" value="${testSuiteResultEntity.passedTestCaseCount / (testSuiteResultEntity.passedTestCaseCount + testSuiteResultEntity.failedTestCaseCount)}" />
+ </c:otherwise>
+ </c:choose>
+ )
</span>
<c:if test="${!testSuiteResultEntity.bootSuccess}">
<span class="indicator right center" style="min-width: 0px; padding: 0 2px;"></span>