protected void performExecution() throws Exception { String testSystemName = TestSystem.getTestSystemName(data); String testRunner = TestSystem.getTestRunner(data); TestSystem testSystem = testSystemGroup.startTestSystem(testSystemName, testRunner, classPath); if (testSystemGroup.isSuccessfullyStarted()) { addToResponse(HtmlUtil.getHtmlOfInheritedPage("PageHeader", page)); SetupTeardownIncluder.includeInto(data, true); if (data.getContent().length() == 0) addEmptyContentMessage(); testSystem.sendPageData(data); testSystemGroup.bye(); } }
protected void doSending() throws Exception { fastTest |= request.hasInput("debug"); data = page.getData(); classPath = buildClassPath(); startHtml(); sendPreTestNotification(); testSystemGroup = new TestSystemGroup(context, page, this); testSystemGroup.setFastTest(fastTest); log = testSystemGroup.getExecutionLog(); performExecution(); finishSending(); }
public synchronized void exceptionOccurred(Throwable e) { try { completeResponse(); testSystemGroup.kill(); } catch (Exception e1) { e1.printStackTrace(); } }