From 6462d54a2d32ac1539cccedac72e30b84ba7e3af Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Tue, 21 Aug 2018 15:22:12 +0300 Subject: [PATCH] Use maven to run PhantomJS tests (#11121) --- uitest/build.xml | 71 +------------- uitest/pom.xml | 98 +++++++++++++++++++ .../tests/tb3/VaadinBrowserFactory.java | 2 +- uitest/tb3test.xml | 55 ----------- 4 files changed, 102 insertions(+), 124 deletions(-) delete mode 100644 uitest/tb3test.xml diff --git a/uitest/build.xml b/uitest/build.xml index ab0c154ba8..8dbf659383 100644 --- a/uitest/build.xml +++ b/uitest/build.xml @@ -1,72 +1,7 @@ - + - - - Provides a uitest WAR containing Vaadin UI tests - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + This Ant script is no longer used to test the framework. Run `mvn verify -P test` to execute browser tests. - - - - - - - - - - - diff --git a/uitest/pom.xml b/uitest/pom.xml index 71ba0592e5..91ea2e862c 100644 --- a/uitest/pom.xml +++ b/uitest/pom.xml @@ -12,6 +12,7 @@ war true + true https://vaadin.com/ @@ -273,6 +274,8 @@ 8888 + foo + 8889 @@ -301,6 +304,32 @@ true + + maven-failsafe-plugin + + ${skip.uitest.failsafe} + + **/AllTB3Tests.java + + + ${project.parent.basedir}/tests/screenshots + ${com.vaadin.testbench.max.retries} + ${useLocalWebDriver} + ${browsers.include} + ${categoriess.include} + ${browsers.exclude} + ${categories.exclude} + + + + + + integration-test + verify + + + + @@ -332,6 +361,75 @@ false + + test + + false + + + false + + + + + + org.eclipse.jetty + jetty-maven-plugin + + + + + start-jetty + pre-integration-test + + start + + + + stop-jetty + post-integration-test + + stop + + + + + + + + + + + validation + + false + + + + + + maven-failsafe-plugin + + + true + phantomjs1 + push,needs-ssh + + + + + + integration-test + verify + + + + + + + + diff --git a/uitest/src/test/java/com/vaadin/tests/tb3/VaadinBrowserFactory.java b/uitest/src/test/java/com/vaadin/tests/tb3/VaadinBrowserFactory.java index 1e7e68ae92..27f50a6a17 100644 --- a/uitest/src/test/java/com/vaadin/tests/tb3/VaadinBrowserFactory.java +++ b/uitest/src/test/java/com/vaadin/tests/tb3/VaadinBrowserFactory.java @@ -16,7 +16,7 @@ public class VaadinBrowserFactory extends DefaultBrowserFactory { @Override public DesiredCapabilities create(Browser browser) { - String browserFactoryClass = System.getProperty("browser.factory"); + String browserFactoryClass = System.getProperty("testbench.browser.factory"); if (browserFactoryClass != null && !browserFactoryClass.trim().isEmpty()) { if (delegate == null) { diff --git a/uitest/tb3test.xml b/uitest/tb3test.xml deleted file mode 100644 index 1e4eb02d4e..0000000000 --- a/uitest/tb3test.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- 2.39.5