summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>