fix(用例管理): 增加覆盖率
--bug=1045255 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001045255
This commit is contained in:
parent
07a20305ac
commit
973d9ddb9a
|
@ -403,7 +403,7 @@ public class XMindCaseParser {
|
|||
*/
|
||||
private String getSteps(List<Attached> attacheds, String caseName) {
|
||||
List<FunctionalCaseStepDTO> functionalCaseStepDTOS = new ArrayList<>();
|
||||
if (!attacheds.isEmpty()) {
|
||||
if (attacheds!=null && !attacheds.isEmpty()) {
|
||||
for (int i = 0; i < attacheds.size(); i++) {
|
||||
// 保持插入顺序,判断用例是否有相同的steps
|
||||
FunctionalCaseStepDTO functionalCaseStepDTO = new FunctionalCaseStepDTO();
|
||||
|
|
|
@ -407,6 +407,14 @@ public class FunctionalCaseControllerTests extends BaseTest {
|
|||
paramMap.add("request", JSON.toJSONString(editRequest));
|
||||
paramMap.add("files", files);
|
||||
this.requestMultipart(FUNCTIONAL_CASE_UPDATE_URL, paramMap);
|
||||
|
||||
editRequest.setExpectedResult("adfadsasfdf");
|
||||
editRequest.setPrerequisite("adfadsasfdf");
|
||||
editRequest.setDescription("adfadsasfdf");
|
||||
paramMap = new LinkedMultiValueMap<>();
|
||||
paramMap.add("request", JSON.toJSONString(editRequest));
|
||||
paramMap.add("files", files);
|
||||
this.requestMultipart(FUNCTIONAL_CASE_UPDATE_URL, paramMap);
|
||||
}
|
||||
|
||||
private List<CaseCustomFieldDTO> updateCustomFields(FunctionalCaseEditRequest editRequest) {
|
||||
|
|
|
@ -58,6 +58,10 @@ public class NoticeTemplateControllerTests extends BaseTest {
|
|||
typeList.add(NoticeConstants.TaskType.BUG_TASK);
|
||||
typeList.add(NoticeConstants.TaskType.JENKINS_TASK);
|
||||
typeList.add(NoticeConstants.TaskType.SCHEDULE_TASK);
|
||||
typeList.add(NoticeConstants.TaskType.API_REPORT_TASK);
|
||||
typeList.add(NoticeConstants.TaskType.BUG_SYNC_TASK);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue