提交 07a830b1 authored 作者: mry's avatar mry

fix(web): 修改了报告样式

上级 da160772
......@@ -2,6 +2,7 @@ package org.matrix.socket;
import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.matrix.actuators.datasource.IDataSourceService;
import org.matrix.actuators.httpclient.HttpResponseDetail;
......@@ -29,6 +30,7 @@ import org.matrix.testNg.web.entity.ReportMessage;
import org.matrix.testNg.web.report.TestNgImpl;
import org.matrix.testNg.web.vo.DataBeansJobVo;
import org.matrix.testNg.web.vo.DataBeansMoveVo;
import org.matrix.util.JsonUtil;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.CloseStatus;
......@@ -167,7 +169,7 @@ public class ExecutionSocketHandler extends TextWebSocketHandler {
if (dataExecuteResult.getBaseTestCaseResponseDetail() != null){
if (dataExecuteResult.getBaseTestCaseResponseDetail() instanceof HttpResponseDetail){
HttpResponseDetail httpResponseDetail = (HttpResponseDetail)dataExecuteResult.getBaseTestCaseResponseDetail();
dataBeans.setDetail(httpResponseDetail.getResponseBody());
dataBeans.setDetail(JsonUtil.toJsonPretty(JSONObject.parse(httpResponseDetail.getResponseBody())));
}
}
dataBeans.setResult(dataExecuteResult.getExecutionStatus());
......
......@@ -51,7 +51,7 @@
<th>编号</th>
<th>用例名称</th>
<th>用例类型</th>
<th>详细参数</th>
<th>执行结果</th>
<th>用例描述</th>
<th>执行结果</th>
<th>执行时间</th>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论