fix(UI 自动化): 点击批量展开步骤,不显示具体报错信息

--bug=1016036 --user=张大海 【UI测试】UI测试报告,失败tab页,点击批量展开步骤,不显示具体报错信息 https://www.tapd.cn/55049933/s/1236517
This commit is contained in:
zhangdahai112 2022-08-31 14:12:04 +08:00 committed by zhangdahai112
parent 7146df14e2
commit fbdffc975c
4 changed files with 8 additions and 2 deletions

View File

@ -564,7 +564,8 @@ public class ApiScenarioReportStructureService {
private ApiScenarioReportDTO getReport(String reportId, boolean selectContent) {
ApiScenarioReport mainReport = apiScenarioReportMapper.selectByPrimaryKey(reportId);
List<ApiScenarioReportResultWithBLOBs> reportResults = null;
if (selectContent) {
if (selectContent || mainReport.getReportType().startsWith(SystemConstants.TestTypeEnum.UI.name())) {
// UI 报告不执行懒加载
ApiScenarioReportResultExample example = new ApiScenarioReportResultExample();
example.createCriteria().andReportIdEqualTo(reportId);
reportResults = reportResultMapper.selectByExampleWithBLOBs(example);

View File

@ -337,6 +337,9 @@ export default {
},
getReport() {
let url = "/api/scenario/report/get/" + this.reportId;
if (this.report.reportType === "UI_INDEPENDENT") {
url += "?selectReportContent=true";
}
this.$get(url, response => {
this.report = response.data || {};
if (response.data) {

View File

@ -20,6 +20,7 @@
<ui-command-result
:step-id="node.stepId"
:index-number="node.index"
:tree-node="treeNode"
:command="node"
:isActive="isActive"
:result="node.value"/>
@ -59,6 +60,7 @@ export default {
props: {
scenario: Object,
node: Object,
treeNode: Object,
console: String,
isActive: Boolean,
isShare:Boolean,

View File

@ -15,7 +15,7 @@
highlight-current
class="ms-tree ms-report-tree" ref="resultsTree">
<span slot-scope="{ node, data}" style="width: 99%" @click="nodeClick(node)">
<ms-scenario-result :node="data" :console="console" v-on:requestResult="requestResult"
<ms-scenario-result :node="data" :tree-node="node" :console="console" v-on:requestResult="requestResult"
:isActive="isActive" :is-share="isShare" :share-id="shareId"/>
</span>
</el-tree>