Examples of BrowserType


Examples of com.crawljax.browser.EmbeddedBrowser.BrowserType

  }

  private CrawljaxConfiguration readConfig(String urlValue, String outputDir) {
    CrawljaxConfigurationBuilder builder = CrawljaxConfiguration.builderFor(urlValue);

    BrowserType browser = BrowserType.firefox;
    if (options.specifiesBrowser()) {
      browser = options.getSpecifiedBrowser();
    }

    int browsers = 1;
View Full Code Here

Examples of com.crawljax.browser.EmbeddedBrowser.BrowserType

  private CrawljaxConfiguration readConfig(String urlValue, String outputDir) {
    CrawljaxConfigurationBuilder builder = CrawljaxConfiguration.builderFor(urlValue);

    builder.setOutputDirectory(new File(outputDir));

    BrowserType browser = BrowserType.FIREFOX;
    if (options.specifiesBrowser()) {
      browser = options.getSpecifiedBrowser();
    }

    int browsers = 1;
View Full Code Here

Examples of com.crawljax.browser.EmbeddedBrowser.BrowserType

  private CrawljaxConfiguration readConfig(String urlValue, String outputDir) {
    CrawljaxConfigurationBuilder builder = CrawljaxConfiguration.builderFor(urlValue);

    builder.setOutputDirectory(new File(outputDir));

    BrowserType browser = BrowserType.FIREFOX;
    if (options.specifiesBrowser()) {
      browser = options.getSpecifiedBrowser();
    }

    int browsers = 1;
View Full Code Here

Examples of com.crawljax.browser.EmbeddedBrowser.BrowserType

  }

  private CrawljaxConfiguration readConfig(String urlValue, String outputDir) {
    CrawljaxConfigurationBuilder builder = CrawljaxConfiguration.builderFor(urlValue);

    BrowserType browser = BrowserType.firefox;
    if (commandLine.hasOption(BROWSER)) {
      String browserString = commandLine.getOptionValue(BROWSER);
      browser = getBrowserTypeFromStr(browserString);
    }
View Full Code Here

Examples of net.sf.sahi.util.BrowserType

  }
   
  private SahiTestSuite getPreconfiguredBrowserSuite(final HttpRequest request) {
    SahiTestSuite suite = null;
    BrowserTypesLoader browserLoader = new BrowserTypesLoader();
      BrowserType browserType = browserLoader.getBrowserType(request);
      Session session = request.session();
        String suitePath = request.getParameter("suite");
        String base = request.getParameter("base");
        boolean isSingleSession = "true".equals(request.getParameter("useSingleSession"));
        final int threads = getThreads(request.getParameter("threads"), browserType.capacity());

        // launches browser with pre configured browser settings
        if(browserType != null){
          suite = prepareSuite(suitePath, base, browserType.path(), session.id(), browserType.options(),
          browserType.processName(), (""+threads), browserType.useSystemProxy(), isSingleSession, request);
        }
        return suite;
  }
View Full Code Here

Examples of net.sf.sahi.util.BrowserType

      panel.add(label);
      browserTypesHeight = 100;
    } else {
      for (Iterator<String> iterator = browserTypes.keySet().iterator(); iterator.hasNext();) {
        String name = iterator.next();
        BrowserType browserType = browserTypes.get(name);
        addButton(browserType, panel);
      }
      browserTypesHeight = browserTypes.size() * 50;
    }
    panel.setBackground(new Color(255, 255, 255));
View Full Code Here

Examples of net.sf.sahi.util.BrowserType

        launch(browser, browserProcessName, browserOption, "true".equals(request.getParameter("useSystemProxy")), request);
  }
 
  public void launchPreconfiguredBrowser(final HttpRequest request) throws Exception{
      BrowserTypesLoader browserLoader = new BrowserTypesLoader();
      BrowserType browserType = browserLoader.getBrowserType(request);
       
        // launches browser with pre configured browser settings
        if(browserType != null){
          launch(browserType.path(), browserType.processName(),
              browserType.options(), browserType.useSystemProxy(), request);
        }
  }
View Full Code Here

Examples of net.sf.uadetector.internal.data.domain.BrowserType

  @Test
  public void appendBrowser() {
    final DataBuilder b = new DataBuilder();
    final SortedSet<OperatingSystemPattern> osPatternSet = new TreeSet<OperatingSystemPattern>();
    final OperatingSystem os = new OperatingSystem(1, "n1", "f1", "iu1", osPatternSet, "p1", "pu1", "u1", "i1");
    final BrowserType browserType = new BrowserType(1, "Browser");
    final Browser browser = new Browser(4256, UserAgentFamily.FIREBIRD, UserAgentFamily.FIREBIRD.getName(),
        new TreeSet<BrowserPattern>(), browserType, os, "icn", "iu1", "p1", "pu1", "u1");
    assertThat(b.appendBrowser(browser)).isSameAs(b);
    assertThat(b.appendBrowser(browser)).isSameAs(b); // testing to add same, one more time
  }
View Full Code Here

Examples of net.sf.uadetector.internal.data.domain.BrowserType

  public void appendBrowserBuilder_addSameOneMoreTime() {
    final DataBuilder b = new DataBuilder();
    final Browser.Builder builder = new Browser.Builder();
    builder.setId(1);
    builder.setFamilyName(UserAgentFamily.FIREFOX.getName());
    builder.setType(new BrowserType(1, "Browser"));
    assertThat(b.appendBrowserBuilder(builder)).isSameAs(b);
    assertThat(b.appendBrowserBuilder(builder)).isSameAs(b); // testing to add same one more time
  }
View Full Code Here

Examples of net.sf.uadetector.internal.data.domain.BrowserType

  public void appendBrowserBuilder_successful_testCopyFunction() {
    final DataBuilder d = new DataBuilder().setVersion("test version");
    final Browser.Builder builder = new Browser.Builder();
    builder.setId(1);
    builder.setFamilyName(UserAgentFamily.FIREFOX.getName());
    builder.setType(new BrowserType(1, "Browser"));
    assertThat(d.appendBrowserBuilder(builder)).isSameAs(d);
    builder.setId(2);
    builder.setFamilyName(UserAgentFamily.CHROME.getName());
    builder.setType(new BrowserType(1, "Browser"));
    assertThat(d.appendBrowserBuilder(builder)).isSameAs(d);
    final Data data = d.build();
    assertThat(data.getBrowsers()).hasSize(2);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.