aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tb3
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2013-09-25 13:51:23 +0300
committerVaadin Code Review <review@vaadin.com>2013-09-27 06:30:06 +0000
commit5fb1da2da04ccca2305af31a9105b848e42b1ed6 (patch)
treee6fe0bf1113626f419c812bbd98b41f6a73564b2 /uitest/src/com/vaadin/tests/tb3
parent8ce6565b3ee456db4f95b41568a8b31721a48cd6 (diff)
downloadvaadin-framework-5fb1da2da04ccca2305af31a9105b848e42b1ed6.tar.gz
vaadin-framework-5fb1da2da04ccca2305af31a9105b848e42b1ed6.zip
Publish error artifacts immediatly in TeamCity
Change-Id: I69cb2208b7f6b3263ddb25fa26eebebcc6f9a7c3
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3')
-rw-r--r--uitest/src/com/vaadin/tests/tb3/ScreenshotTB3Test.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/ScreenshotTB3Test.java b/uitest/src/com/vaadin/tests/tb3/ScreenshotTB3Test.java
index 645d9cd0cb..565d04fdb9 100644
--- a/uitest/src/com/vaadin/tests/tb3/ScreenshotTB3Test.java
+++ b/uitest/src/com/vaadin/tests/tb3/ScreenshotTB3Test.java
@@ -31,6 +31,7 @@ import org.junit.Before;
import org.junit.Rule;
import org.junit.rules.TestRule;
import org.junit.rules.TestWatcher;
+import org.junit.runner.Description;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.remote.DesiredCapabilities;
@@ -65,7 +66,16 @@ public abstract class ScreenshotTB3Test extends AbstractTB3Test {
}
screenshotBaseName = className + "-" + testMethod;
- };
+ }
+
+ @Override
+ protected void failed(Throwable e, Description description) {
+
+ // Notify Teamcity of failed test
+ System.out.print("##teamcity[publishArtifacts '");
+ System.out.println(getScreenshotErrorDirectory() + "/"
+ + getScreenshotBaseName() + "* => screenshot-errors']");
+ }
};
/**