protected void performExecution() throws IOException, InterruptedException { MultipleTestsRunner runner = newMultipleTestsRunner(getPagesToRun()); runningTestingTracker.addStartedProcess(testRunId, runner); if (isInteractive()) { ((InteractiveFormatter) mainFormatter).setTrackingId(testRunId); } try { runner.executeTestPages(); } finally { runningTestingTracker.removeEndedProcess(testRunId); log.publish(context.pageFactory); } }
@Override public Response makeResponse(FitNesseContext context, Request request) { super.makeResponse(context, request); testRunId = runningTestingTracker.generateNextTicket(); response.addHeader("X-FitNesse-Test-Id", testRunId); return response; }