// StringToObjectMap properties = new StringToObjectMap();
// for( String name : testRunContext.getPropertyNames() )
// properties.put( name, testRunContext.getProperty( name ));
result.startTimer();
StringToObjectMap properties = new StringToObjectMap();
if (isCopyLoadTestProperties() && properties.containsKey(TestRunContext.LOAD_TEST_CONTEXT)) {
properties
.put(TestRunContext.THREAD_INDEX, testRunContext.getProperty(TestRunContext.THREAD_INDEX));
properties.put(TestRunContext.TOTAL_RUN_COUNT,
testRunContext.getProperty(TestRunContext.TOTAL_RUN_COUNT));
properties.put(TestRunContext.LOAD_TEST_CONTEXT,
testRunContext.getProperty(TestRunContext.LOAD_TEST_CONTEXT));
properties.put(TestRunContext.LOAD_TEST_RUNNER,
testRunContext.getProperty(TestRunContext.LOAD_TEST_RUNNER));
properties.put(TestRunContext.RUN_COUNT, testRunContext.getProperty(TestRunContext.RUN_COUNT));
}
if (isCopyHttpSession() && testRunContext.hasProperty(TestRunContext.HTTP_STATE_PROPERTY)) {
properties.put(TestRunContext.HTTP_STATE_PROPERTY,
testRunContext.getProperty(TestRunContext.HTTP_STATE_PROPERTY));
}
properties.put(TestRunContext.INTERACTIVE, testRunContext.getProperty(TestRunContext.INTERACTIVE));
properties.put("#CallingRunTestCaseStep#", this);
properties.put("#CallingTestCaseRunner#", testRunner);
properties.put("#CallingTestRunContext#", testRunContext);
testCaseRunner = runningTestCase.run(properties, true);
testCaseRunner.waitUntilFinished();
result.stopTimer();