@Test public void test_get_baidu() throws Exception { httpClientUtils = new HttpClientUtils(); httpClientUtils.setReUserConnection(false); httpClientUtils.initHttpClient(); Logger.info(this, "-------------- HttpClient initialized -------------"); // for(int i =0;i<3){ // // } httpClientUtils.get("http://www.lufax.com" + "?" + RandomUtils.nextInt()); httpClientUtils.get("http://www.lufax.com" + "?" + RandomUtils.nextInt()); // httpClientUtils.get("http://www.lufax.com" + "?" + RandomUtils.nextInt()); // httpClientUtils.get("http://www.lufax.com" + "?" + RandomUtils.nextInt()); // httpClientUtils.get("http://www.lufax.com" + "?" + RandomUtils.nextInt()); // httpClientUtils.get("http://www.lufax.com" + "?" + RandomUtils.nextInt()); ExceptionHandler exceptionHandler = new ExceptionHandler() { public boolean handle(Throwable e) { return true; } }; runTest("http://www.lufax.com", 1, exceptionHandler, 10); // System.out.println(resp); }