Package com.caplin.cutlass.conf

Examples of com.caplin.cutlass.conf.TestRunnerConfiguration


  // is temporarily testing with another browser while running from Eclipse. In this way, a --b switch can
  // eventually be added to the test-runner to allow the browser to be specified at the command line.
  public static WebDriver getDriver() throws Exception
  {
    File runnerConfPath = getTestRunnerConfig();
    TestRunnerConfiguration runnerConf = TestRunnerConfiguration.getConfiguration(runnerConfPath, null);
   
    return getDriver(runnerConf.getDefaultBrowser());
  }
View Full Code Here


 
  private static File getBrowserPathFromConf(String browser) throws Exception
  {
    String browserPath = null;
    File runnerConfPath = getTestRunnerConfig();
    TestRunnerConfiguration runnerConf = TestRunnerConfiguration.getConfiguration(runnerConfPath, null);
   
    Map<String, String> browserPaths = runnerConf.getBrowserPathsForOS();
   
    if (!browserPaths.containsKey(browser))
    {
      throw new Exception("No config specified for browser " + browser + " in configuration file '" + runnerConfPath.getPath() + "'");
    }
View Full Code Here

TOP

Related Classes of com.caplin.cutlass.conf.TestRunnerConfiguration

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.