首页 > 自动化运维 > 大规模网络运维 > 我的精准测试实战笔记,从这两个项目需求开始!
最近一直在思考如何提高测试效率,又要保证测试不遗漏,于是练习精准测试,边学习边记录,本文仅个人实践所得,尽管记录时经过仔细斟酌,仍有不足之处欢迎你们参与讨论。

SELECT company_name,create_user FROM apply_Table where company_name like '%单位%'
@ApiOperation("删除")
@GetMapping("/forcedDelByIdList")
public Result forcedDelByIdList(@RequestParam("id") String id,@RequestParam("type") String type){
return ApplyService.forcedDelByIdList(id,type);
@Data
public class ApplyParam {
@ApiModelProperty(value = "类型1:申请2:发通知3:定计划")
private String type;
@ApiModelProperty(value = "申请ID")
private List<String> IdList;
@ApiModelProperty(value = "审核状态 1待提交,2审核中,3审核通过") private Integer Status; private String itemNum
public interface ApplyMapper extends BaseMapper<Apply> {
List<ApplyVO> page(ApplyQueryParam ApplyQueryParam);
List<ApplyVO> companyPage(ApplyQueryParam ApplyQueryParam);
/**
* 根据类型和分组统计数量
* @param statistiaram
*/
List<YearPlanExecuteVo> selectApplyCountGroupByTypeAndUnit(Statistiaram statistiaram);
List<InfoVO> selectList(@Param("param") StatisticsVO param);
ApplyVO apple(@Param("id") String id);
@Mapper
public interface InformationMapper extends BaseMapper<MotifInformation> {
@ApiModelProperty(value = "其他编码") private String ggGroupCode
@Transactional(rollbackFor = Exception.class)
public Result forcedDelByIdList(String id,String forceType){
String authorization = baseUtils.getAuthorization();
UserPO userPO = userServiceFeignClient.getCurrentLoginedUser(authorization);
//判断角色
List<RolePO> loginUserRoles = userServiceFeignClient.getLoginUserRoles(userPO.getId(),authorization);
boolean forcedDelAttendant = loginUserRoles.stream().anyMatch(item -> item.getCode().equals("force-delete"));
if(!forcedDelAttendant){
return Result.error("无权限,请联系管理员");
}
if(type > 1){
Notification Notification = (Notification) map.get("Notification").get("Notification");
if(Notification != null){
String operType = "del";
NotificationParam param = (NotificationParam)map.get("Notification").get("param");
SendToNotification sendToNotification = DirectorServiceImpl.convertNotification(param, Notification.getId(), operType);
}
Apply Apply = (Apply) map.get("Apply").get("Apply");
this.removeById(Apply.getId());
return Result.success();
}
if(Plan != null)
Plan.setDelFlag(1);
PlanMap.put("Plan",Plan);
}
}catch (Exception e){
log.error("获取删除资源错误!");
}
}else {
HashMap<String,Object> hashMap = new HashMap<>();
hashMap.put("date_type_log","审核完或已定计划不可删除");
map.put("dateTypeLog",hashMap);
}
}
public List<InstanceVO> clearingProcess(String Id){
List<InstanceVO> InstanceVO = new ArrayList<>();
try {
CommonResult res = sServiceFeignClient.getChildProcessesByBusiness(Id,baseUtils.getAuthorization());
String code = JSON.toJSONString(res.get("code"));
if(code.equals("200")){
InstanceVO = JSON.parseArray(JSON.toJSONString(res.get("data")),InstanceVO.class);
}
}catch (Exception e){
e.printStackTrace();
}
return InstanceVO;
· 删除单据,同时删除业务流程(主流程、子流程、并行流程)
· 可以到我的个人号:atstudy-js,可以免费领取一份10G软件测试工程师面试宝典文档资料。同时我邀请你进入我们的软件测试学习交流平台,大家可以一起探讨交流软件测试,共同学习软件测试技术、面试等软件测试方方面面,了解测试行业的最新趋势,助你快速进阶Python自动化测试/测试开发,稳住当前职位同时走向高薪之路。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70034708/viewspace-3064902/ ,如需转载,请注明出处,否则将追究法律责任。