policyLevelReport = policyClass.getAnnotation(Report.class);
}
Report testClassLevelReport = testReportContainer.getTestClass().getAnnotation(Report.class);
Report annotation = testClassLevelReport != null ? testClassLevelReport : policyLevelReport;
ReportParametersBean reportParameters = null;
if (System.getProperty(SystemProperties.GENERATE_REPORT.getValue()) != null) {
reportParameters = new ReportParametersBean(
System.getProperty(SystemProperties.REPORT_FORMAT.getValue()),
System.getProperty(SystemProperties.REPORT_LOCATION.getValue()),
System.getProperty(SystemProperties.REPORT_PACKAGES.getValue()),
System.getProperty(SystemProperties.REPORT_TYPE.getValue()));
} else if (annotation != null) {
reportParameters = new ReportParametersBean(annotation.outputFormats(), annotation.reportTypes(), annotation.outputLocation());
} else {
return null;
}
String rawOutputLocation = reportParameters.getOutputLocation();
EXPORT_FORMAT[] outputFormats = reportParameters.getOutputFormats();
REPORT_TYPE[] reportTypes = reportParameters.getReportTypes();
String absoluteLocation = CommonUtils.getAbsoluteLocation(rawOutputLocation);
String outputLocation = CommonUtils.createFolder(absoluteLocation);
if (outputLocation != null) {