public Testcase addTestCaseWithFailure( String name, double time, String failure, String stacktrace )
{
Testcase testcase = testsuiteDoc.getTestsuite().addNewTestcase();
testcase.setName( name );
testcase.setTime( String.valueOf( time / 1000 ) );
Failure fail = testcase.addNewFailure();
fail.setType( failure );
fail.setMessage( failure );
fail.setStringValue( stacktrace );
noofTestCases++ ;
noofFailures++ ;
totalTime += time;
return testcase;
}