diff options
author | Henri Sara <henri.sara@gmail.com> | 2016-12-19 11:43:00 +0200 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2016-12-19 11:43:00 +0200 |
commit | cf748bf329786ea2d78166dc9f979b006802e124 (patch) | |
tree | 45a6e7039eedcdd5dad708db0be2fef158c13854 /uitest | |
parent | 6bb05cd71d72a7494ca8fb92ece40a5d2476139c (diff) | |
download | vaadin-framework-cf748bf329786ea2d78166dc9f979b006802e124.tar.gz vaadin-framework-cf748bf329786ea2d78166dc9f979b006802e124.zip |
Use PhantomJS2 for server integration tests (#8030)
* Run server integration tests with PhantomJS2
* Add delay to integration test screenshots
Otherwise, the progress indicator might still be fading when the
screenshot is taken, and the screenshots are not fully stable.
* Reduce integration test startup delays
* Add PhantomJS2 screenshots for integration tests
* Add PhantomJS2 screenshots for tomcat 7 proxy test
Diffstat (limited to 'uitest')
4 files changed, 12 insertions, 7 deletions
diff --git a/uitest/integration_tests.xml b/uitest/integration_tests.xml index 855612ee71..818c0095b6 100644 --- a/uitest/integration_tests.xml +++ b/uitest/integration_tests.xml @@ -105,14 +105,14 @@ <target name="integration-test-jetty8"> <antcall target="run-generic-integration-test"> - <param name="startDelay" value="180" /> + <param name="startDelay" value="90" /> <param name="target-server" value="jetty8" /> </antcall> </target> <target name="integration-test-jetty9"> <antcall target="run-generic-integration-test"> - <param name="startDelay" value="180" /> + <param name="startDelay" value="90" /> <param name="target-server" value="jetty9" /> </antcall> </target> @@ -164,7 +164,7 @@ <target name="integration-test-weblogic12"> <antcall target="run-generic-integration-test"> - <param name="startDelay" value="360" /> + <param name="startDelay" value="60" /> <param name="target-port" value="7001" /> <param name="target-server" value="weblogic12" /> </antcall> diff --git a/uitest/src/test/java/com/vaadin/tests/integration/AbstractIntegrationTest.java b/uitest/src/test/java/com/vaadin/tests/integration/AbstractIntegrationTest.java index 5cd9d0b9f5..da0d6cb08e 100644 --- a/uitest/src/test/java/com/vaadin/tests/integration/AbstractIntegrationTest.java +++ b/uitest/src/test/java/com/vaadin/tests/integration/AbstractIntegrationTest.java @@ -18,7 +18,7 @@ package com.vaadin.tests.integration; import com.vaadin.testbench.By; import com.vaadin.testbench.elements.UIElement; import com.vaadin.testbench.parallel.TestNameSuffix; -import com.vaadin.tests.tb3.PrivateTB3Configuration; +import com.vaadin.tests.tb3.SingleBrowserTestPhantomJS2; /** * Base class for integration tests. Integration tests use the @@ -28,7 +28,8 @@ import com.vaadin.tests.tb3.PrivateTB3Configuration; * @author Vaadin Ltd */ @TestNameSuffix(property = "server-name") -public abstract class AbstractIntegrationTest extends PrivateTB3Configuration { +public abstract class AbstractIntegrationTest + extends SingleBrowserTestPhantomJS2 { @Override protected String getBaseURL() { String deploymentUrl = System.getProperty("deployment.url"); diff --git a/uitest/src/test/java/com/vaadin/tests/integration/AbstractServletIntegrationTest.java b/uitest/src/test/java/com/vaadin/tests/integration/AbstractServletIntegrationTest.java index 6a1d77317d..747b0fb486 100644 --- a/uitest/src/test/java/com/vaadin/tests/integration/AbstractServletIntegrationTest.java +++ b/uitest/src/test/java/com/vaadin/tests/integration/AbstractServletIntegrationTest.java @@ -42,8 +42,12 @@ public abstract class AbstractServletIntegrationTest @Test public void runTest() throws IOException, AssertionError { openTestURL(); + // make sure no fading progress indicator from table update is lingering + sleep(2000); compareScreen("initial"); $(TableElement.class).first().getCell(0, 1).click(); + // without this, table fetch might have a fading progress indicator + sleep(2000); compareScreen("finland"); } diff --git a/uitest/src/test/java/com/vaadin/tests/integration/JSPIntegrationTest.java b/uitest/src/test/java/com/vaadin/tests/integration/JSPIntegrationTest.java index d135c79347..3a7f907354 100644 --- a/uitest/src/test/java/com/vaadin/tests/integration/JSPIntegrationTest.java +++ b/uitest/src/test/java/com/vaadin/tests/integration/JSPIntegrationTest.java @@ -27,9 +27,9 @@ import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; -import com.vaadin.tests.tb3.PrivateTB3Configuration; +import com.vaadin.tests.tb3.SingleBrowserTestPhantomJS2; -public class JSPIntegrationTest extends PrivateTB3Configuration { +public class JSPIntegrationTest extends SingleBrowserTestPhantomJS2 { final String appRunnerTestUrl = getBaseURL() + "/run/Buttons"; final String jspUrl = getBaseURL() + "/statictestfiles/vaadinsessions.jsp"; |