Examples of Report


Examples of org.arquillian.recorder.reporter.model.Report

    }

    @Override
    public File export(Reportable reportable) throws Exception {

        Report report = (Report) reportable;
        createWriter();
        resolveResourceBundle();

        normalizeFilePaths(reportable);
        writeDocumentHeader();
        writeProperties(report.getPropertyEntries());
        writeExtensions(report.getExtensionReports());
        writeTestSuite(report.getTestSuiteReports());

        this.writer.flush();
        this.writer.close();

        return this.configuration.getFile();
View Full Code Here

Examples of org.candlepin.gutterball.report.Report

        assertEquals(2, reports.size());
    }

    @Test
    public void testGetReportDetails() {
        Report r = reportsResource.getReportDetails("test_report_1");
        assertNotNull(r);
        assertEquals("DESC_1", r.getDescription());
    }
View Full Code Here

Examples of org.easetech.easytest.annotation.Report

    private Future<Boolean> processReports(ReportDataContainer testReportContainer) {
      Future<Boolean> submit = null;
        if (testReportContainer != null) {
            TestPolicy testPolicy = testReportContainer.getTestClass().getAnnotation(TestPolicy.class);
            Report policyLevelReport = null;
            if(testPolicy != null) {
                Class<?> policyClass = testPolicy.value();
                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();
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.report.Report

   */
  public int validateConformance() throws WSIException
  {
    int statusCode = 0;

    Report report = null;
    ReportArtifact reportArtifact = null;

    // Set up initial analyzer context based on entries in the config file
    this.analyzerContext =
      new AnalyzerContext(new ServiceReference(getAnalyzerConfig()));

    ReportWriter reportWriter = null;
    try
    {
      this.profileAssertions = WSITestToolsProperties.getProfileAssertions(
                getAnalyzerConfig().getTestAssertionsDocumentLocation());

      if (this.profileAssertions == null)
      {
        throw new WSIException(messageList.getMessage("config20",
              "The WS-I Test Assertion Document (TAD)document was either not found or could not be processed."))
     

      // Create report from document factory
      report = documentFactory.newReport();
      report.setLocation(getAnalyzerConfig().getReportLocation());

      // Create report context
      ReportContext reportContext =
        new ReportContext(
          WSIConstants.DEFAULT_REPORT_TITLE,
          profileAssertions,
          this);
      report.setReportContext(reportContext);

      // Create report writer
      reportWriter = documentFactory.newReportWriter();
      // I18N: 2003.02.26 modified by K.Nakagome@BeaconIT
      //reportWriter.setWriter(new FileWriter(analyzerConfig.getReportLocation()));
      reportWriter.setWriter(getAnalyzerConfig().getReportLocation());

      // Create reporter
      this.reporter = new DefaultReporter(report, reportWriter);

      // fetch WSDL if not set in constructor
      // First, attempt to get the WSDL URI from a UDDI tModel
      if ((wsdlDocument == null) && (getAnalyzerConfig().isUDDIReferenceSet()))
              wsdlDocument = getWsdlFromUddi();

      /* Next, try to use the WSDL settings from the config file.  If we can't
       * fetch that WSDL, and the config file is set up to test a WSDL, then the
       * validator fails here. */
      if ((wsdlDocument == null) && (getAnalyzerConfig().isWSDLReferenceSet()))
      {
          wsdlDocument = new WSDLDocument(getAnalyzerConfig().
                  getWSDLLocation());

          if (wsdlDocument == null)
              throw new WSIException(messageList.getMessage("config05",
                      "WSDL document was either not found or could not be " +
                      "processed."));
      }
     
      /*
       * Only validate messages against a wsdl document if the wsdl document
       * does not contain soap 1.2 bindings.
       */
    if (WSDLUtils.isSOAP12WSDL(wsdlDocument) && getAnalyzerConfig().getLogLocation() != null)
      getAnalyzerConfig().setWSDLReference(null);
    else
      analyzerContext.setWsdlDocument(wsdlDocument)

      // Start writing report
      this.reporter.startReport();

      // Walk through the artifact elements from the TAD, validating each one
      profileAssertions.getArtifactList().keySet().iterator();
      for (Iterator i = profileAssertions.getArtifactList().keySet().iterator();
              i.hasNext(); ) {
          String artifactType = (String) i.next();
          // Set current artifact
          reportArtifact = setCurrentArtifact(ArtifactType.getArtifactType(
                  artifactType));
          validate(reportArtifact, factory.getValidatorForArtifact(
                  artifactType));
          this.reporter.endCurrentArtifact();
      }

      // Finish the conformance report
      reporter.finishReport();
    }
    catch (Exception e)
    {
      StringWriter sw = new StringWriter();
      PrintWriter pw = new PrintWriter(sw);

      String message =
        messageList.getMessage(
          "error03",
          "The conformance validation process failed.");

      // Finish report
      if (reporter != null)
      {
        pw.println(message);
        pw.println(
          messageList.getMessage("exception01", "Exception: ")
            + e.getClass().getName());
        e.printStackTrace(pw);
        reporter.finishReportWithError(sw.toString());
      }

      if (e instanceof WSIException)
        throw (WSIException) e;
      else
        throw new WSIException(message, e);
    }
    finally
    {
      if (reportWriter != null)
      {
        reportWriter.close();
      }
    }

    if (report != null)
    {
      statusCode =
        (report.getSummaryResult().equals(AssertionResult.RESULT_PASSED)
          ? 0
          : 1);
    }

    return statusCode;
View Full Code Here

Examples of org.efs.openreports.objects.Report

    PreparedStatement pStmt = null;
    ResultSet rs = null;

    try
    {
      Report report = input.getReport();
      Map<String,Object> parameters = input.getParameters();
     
      ReportDataSource dataSource = report.getDataSource();
      conn = dataSourceProvider.getConnection(dataSource.getId());

      if (parameters == null || parameters.isEmpty())
      {
        pStmt = conn.prepareStatement(report.getQuery());
      }
      else
      {
        // Use JasperReports Query logic to parse parameters in chart
        // queries

        JRDesignQuery query = new JRDesignQuery();
        query.setText(report.getQuery());

        // convert parameters to JRDesignParameters so they can be
        // parsed
        Map<String,JRDesignParameter> jrParameters = ORUtil.buildJRDesignParameters(parameters);
View Full Code Here

Examples of org.emftrace.metamodel.ReportModel.Report

       
        ReportContainer container = (ReportContainer)helper.get(0);
       
        for(int i = 0; i < container.getReports().size(); i++)
        {
          Report report = container.getReports().get(i);
         
          if( !(report instanceof ImpactReport)     ) continue;
          if( report.getType() == null              ) continue;
          if( report.getType() != ReportType.IMPACT ) continue;
         
          if( ((ImpactReport) report).getChangeType() != changeType ) continue;
         
          List<EObject> srcs = ((ImpactReport) report).getImpactSources();
          List<EObject> targets = ((ImpactReport) report).getAffectedElements();
View Full Code Here

Examples of org.flexunit.ant.report.Report

      // Convert all instances of :: for file support
      suiteName = suiteName.replaceAll("::", ".");

      if (!reports.containsKey(suiteName))
      {
         reports.put(suiteName, new Report(new Suite(suiteName)));
      }

      // Fetch report, add test, and write to disk
      Report report = reports.get(suiteName);
      report.addTest(test);

      report.save(reportDir);
   }
View Full Code Here

Examples of org.gephi.io.importer.api.Report

    //Node data
    private NodeDraft[] verticesArray;

    public boolean execute(ContainerLoader container) {
        this.container = container;
        this.report = new Report();
        lineReader = ImportUtils.getTextReader(reader);
        try {
            importData(lineReader);
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of org.gephi.io.importer.api.Report

    private ProgressTicket progressTicket;
    private boolean cancel = false;

    public boolean execute(ContainerLoader container) {
        this.container = container;
        this.report = new Report();
        LineNumberReader lineReader = ImportUtils.getTextReader(reader);
        try {
            importData(lineReader);
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of org.gephi.io.importer.api.Report

    private ContainerLoader container;
    private Connection connection;

    public boolean execute(ContainerLoader container) {
        this.container = container;
        this.report = new Report();
        try {
            importData();
        } catch (Exception e) {
            close();
            throw new RuntimeException(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.