Skip to content

Instantly share code, notes, and snippets.

@freynaud
Created September 13, 2011 13:10
Show Gist options
  • Save freynaud/1213773 to your computer and use it in GitHub Desktop.
Save freynaud/1213773 to your computer and use it in GitHub Desktop.
@Override
public void afterInvocation(IInvokedMethod method, ITestResult testResult, ITestContext context) {
boolean webTest = method.isTestMethod() && method.getTestMethod().getMethod().getAnnotation(WebTest.class) != null;
if (webTest) {
if (!testResult.isSuccess()) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment