Package com.puppetlabs.geppetto.junitresult

Examples of com.puppetlabs.geppetto.junitresult.Error


      rootSuite.getTestsuites().add(loadExceptionSuite);
    }
    Testcase tc = JunitresultFactory.eINSTANCE.createTestcase();
    tc.setName("Error loading: " + f.getAbsolutePath());

    Error error = JunitresultFactory.eINSTANCE.createError();
    StringBuilder builder = new StringBuilder();
    builder.append("Can not load junit xml result from file: ").append(f.getAbsolutePath()).append("\n");
    builder.append("Caused by: ").append(e.toString());
    error.setValue(builder.toString());
    error.setMessage(e.getMessage());

    tc.getErrors().add(error);
    loadExceptionSuite.getTestcases().add(tc);
  }
View Full Code Here


    // let the last win

    // Error element
    NodeList errors = element.getElementsByTagName("error");
    for(int i = 0; i < errors.getLength(); i++) {
      Error error = JunitresultFactory.eINSTANCE.createError();
      loadNegativeResult(error, errors);
      o.getErrors().add(error);
    }

    // Failure element
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.junitresult.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.