Search in sources :

Example 1 with KickstartRunner

use of de.hu_berlin.german.korpling.annis.kickstarter.KickstartRunner in project ANNIS by korpling.

the class AcceptanceTest method runKickstarter.

@BeforeClass
public static void runKickstarter() {
    try {
        runner = new KickstartRunner(WEB_PORT, SERVICE_PORT);
        runner.startService();
        runner.startJetty();
        // get all installed corpora
        for (AnnisCorpus c : runner.getCorpora()) {
            corpora.add(c.getName());
        }
        DesiredCapabilities caps = new DesiredCapabilities();
        caps.setCapability("takesScreenshot", true);
        driver = new PhantomJSDriver(caps);
        driver.manage().window().setSize(new Dimension(1024, 768));
    } catch (Exception ex) {
        log.error(null, ex);
        runner = null;
    }
}
Also used : PhantomJSDriver(org.openqa.selenium.phantomjs.PhantomJSDriver) AnnisCorpus(annis.service.objects.AnnisCorpus) DesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities) KickstartRunner(de.hu_berlin.german.korpling.annis.kickstarter.KickstartRunner) Dimension(org.openqa.selenium.Dimension) IOException(java.io.IOException) BeforeClass(org.junit.BeforeClass)

Aggregations

AnnisCorpus (annis.service.objects.AnnisCorpus)1 KickstartRunner (de.hu_berlin.german.korpling.annis.kickstarter.KickstartRunner)1 IOException (java.io.IOException)1 BeforeClass (org.junit.BeforeClass)1 Dimension (org.openqa.selenium.Dimension)1 PhantomJSDriver (org.openqa.selenium.phantomjs.PhantomJSDriver)1 DesiredCapabilities (org.openqa.selenium.remote.DesiredCapabilities)1