fix(UI自动化): 失败重试增加grid是否启动判断防止死循环
This commit is contained in:
parent
1f1b96fb52
commit
bf4aa4e8c8
|
@ -992,10 +992,13 @@ public class ApiScenarioReportService {
|
||||||
*/
|
*/
|
||||||
private long getUiErrorSize(ResultDTO dto) {
|
private long getUiErrorSize(ResultDTO dto) {
|
||||||
int errorSize = 0;
|
int errorSize = 0;
|
||||||
boolean success = false;
|
boolean success;
|
||||||
String processType = null;
|
String processType;
|
||||||
String cmdName = null;
|
String cmdName;
|
||||||
for (RequestResult r : dto.getRequestResults()) {
|
RequestResult r = null;
|
||||||
|
if (CollectionUtils.isNotEmpty(dto.getRequestResults())) {
|
||||||
|
r = dto.getRequestResults().get(dto.getRequestResults().size() - 1);
|
||||||
|
}
|
||||||
if (StringUtils.isNotEmpty(r.getResponseResult().getHeaders())) {
|
if (StringUtils.isNotEmpty(r.getResponseResult().getHeaders())) {
|
||||||
JSONArray responseArr = JSONArray.parseArray(r.getResponseResult().getHeaders());
|
JSONArray responseArr = JSONArray.parseArray(r.getResponseResult().getHeaders());
|
||||||
for (int i = 0; i < responseArr.size(); i++) {
|
for (int i = 0; i < responseArr.size(); i++) {
|
||||||
|
@ -1008,7 +1011,6 @@ public class ApiScenarioReportService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return errorSize;
|
return errorSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue