Examples of TestReport


Examples of ch.qos.mistletoe.core.TestReport

        Constants.PAYLOAD_ID, testReport.getChildren()) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(ListItem<TestReport> item) {
        TestReport childNode = item.getModelObject();
        item.add(new TestReportPanel(Constants.NODE_ID, childNode))
            .setOutputMarkupId(true);
      }
    };
    listView.setOutputMarkupId(true);
View Full Code Here

Examples of cn.baiweigang.qtaf.dispatch.report.TestReport

  /**
   * 运行前初始化相关信息
   */
  private void init(){
    runInfo=new TestRunInfo();
    testReport=new TestReport();
  }
View Full Code Here

Examples of com.appspot.cloud_test_compatibility_kit.reports.model.TestReport

                build();

        final String buildTypeExternalId = build.getBuildTypeExternalId();
        final Integer buildNumber = Integer.valueOf(build.getBuildNumber());

        final TestReport testReport = new TestReport().
                setBuildTypeId(buildTypeExternalId).
                setBuildId(buildNumber).
                setBuildDate(new DateTime(build.getStartDate())).
                setBuildDuration(build.getDuration()).
                setNumberOfFailedTests(fullBuildStatistics.getFailedTestCount()).
                setNumberOfIgnoredTests(fullBuildStatistics.getIgnoredTestCount()).
                setNumberOfPassedTests(fullBuildStatistics.getPassedTestCount());

        final List<Test> failedTests = new ArrayList<>();
        for (STestRun oneTestRun : fullBuildStatistics.getFailedTests()) {
            final STest failedTest = oneTestRun.getTest();
            final TestName failedTestName = failedTest.getName();

            failedTests.add(
                    new Test().
                            setPackageName(failedTestName.getPackageName()).
                            setClassName(failedTestName.getClassName()).
                            setMethodName(failedTestName.getTestMethodName()).
                            setError(oneTestRun.getFailureInfo().getShortStacktrace())
            );
        }
        testReport.setFailedTests(failedTests);

        final List<Test> ignoredTests = new ArrayList<>();
        for (STestRun oneTestRun : fullBuildStatistics.getIgnoredTests()) {
            final STest ignoredTest = oneTestRun.getTest();
            final TestName ignoredTestName = ignoredTest.getName();

            ignoredTests.add(
                    new Test().
                            setPackageName(ignoredTestName.getPackageName()).
                            setClassName(ignoredTestName.getClassName()).
                            setMethodName(ignoredTestName.getTestMethodName()).
                            setError(oneTestRun.getIgnoreComment())
            );
        }
        testReport.setIgnoredTests(ignoredTests);

        log.info(String.format("Pushing build results for '%s' [%s] ...", buildTypeExternalId, buildNumber));
        // publish results to appspot application
        try {
            reports.tests().insert(testReport).execute();
View Full Code Here

Examples of gnu.testlet.TestReport

          interactive = true;
      }
    // If the user wants an xml report, create a new TestReport.
    if (xmlfile != null)
      {
        report = new TestReport(System.getProperties());
      }
   
    // Setup the data coverage dumping mechanism.  The default configuration
    // is to auto-detect EMMA, meaning if the emma classes are found on the
    // classpath then we should force a dump of coverage data.  Also, the user
View Full Code Here

Examples of murban.exerciser.parser.model.TestReport

    @Test
    public void parseTestReportTest() throws IOException, SAXException, ParserConfigurationException {
        URL url = this.getClass().getClassLoader().getResource("testdata/TEST-MyLogicTest.xml");
        File file = new File(url.getFile());
        TestReport testReport = antXmlParser.parseTestReport(file);

        assertEquals(testReport.testsCount, 18);
        assertEquals(testReport.failuresCount, 0);
        assertEquals(testReport.errorsCount, 0);
        assertEquals(testReport.successes.size(), 18);
View Full Code Here

Examples of net.mindengine.galen.reports.TestReport

                Runnable thread = new Runnable() {
                    @Override
                    public void run() {
                       
                        GalenTestInfo info = new GalenTestInfo(test.getName(), test);
                        TestReport report = new TestReport();

                        info.setStartedAt(new Date());
                        info.setReport(report);
                       
                       
                        testInfoLock.lock();
                        try {
                            testInfos.add(info);
                            TestSession session = TestSession.register(info);
                            session.setReport(report);
                            session.setListener(listener);
                        }
                        catch (Exception ex) {
                            ex.printStackTrace();
                        }
                        finally {
                            testInfoLock.unlock();
                        }
                       
                        eventHandler.invokeBeforeTestEvents(info);
                       
                        tellTestStarted(listener, test);
                        try {
                            test.execute(report, listener);
                        }
                        catch(Throwable ex) {
                            info.setException(ex);
                            report.error(ex);
                            ex.printStackTrace();
                        }
                        info.setEndedAt(new Date());
                       
                        eventHandler.invokeAfterTestEvents(info);
View Full Code Here

Examples of org.apache.batik.test.TestReport

        //
        // If we got here, it means that the expected exception did not
        // happen. Report an error
        //
        TestReport report = reportError(ERROR_EXCEPTION_DID_NOT_OCCUR);
        report.addDescriptionEntry(ENTRY_KEY_EXPECTED_EXCEPTION,
                                   expectedExceptionClass);
        return report;
    }
View Full Code Here

Examples of org.apache.batik.test.TestReport

     * Compares the input exception with the expected exception
     * If they match, then the test passes. Otherwise, the test fails
     */
    protected TestReport handleException(Exception e) {
        if (!e.getClass().getName().equals(expectedExceptionClass)) {
            TestReport report = reportError(ERROR_UNEXPECTED_EXCEPTION);
            report.addDescriptionEntry(ENTRY_KEY_UNEXPECTED_EXCEPTION,
                                       e.getClass().getName());
            report.addDescriptionEntry(ENTRY_KEY_EXPECTED_EXCEPTION,
                                       expectedExceptionClass);
            return report;
        } else {
            if (!ERROR_CODE_NO_CHECK.equals(expectedErrorCode)
                && e instanceof BridgeException) {
                if ( !expectedErrorCode.equals(((BridgeException)e).getCode()) ) {
                    TestReport report = reportError(ERROR_UNEXPECTED_ERROR_CODE);
                    report.addDescriptionEntry(ENTRY_KEY_UNEXPECTED_ERROR_CODE,
                                               ((BridgeException)e).getCode());
                    report.addDescriptionEntry(ENTRY_KEY_EXPECTED_ERROR_CODE,
                                               expectedErrorCode);
                    return report;
                }
            }
            return reportSuccess();
View Full Code Here

Examples of org.apache.batik.test.TestReport

                = new SamplesRenderingTest();

            t.setId(svgURL);

            if(!t.refImgURL.toString().endsWith(expectedRefImgURL)){
                TestReport r = reportError(ERROR_UNEXPECTED_REFERENCE_IMAGE_URL);
                r.addDescriptionEntry(ENTRY_KEY_EXPECTED_VALUE, expectedRefImgURL);
                r.addDescriptionEntry(ENTRY_KEY_FOUND_VALUE, "" + t.refImgURL);
                return r;
            }

            if(!t.variationURL.toString().endsWith(expectedVariationURL)){
                TestReport r = reportError(ERROR_UNEXPECTED_VARIATION_URL);
                r.addDescriptionEntry(ENTRY_KEY_EXPECTED_VALUE, expectedVariationURL);
                r.addDescriptionEntry(ENTRY_KEY_FOUND_VALUE, "" + t.variationURL);
                return r;
            }

            if(!t.saveVariation.toURL().toString().endsWith(expectedCandidateURL)){
                TestReport r = reportError(ERROR_UNEXPECTED_CANDIDATE_URL);
                r.addDescriptionEntry(ENTRY_KEY_EXPECTED_VALUE, expectedCandidateURL);
                r.addDescriptionEntry(ENTRY_KEY_FOUND_VALUE, "" + t.saveVariation.toURL().toString());
                return r;
            }

            return reportSuccess();
        }
View Full Code Here

Examples of org.apache.batik.test.TestReport

        Object value = entry.getValue();
        String key   = entry.getKey();

        if(value instanceof TestReport){
            TestReport report = (TestReport)value;
           
            Element reportElement = null;

            if(report.getTest() instanceof TestSuite){
                reportElement
                    = reportDocument.createElementNS(XTR_NAMESPACE_URI,
                                                     XTR_TEST_SUITE_REPORT_TAG);
            }
            else{
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.