// Add response extension:
final String ext = this.saveResponseBody? ".body": ".rcs";
final File resFile = new NonExistFileGenerator(outDir, outFilePrefix, ext).getFile();
// Test:
TestResult testResult = response.getTestResult();
if(testResult != null){
failureCount += testResult.getFailureCount();
errorCount += testResult.getErrorCount();
runCount += testResult.getRunCount();
}
if(this.saveResponseBody) {
FileUtil.writeBytes(resFile, response.getResponseBody());
}
else {