提交 cfb7c87a authored 作者: mry's avatar mry

fix(base): 处理了爆红问题

上级 c5085307
......@@ -46,9 +46,9 @@ public class GenerateReporter {
context.put("overView", dataBean);
context.put("move", dataBeanMove);
if (bean.getResult()) {
context.put("pass", bean);
context.put("pass", dataBeansList);
} else {
context.put("fail", bean);
context.put("fail", dataBeansList);
}
}
//文件夹不存在的话进行创建
......@@ -71,4 +71,5 @@ public class GenerateReporter {
ReporterUtils.map = new HashMap<>();
}
}
}
\ No newline at end of file
......@@ -45,7 +45,7 @@ public class GenerateReporterJob {
for (DataBeans bean : dataBeansList) {
context.put("overView", dataBean);
for (DataBeanMove dataBeanMove : dataBeanMoves) {
context.put("move", dataBeanMove);
context.put("move", dataBeanMoves);
if (bean.getResult()) {
context.put("pass", bean);
} else {
......
......@@ -6,6 +6,7 @@ import org.matrix.BaseBootApplication;
import org.matrix.actuators.checkpoint.CheckPointActuator;
import org.matrix.actuators.httpclient.HttpClientActuator;
import org.matrix.actuators.usecase.CaseActuator;
import org.matrix.actuators.usecase.RunCaseResult;
import org.matrix.actuators.usecase.TestCaseExecuteResult;
import org.matrix.database.entity.TestCase;
import org.matrix.database.entity.TestCaseListDataBto;
......@@ -109,9 +110,9 @@ public class TestXml extends AbstractTestNGSpringContextTests {
testDataList
)
);
List<TestCaseExecuteResult> testCaseExecuteResults = caseActuator.runTestCase(null, caseExecuteVo);
resultMap.put(caseId, testCaseExecuteResults);
ReporterUtils.userResultMap.put(1L, resultMap);
// RunCaseResult runCaseResult = caseActuator.runTestCase(null, caseExecuteVo);
// resultMap.put(caseId, runCaseResult);
// ReporterUtils.userResultMap.put(1L, resultMap);
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -80,24 +80,21 @@
<table id="summary" class="tabNoBorder">
<tr class="columnHeadings">
<th>用例总数</th>
<th>未执行用例数</th>
<th>执行通过</th>
<th>执行失败</th>
<th>跳过用例数</th>
<th>执行时间(s)</th>
<th>用例通过率</th>
</tr>
<tr>
<td>${overView.allTestsSize}</td><#--用例总数-->
<td>${overView.excludeTestsSize}</td><#--未执行用例数-->
<td>${overView.passedTestsSize}</td><#--执行通过-->
<td>${overView.failedTestsSize}</td><#--执行失败-->
<td>${overView.skippedTestsSize}</td><#--跳过用例数-->
<td>${overView.testsTime}</td><#--执行时间(s)-->
<td>${overView.passPercent}</td><#--用例通过率-->
<td>${overView.total}</td><#--用例总数-->
<td>${overView.passNum}</td><#--执行通过-->
<td>${overView.failNum}</td><#--执行失败-->
<td>${overView.allTime}</td><#--执行时间(s)-->
<td>${overView.probability}</td><#--用例通过率-->
</tr>
</table>
<br/><br/>
<h2>Move</h2>
<table id="moveAction" class="tabNoBorder">
<tr class="columnHeadings">
<th>前置动作</th>
......@@ -118,9 +115,6 @@
<th>用例名称</th>
<th>用例类型</th>
<th>详细参数</th>
<th>前置动作</th>
<th>中间动作</th>
<th>后置动作</th>
<th>用例描述</th>
<th>执行结果</th>
<th>执行时间(s)</th>
......@@ -134,11 +128,8 @@
<td>${failCase.testCaseName!}</td><#--用例名称-->
<td>${failCase.type!}</td><#--用例类型-->
<td>${failCase.detail!}</td><#--详细参数-->
<td>${failCase.moveBefore!}</td><#--前置动作-->
<td>${failCase.moveAfterCase!}</td><#--中间动作-->
<td>${failCase.moveAfterTest!}</td><#--后置动作-->
<td>${failCase.description!}</td><#--用例描述-->
<td>${failCase.result}</td>
<td>${failCase.result?c}</td>
<td>${failCase.duration!}</td><#--<th>执行时间(s)</th>-->
<td>${failCase.resultMessage!}</td>
</tr>
......@@ -153,8 +144,8 @@
<td>${passCase.moveBefore!}</td><#--前置动作-->
<td>${passCase.moveAfterCase!}</td><#--中间动作-->
<td>${passCase.moveAfterTest!}</td><#--后置动作-->
<td>${passCase.description}</td><#--用例描述-->
<td>${passCase.result}</td>
<td>${passCase.description!}</td><#--用例描述-->
<td>${passCase.result?c}</td>
<td>${passCase.duration!}</td><#--执行时间(s)-->
<td>${passCase.resultMessage!}</td><#--结果信息-->
</tr>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论