{
System.out.println("Exception " + e);
throw e;
}*/
TASRun tRun = JSONParser.parse(json);
// tell writers to write reports
for (IReportWriter writer : getReportWriters())
{
writer.writeReport(tRun);
}
if(tRun.hasErrors())
{
if (errorProperty != null)
{
project.setNewProperty(errorProperty, "true");
}
if (haltOnError)
{
throw new TestErrorException("some tests have errors, check report");
}
}
if(tRun.hasFailures())
{
if (failureProperty != null)
{
project.setNewProperty(failureProperty, "true");
}