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;
*/
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,
}
}
+ 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);
}