Browse Source

测试结果

master
zhouyl 1 year ago
parent
commit
997f00b02c
  1. 18
      tp-functional/src/main/java/com/inscloudtech/functional/service/impl/FuncCarApiServiceImpl.java

18
tp-functional/src/main/java/com/inscloudtech/functional/service/impl/FuncCarApiServiceImpl.java

@ -66,14 +66,18 @@ public class FuncCarApiServiceImpl implements IFuncCarApiService {
if(collect.containsKey(record.getApiUrl())){
List<FuncCarApi> apis = collect.get(record.getApiUrl());
for (FuncCarApi api : apis) {
if(api.getJsonResult().equals(record.getJsonResult()) && !api.getOperId().equals(record.getOperId())){
String s = api.getOs() + api.getBrowser() + api.getEquipment() + api.getNetwork();
if(!flagVal.equals(s)){
record.setTestResult("接口兼容性测试通过");
break;
}else {
record.setTestResult("该记录无比对样本");
if(api.getJsonResult().equals(record.getJsonResult())){
if(!api.getOperId().equals(record.getOperId())){
String s = api.getOs() + api.getBrowser() + api.getEquipment() + api.getNetwork();
if(!flagVal.equals(s)){
record.setTestResult("接口兼容性测试通过");
break;
}else {
record.setTestResult("该记录无比对样本");
}
}
}else {
record.setTestResult("接口兼容性测试未通过");
}
}
}else {

Loading…
Cancel
Save