Skip to content

Commit 8fdaf31

Browse files
author
苏和
committed
update test case show style
1 parent e951502 commit 8fdaf31

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

WebContent/WEB-INF/jsp/testcase/addTestCase.jsp

+7-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,13 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
9999
<td>
100100
<select name="testCase.userId" id="userId" style="width: 200px">
101101
<option value="">- Select a value-</option>
102-
<s:iterator value="#userList" id="user">
103-
<option value="${user.userId }">${user.userName }</option>
102+
<s:iterator value="#userList" id="user">
103+
<s:if test="#user.userName == #session.user.userName">
104+
<option value="${user.userId }" selected="selected">${user.userName }</option>
105+
</s:if>
106+
<s:else>
107+
<option value="${user.userId }">${user.userName }</option>
108+
</s:else>
104109
</s:iterator>
105110
</select>
106111
<span style="color:red;">*</span>

WebContent/WEB-INF/jsp/testcase/detailTestCase.jsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
<tr>
222222
<td>用例编号:</td>
223223
<td><input type="text" name="testCase.testCasealiasId"
224-
id="testcasealiasId" value="${testcase.testCasealiasId}" style="width: 80%;" /><span style="color:red;">*</span></td>
224+
id="testcasealiasId" value="${testcase.testCasealiasId}" style="width: 80%;" /></td>
225225
</tr>
226226
<tr>
227227
<td>需求编号:</td>

WebContent/WEB-INF/jsp/testcase/listTestCases.jsp

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
2424
<th style="width: 10%;">子模块</th>
2525
<th style="width: 10%;">用例类型</th>
2626
<th style="width: 10%;">自动化</th>
27-
<th style="width: 10%;">用例编号</th>
27+
<th style="width: 10%;">功能点</th>
2828
<th style="width: 10%;">操作</th>
2929
</tr>
3030
</thead></display:caption>
@@ -42,7 +42,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
4242
<display:column property="compName" />
4343
<display:column property="testTypeName" />
4444
<display:column property="autoName" />
45-
<display:column property="testCasealiasId" />
45+
<display:column property="subCompName" />
4646
<display:column>
4747
<a href="javascript:selectTestCaseClick(${row.testCaseId },${currPage });" style="color:#0059fd;">编辑</a>
4848
</display:column>

WebContent/WEB-INF/jsp/testcase/showTestCase.jsp

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<table class="form_table">
2222
<tr>
23-
<th colspan="2" class="form_head">用例详情</th>
23+
<th colspan="2" class="form_head" style="table-layout:fixed;word-wrap:break-word; overflow:hidden;">用例详情</th>
2424
</tr>
2525
<tr>
2626
<td>部门:</td>
@@ -132,20 +132,20 @@
132132
<td class="alignl">
133133
<s:if test="#testcase.teamId == 2"><a href="${testcase.configFiles }" target="_blank">${testcase.configFiles }</a></s:if>
134134
<s:else>
135-
${testcase.configFiles }
135+
<pre>${testcase.configFiles }</pre>
136136
</s:else></td>
137137
</tr>
138138
<tr>
139139
<td>执行步骤:</td>
140-
<td>${testcase.executionSteps}</td>
140+
<td><pre>${testcase.executionSteps}</pre></td>
141141
</tr>
142142
<tr>
143143
<td>期望结果:</td>
144-
<td>${testcase.expectedResult}</td>
144+
<td><pre>${testcase.expectedResult}</pre></td>
145145
</tr>
146146
<tr>
147147
<td>用例描述:</td>
148-
<td>${testcase.description}</td>
148+
<td><pre>${testcase.description}</pre></td>
149149
</tr>
150150
<tr>
151151
<td>创建日期:</td>

0 commit comments

Comments
 (0)