Package net.sf.sahi.ant

Examples of net.sf.sahi.ant.Report


            String browserProcessName = args[7];
            if (args.length == 9) {
                browserOption = args[8];
            }
            TestRunner testRunner = new TestRunner(suiteName, browser, base, sahiHost, port, threads, browserOption, browserProcessName);
            testRunner.addReport(new Report("html", logDir));
            String status = testRunner.execute();
            System.out.println("Status:" + status);
        } catch (ConnectException ce) {
            System.err.println(ce.getMessage());
            System.err.println("Could not connect to Sahi Proxy.\nVerify that the Sahi Proxy is running on the specified host and port.");
View Full Code Here


          host, port2, map.get("threads"), map.get("browserOption"), map.get("browserProcessName"));
    }
    if ("true".equals(map.get("htmlLog"))) {
      String logDir =  map.get("htmlLogDir");
      if (logDir == null || "default".equals(logDir)) logDir = "";
      testRunner.addReport(new Report("html", logDir));
    }
    if ("true".equals(map.get("tm6Log"))) {
      String logDir =  map.get("tm6LogDir");
      if (logDir == null || "default".equals(logDir)) logDir = "";
      testRunner.addReport(new Report("tm6", logDir));
    }
    if ("true".equals(map.get("junitLog"))) {
      String logDir =  map.get("junitLogDir");
      if (logDir == null || "default".equals(logDir)) logDir = "";
      testRunner.addReport(new Report("junit", logDir));
    }
    if (map.get("initJS") != null) {
      testRunner.setInitJS(map.get("initJS"));
    }
    if (map.get("extraInfo") != null) {
View Full Code Here

        System.out.println("this.isSingleSession == " + this.isSingleSession);
        if(this.isSingleSession){
          urlStr.append("&useSingleSession=").append(this.isSingleSession);
        }       
        if (listReport == null || listReport.size() == 0) {
            addReport(new Report("html", null));
        }
        for (Iterator<Report> iterator = listReport.iterator(); iterator.hasNext();) {
            Report report = iterator.next();
            urlStr.append("&").append(encode(report.getType())).append("=").append(report.getLogDir() != null ? encode(report.getLogDir()) : "");
        }
        if (createIssue != null) {
            urlStr.append("&").append(encode(createIssue.getTool())).append("=");
            if (createIssue.getPropertiesFile() != null) {
                urlStr.append(encode(createIssue.getPropertiesFile()));
View Full Code Here

   
   
    TestRunner testRunner =
      new TestRunner(suiteName, browserType, base, threads);
   
    testRunner.addReport(new Report("junit", logDir));
    testRunner.setInitJS(initJS);
    String status = testRunner.execute();
    System.out.println(status);
    assertEquals("SUCCESS", status);
  }
View Full Code Here

    String browserProcessName = "firefox.exe";
    String logDir = "D:/temp/logs/"; // relative paths will be resolved relative to userdata dir.
   
    TestRunner testRunner = new TestRunner(suiteName, browser, base, sahiHost,
          port, threads, browserOption, browserProcessName);
    testRunner.addReport(new Report("html", logDir));
        String status = testRunner.execute();
        System.out.println(status);
        assertEquals("SUCCESS", status);
  }
View Full Code Here

    TestRunner testRunner = new TestRunner(suiteName, browserType, base, sahiHost, port, threads);
    HashMap<String, Object> variableHashMap = new HashMap<String, Object>();
    variableHashMap.put("$user", "test");
    variableHashMap.put("$pwd", "secret");
    testRunner.setInitJS(variableHashMap);
    testRunner.addReport(new Report("tm6", logDir));
        String status = testRunner.execute();
        System.out.println(status);
        assertEquals("SUCCESS", status);
       
       
View Full Code Here

TOP

Related Classes of net.sf.sahi.ant.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.