refactor(测试计划): 用例执行历史增加区别显示步骤的标识
This commit is contained in:
parent
87c50418b9
commit
28d9aa8d6e
|
@ -6,7 +6,6 @@ import io.metersphere.dto.BugProviderDTO;
|
|||
import io.metersphere.plan.constants.TestPlanResourceConfig;
|
||||
import io.metersphere.plan.dto.request.*;
|
||||
import io.metersphere.plan.dto.response.*;
|
||||
import io.metersphere.plan.mapper.ExtTestPlanMapper;
|
||||
import io.metersphere.plan.service.TestPlanCaseLogService;
|
||||
import io.metersphere.plan.service.TestPlanFunctionalCaseService;
|
||||
import io.metersphere.plan.service.TestPlanManagementService;
|
||||
|
@ -49,8 +48,6 @@ public class TestPlanFunctionalCaseController {
|
|||
private TestPlanManagementService testPlanManagementService;
|
||||
@Resource
|
||||
private TestPlanFunctionalCaseService testPlanFunctionalCaseService;
|
||||
@Resource
|
||||
private ExtTestPlanMapper extTestPlanMapper;
|
||||
|
||||
@PostMapping(value = "/sort")
|
||||
@Operation(summary = "测试计划功能用例-功能用例拖拽排序")
|
||||
|
|
|
@ -24,4 +24,7 @@ public class TestPlanCaseExecHistoryResponse extends TestPlanCaseExecuteHistory
|
|||
|
||||
@Schema(description = "执行人邮箱")
|
||||
private String email;
|
||||
|
||||
@Schema(description = "步骤描述")
|
||||
private boolean isStep = false;
|
||||
}
|
||||
|
|
|
@ -705,6 +705,7 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService {
|
|||
item.setContentText(new String(item.getContent(), StandardCharsets.UTF_8));
|
||||
}
|
||||
if (item.getSteps() != null) {
|
||||
item.setStep(true);
|
||||
item.setStepsExecResult(new String(item.getSteps(), StandardCharsets.UTF_8));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue