public class TestReporter {
public void logTestResult(final HttpRequest request) {
Session session = request.session();
ScriptRunner scriptRunner = session.getScriptRunner();
if (scriptRunner == null) return;
Report report = scriptRunner.getReport();
if (report != null) {
report.addResult(SahiScript.stripSahiFromFunctionNames(request.getParameter("msg")), request.getParameter("type"), request.getParameter("debugInfo"), request.getParameter("failureMsg"));
}
}