提交 60150787 authored 作者: 黄夏豪's avatar 黄夏豪

fix(base): 修改了httpclient的作用域

上级 fde38b0d
......@@ -186,8 +186,6 @@ public class CaseActuator implements Actuator {
clearMoveData();
//将线程中正在执行的DataId清除
LogQueueRuntime.clearTestData();
//将线程中的浏览器清除掉
httpRequestConfig.clear();
}
}
return resultList;
......@@ -377,6 +375,9 @@ public class CaseActuator implements Actuator {
);
runCaseResult.getCaseReports().add(testCaseReport);
LogQueueRuntime.addNewLog(this.getClass(), CASE_ACTUATOR, String.format("[用例执行器] 产生错误:%s", e.getMessage()));
}finally {
//将线程中的浏览器清除掉
httpRequestConfig.clear();
}
}
} catch (GlobalException | IOException e) {
......
......@@ -227,6 +227,8 @@ class CaseActuatorTest {
"var b = new BaseEntity('{\"name\":1,\"age\":3}');\n" +
"\n");
Object read = JsonPath.parse(json).read("$.store.bicycle.color");
Object eval = jsEngine.eval(JSON.toJSONString(read) + ".length()");
System.out.println("1");
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论