aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorSauli Tähkäpää <sauli@vaadin.com>2015-02-25 09:14:28 +0200
committerLeif Åstrand <leif@vaadin.com>2015-03-04 17:06:13 +0200
commit914cdc8cc9930b52fb133f37a73a5abe6d1597dc (patch)
tree37dd27c3ae32c200f39ae94dc8249240e107aa40 /uitest
parent2e0f8d6a462e76d58431cd3149afaf2d5b88a866 (diff)
downloadvaadin-framework-914cdc8cc9930b52fb133f37a73a5abe6d1597dc.tar.gz
vaadin-framework-914cdc8cc9930b52fb133f37a73a5abe6d1597dc.zip
Add project, build and test name capabilities.
- Helps identifiying problem points in test queue - Enables grouping tests in BrowserStack and other services. Change-Id: I444d0aa07900c39b4dafc2d6b6889975b3de3bec
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java b/uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java
index acf9d7a815..b166590c43 100644
--- a/uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java
+++ b/uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java
@@ -17,8 +17,11 @@
package com.vaadin.tests.tb3;
import java.util.ArrayList;
+import java.util.Calendar;
import java.util.List;
+import org.junit.Rule;
+import org.junit.rules.TestName;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
@@ -43,6 +46,9 @@ import com.vaadin.testbench.parallel.BrowserUtil;
*/
public abstract class MultiBrowserTest extends PrivateTB3Configuration {
+ @Rule
+ public TestName testName = new TestName();
+
protected List<DesiredCapabilities> getBrowsersSupportingWebSocket() {
// No WebSocket support in IE8-9 and PhantomJS
return getBrowserCapabilities(Browser.IE10, Browser.IE11,
@@ -88,6 +94,12 @@ public abstract class MultiBrowserTest extends PrivateTB3Configuration {
}
}
+ desiredCapabilities.setCapability("project", "Vaadin Framework");
+ desiredCapabilities.setCapability("build", String.format("%s / %s",
+ getDeploymentHostname(), Calendar.getInstance().getTime()));
+ desiredCapabilities.setCapability("name", String.format("%s.%s",
+ getClass().getCanonicalName(), testName.getMethodName()));
+
super.setDesiredCapabilities(desiredCapabilities);
}