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

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

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