aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2014-12-13 21:42:54 +0200
committerVaadin Code Review <review@vaadin.com>2014-12-15 19:41:26 +0000
commit1b211745b02fbff5d4084f5ccada07cff8c09c85 (patch)
tree980bfd4550e2b5017004a182859919975ebff856 /uitest
parent4b58dccc09a6e0aa35dd3944ae5208644b6d4595 (diff)
downloadvaadin-framework-1b211745b02fbff5d4084f5ccada07cff8c09c85.tar.gz
vaadin-framework-1b211745b02fbff5d4084f5ccada07cff8c09c85.zip
Release session memory at the end of each test
Change-Id: I30dd917158091f1fe6f16d050ff7d6037493d3ef
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
index 76b851fd23..b5a345bd30 100644
--- a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
+++ b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
@@ -32,7 +32,6 @@ import java.util.Collections;
import java.util.List;
import java.util.NoSuchElementException;
-import com.vaadin.testbench.elements.TableElement;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpHost;
import org.apache.http.HttpResponse;
@@ -69,6 +68,7 @@ import com.vaadin.testbench.TestBenchDriverProxy;
import com.vaadin.testbench.TestBenchElement;
import com.vaadin.testbench.TestBenchTestCase;
import com.vaadin.testbench.elements.LabelElement;
+import com.vaadin.testbench.elements.TableElement;
import com.vaadin.testbench.elements.VerticalLayoutElement;
import com.vaadin.tests.components.AbstractTestUIWithLog;
import com.vaadin.tests.tb3.MultiBrowserTest.Browser;
@@ -257,7 +257,7 @@ public abstract class AbstractTB3Test extends TestBenchTestCase {
@Override
public Object apply(WebDriver input) {
try {
- return table.getCell(row, 0) != null;
+ return table.getCell(row, 0) != null;
} catch (NoSuchElementException e) {
return false;
}
@@ -266,7 +266,8 @@ public abstract class AbstractTB3Test extends TestBenchTestCase {
}
protected void scrollTable(TableElement table, int rows, int rowToWait) {
- testBenchElement(table.findElement(By.className("v-scrollable"))).scroll(rows * 30);
+ testBenchElement(table.findElement(By.className("v-scrollable")))
+ .scroll(rows * 30);
waitUntilRowIsVisible(table, rowToWait);
}
@@ -430,6 +431,11 @@ public abstract class AbstractTB3Test extends TestBenchTestCase {
@After
public void tearDown() throws Exception {
if (driver != null) {
+ try {
+ openTestURL("&closeApplication");
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
driver.quit();
}
driver = null;