Package ch.powerunit.report

Examples of ch.powerunit.report.Error


    tc.setTime((end - tc.getTime()) / 1000);
    ts.setTime(ts.getTime() + tc.getTime());
    error = true;
    ts.setErrors(ts.getErrors() + 1);

    Error e = new Error();
    tc.getError().add(e);
    e.setType(cause.getClass().getCanonicalName());
    e.setMessage(cause.getMessage());
    StringBuffer stack = new StringBuffer(cause.getMessage()).append('\n');
    for (StackTraceElement ste : cause.getStackTrace()) {
      stack.append(ste.toString()).append('\n');
    }
    e.setContent(stack.toString());
  }
View Full Code Here


        tc.setTime((end - tc.getTime()) / 1000);
        ts.setTime(ts.getTime() + tc.getTime());
        error = true;
        ts.setErrors(ts.getErrors() + 1);

        Error e = new Error();
        tc.getError().add(e);
        e.setType(cause.getClass().getCanonicalName());
        e.setMessage(cause.getMessage());
        StringBuilder stack = new StringBuilder(cause.getMessage())
                .append('\n');
        for (StackTraceElement ste : cause.getStackTrace()) {
            stack.append(ste.toString()).append('\n');
        }
        e.setContent(stack.toString());
        printf("Error of test %1$s because of %2$s%n",
                context.getFullTestName(), cause.getMessage());
        resumedFailure.append("\t").append(context.getLocalTestName())
                .append(" of ").append(context.getSetName())
                .append(" caused by ").append(cause.getMessage()).append("\n");
View Full Code Here

TOP

Related Classes of ch.powerunit.report.Error

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.