From 914cdc8cc9930b52fb133f37a73a5abe6d1597dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sauli=20T=C3=A4hk=C3=A4p=C3=A4=C3=A4?= Date: Wed, 25 Feb 2015 09:14:28 +0200 Subject: [PATCH] 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 --- .../src/com/vaadin/tests/tb3/MultiBrowserTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 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); } -- 2.39.5