Example #1
0
 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();
   }
 }
Example #2
0
  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();
  }
Example #3
0
 public synchronized void exceptionOccurred(Throwable e) {
   try {
     completeResponse();
     testSystemGroup.kill();
   } catch (Exception e1) {
     e1.printStackTrace();
   }
 }