RunnerFactory { public static Runner getRunner(@Nonnull TestStepContext tsc) { TestStep testStep = tsc.getTestStep(); Runner runner = null; if (testStep instanceof ThinkTimeStep) { runner = new ThinkTimeRunner(tsc); } else if (testStep instanceof AuthenticationStep) { runner = new AuthenticationRunner(tsc); } else if (testStep instanceof SleepTimeStep) { runner = new SleepTimeRunner(tsc); } else if (testStep instanceof VariableStep) { runner = new VariableRunner(tsc); } else if (testStep instanceof TimerStep) { runner = new TimerRunner(tsc); } else if (testStep instanceof ClearCookiesStep) { runner = new ClearCookiesRunner(tsc); } else if (testStep instanceof LogicStep) { runner = new LogicRunner(tsc); } else if (testStep instanceof CookieStep) { runner = new SetCookieRunner(tsc); } else { runner = new RequestRunner(tsc); } return runner; }  static Runner getRunner(@Nonnull TestStepContext tsc);  }
@Test public void testGetRunner_1() throws Exception { TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, "com.intuit.tank.runner.TestHttpClient"); testPlanRunner.setHttpClient(null); TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner); Runner result = RunnerFactory.getRunner(tsc); assertNotNull(result); }
@Test public void testGetRunner_2() throws Exception { TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, "com.intuit.tank.runner.TestHttpClient"); testPlanRunner.setHttpClient(null); TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner); Runner result = RunnerFactory.getRunner(tsc); assertNotNull(result); }
@Test public void testGetRunner_3() throws Exception { TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, "com.intuit.tank.runner.TestHttpClient"); testPlanRunner.setHttpClient(null); TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner); Runner result = RunnerFactory.getRunner(tsc); assertNotNull(result); }
@Test public void testGetRunner_4() throws Exception { TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, "com.intuit.tank.runner.TestHttpClient"); testPlanRunner.setHttpClient(null); TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner); Runner result = RunnerFactory.getRunner(tsc); assertNotNull(result); }
@Test public void testGetRunner_5() throws Exception { TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, "com.intuit.tank.runner.TestHttpClient"); testPlanRunner.setHttpClient(null); TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner); Runner result = RunnerFactory.getRunner(tsc); assertNotNull(result); }
@Test public void testGetRunner_6() throws Exception { TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, "com.intuit.tank.runner.TestHttpClient"); testPlanRunner.setHttpClient(null); TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner); Runner result = RunnerFactory.getRunner(tsc); assertNotNull(result); }
@Test public void testGetRunner_7() throws Exception { TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, "com.intuit.tank.runner.TestHttpClient"); testPlanRunner.setHttpClient(null); TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner); Runner result = RunnerFactory.getRunner(tsc); assertNotNull(result); }
@Test public void testGetRunner_8() throws Exception { TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, "com.intuit.tank.runner.TestHttpClient"); testPlanRunner.setHttpClient(null); TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner); Runner result = RunnerFactory.getRunner(tsc); assertNotNull(result); }