Package com.crawljax.core

Examples of com.crawljax.core.CrawljaxRunner


        assertNotNull(currentState);
      }
    });

    config = builder.build();
    controller = new CrawljaxRunner(config);
    session = controller.call();

    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < plugins.size(); i++) {
      Class<? extends Plugin> plugin = plugins.get(i);
View Full Code Here


              List<Eventable> pathToFailure) {
        hits.incrementAndGet();
      }
    });

    controller = new CrawljaxRunner(builder.build());
  }
View Full Code Here

        LOG.error("\n\n!!! Invariant {} violated !!!\n", invariant);
      }

    });

    CrawljaxRunner crawljax = new CrawljaxRunner(builder.build());
    crawljax.call();
  }
View Full Code Here

   
    // We want to use two browsers simultaneously.
    builder.setBrowserConfig(new BrowserConfiguration(BrowserType.FIREFOX, 1));

    CrawljaxRunner crawljax = new CrawljaxRunner(builder.build());
    crawljax.call();

  }
View Full Code Here

  /**
   * Run this method to start the crawl.
   */
  public static void main(String[] args) {
    CrawljaxRunner crawljax =
            new CrawljaxRunner(CrawljaxConfiguration.builderFor("http://demo.crawljax.com/")
                    .build());
    crawljax.call();
  }
View Full Code Here

    CrawljaxConfiguration config =
            CrawljaxConfiguration.builderFor("http://demo.crawljax.com")
                    .addPlugin(new MetricPlugin())
                    .build();

    new CrawljaxRunner(config).call();
  }
View Full Code Here

      @Override
      public String toString() {
        return "Our example plugin";
      }
    });
    CrawljaxRunner crawljax = new CrawljaxRunner(builder.build());
    crawljax.call();
  }
View Full Code Here

   */
  public CrawlSession crawl() throws CrawljaxException {
    if (!hasSetup.get()) {
      setup();
    }
    CrawljaxRunner crawljax = new CrawljaxRunner(configBuilder.build());
    CrawlSession session = crawljax.call();
    webServer.stop();
    return session;
  }
View Full Code Here

  @Before
  public void setup() throws Exception {
    if (!HAS_RUN.get()) {
      HAS_RUN.set(true);
      CrawljaxRunner crawljax = null;
      crawljax = new CrawljaxRunner(getCrawljaxConfiguration());
      session = crawljax.call();
      HAS_FINISHED.set(true);
    } else {
      while (!HAS_FINISHED.get()) {
        LOG.debug("Waiting for crawl to finish...");
        Thread.sleep(500);
View Full Code Here

   */
  public CrawlSession crawl() throws CrawljaxException {
    if (!hasSetup.get()) {
      setup();
    }
    CrawljaxRunner crawljax = new CrawljaxRunner(configBuilder.build());
    CrawlSession session = crawljax.call();
    webServer.stop();
    return session;
  }
View Full Code Here

TOP

Related Classes of com.crawljax.core.CrawljaxRunner

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.