diff options
author | Sauli Tähkäpää <sauli@vaadin.com> | 2015-02-16 11:28:07 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2015-03-04 16:56:14 +0200 |
commit | 586059b2cf8adf5d79a721a1adef76c009e29f0f (patch) | |
tree | e0720a0c9b99f4c1ea6df44eb64d63f168d2e036 | |
parent | 2c86f6577e6be32ada1a7e683a669a960ff41eee (diff) | |
download | vaadin-framework-586059b2cf8adf5d79a721a1adef76c009e29f0f.tar.gz vaadin-framework-586059b2cf8adf5d79a721a1adef76c009e29f0f.zip |
Add build parameter com.vaadin.testbench.hub.url.
Change-Id: I413c1dfffcba794aeaa33bbfef4b90b22f5f6fb7
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java | 11 | ||||
-rw-r--r-- | uitest/tb3test.xml | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java b/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java index 32d0f1065c..a4645262a5 100644 --- a/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java +++ b/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java @@ -54,6 +54,7 @@ public abstract class PrivateTB3Configuration extends ScreenshotTB3Test { private static final String HOSTNAME_PROPERTY = "com.vaadin.testbench.deployment.hostname"; private static final String PORT_PROPERTY = "com.vaadin.testbench.deployment.port"; private static final String DEPLOYMENT_PROPERTY = "com.vaadin.testbench.deployment.url"; + private static final String HUB_URL = "com.vaadin.testbench.hub.url"; private static final Properties properties = new Properties(); private static final File propertiesFile = new File("work", "eclipse-run-selected-test.properties"); @@ -98,6 +99,16 @@ public abstract class PrivateTB3Configuration extends ScreenshotTB3Test { } @Override + protected String getHubURL() { + String hubUrl = getProperty(HUB_URL); + if(hubUrl == null || hubUrl.trim().isEmpty()) { + return super.getHubURL(); + } + + return hubUrl; + } + + @Override protected String getHubHostname() { return "tb3-hub.intra.itmill.com"; } diff --git a/uitest/tb3test.xml b/uitest/tb3test.xml index ecacf43ee2..8ae016f1e2 100644 --- a/uitest/tb3test.xml +++ b/uitest/tb3test.xml @@ -9,6 +9,7 @@ <property name="categories.exclude" value="" /> <property name="useLocalWebDriver" value="false" /> <property name="com.vaadin.testbench.max.retries" value="0" /> + <property name="com.vaadin.testbench.hub.url" value="" /> <property name="junit.test.suite" value="com.vaadin.tests.tb3.AllTB3Tests" /> <ivy:resolve file="${tb3test.dir}/ivy.xml" conf="build, build-provided" /> @@ -39,6 +40,7 @@ <jvmarg value="-Dcategories.exclude=${categories.exclude}" /> <jvmarg value="-DuseLocalWebDriver=${useLocalWebDriver}" /> <jvmarg value="-Dcom.vaadin.testbench.max.retries=${com.vaadin.testbench.max.retries}" /> + <jvmarg value="-Dcom.vaadin.testbench.hub.url=${com.vaadin.testbench.hub.url}" /> <test name="${junit.test.suite}" todir="${report.dir}" /> </junit> |