Package org.easetech.easytest.reports.data

Examples of org.easetech.easytest.reports.data.ReportParametersBean


                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) {
View Full Code Here

TOP

Related Classes of org.easetech.easytest.reports.data.ReportParametersBean

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.