Package net.sf.sahi.report

Examples of net.sf.sahi.report.Report


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"));
        }
    }
View Full Code Here


  private void setReporter(boolean setDefaultReporters) {
    final String reportFileNameBase = getScriptName();
    if (setDefaultReporters){
      if (suite != null) {
        report = new Report(reportFileNameBase, suite.getListReporter());
      } else {
        report = new Report(reportFileNameBase, new HtmlReporter());
      }
    }else{
      report = new Report(reportFileNameBase);
    }
   
  }
View Full Code Here

        String message = "*** Forcefully terminating script. \nNo response from browser within expected time ("
            + inactivityLimit / 1000 + " seconds).";
        System.out.println(message);
        ScriptRunner scriptRunner = session.getScriptRunner();
        scriptRunner.setStatus(Status.FAILURE);
        Report report = scriptRunner.getReport();
        if (report != null) {
          report.addResult(message, "ERROR", "", "");
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.sahi.report.Report

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.