fix(接口测试): 修复接口自动化场景接口测试响应断言不准确的缺陷
--bug=1010232 --user=王孝刚 【接口测试】github#10412,接口测试响应断言不准确 https://www.tapd.cn/55049933/s/1104624
This commit is contained in:
parent
e2222b688b
commit
8da695ef2b
|
@ -67,7 +67,7 @@ public class ApiDefinitionExecResultService {
|
|||
|
||||
for (RequestResult item : requestResults) {
|
||||
item.setEndTime(System.currentTimeMillis());
|
||||
if (item.getResponseResult() != null) {
|
||||
if (item.getResponseResult() != null && item.getResponseResult().getResponseTime() <= 0) {
|
||||
item.getResponseResult().setResponseTime((item.getEndTime() - item.getStartTime()));
|
||||
}
|
||||
if (!StringUtils.startsWithAny(item.getName(), "PRE_PROCESSOR_ENV_", "POST_PROCESSOR_ENV_")) {
|
||||
|
|
Loading…
Reference in New Issue