Webtest Plugin
  1. Webtest Plugin
  2. GPWEBTEST-16

webtest step wt.htmlreports fails to report all the test cases

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Grails-WebTest 2.0.1
    • Fix Version/s: Grails-WebTest 2.0.1
    • Labels:
      None

      Description

      When bamboo run webtest it fails to report all of the tests cases, altough it runs all of them. In the log it outputs:

      Tests passed: 2
      14-Jul-2010 10:10:41 Tests failed: 49
      14-Jul-2010 10:10:41 -------------------------------------------------------
      14-Jul-2010 10:10:41
      14-Jul-2010 10:10:41 wt.htmlReports:
      14-Jul-2010 10:10:41 [mkdir] Created dir: /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/resources
      14-Jul-2010 10:10:41 [copy] Copying 20 files to /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/resources
      14-Jul-2010 10:10:41 [xslt] Transforming into /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest
      14-Jul-2010 10:10:42 [xslt] Processing /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/001_Melicomponentcal/WebTestReport.xml to /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/001_Melicomponentcal/WebTestReport.html
      14-Jul-2010 10:10:42 [xslt] Loading stylesheet /home/atlassian/.grails/1.3.2/projects/VIP-TEST/webtest-jar/com/canoo/webtest/resources/resources/WebTestReport.xsl
      14-Jul-2010 10:10:43 [xslt] Processing /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/002_Melicomponentcal/WebTestReport.xml to /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/002_Melicomponentcal/WebTestReport.html
      14-Jul-2010 10:10:43 [xslt] Processing /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/003_Melicomponentcat/WebTestReport.xml to /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/003_Melicomponentcat/WebTestReport.html
      14-Jul-2010 10:10:43 [xslt] Transforming into /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest
      14-Jul-2010 10:10:43 [xslt] Processing /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/001_Melicomponentcal/WebTestReport.xml to /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/001_Melicomponentcal/WebTestSummary.xml
      14-Jul-2010 10:10:43 [xslt] Loading stylesheet /home/atlassian/.grails/1.3.2/projects/VIP-TEST/webtest-jar/com/canoo/webtest/resources/resources/WebTestReportSummaryExtractor.xsl
      14-Jul-2010 10:10:43 [xslt] Processing /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/002_Melicomponentcal/WebTestReport.xml to /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/002_Melicomponentcal/WebTestSummary.xml
      14-Jul-2010 10:10:43 [xslt] Processing /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/003_Melicomponentcat/WebTestReport.xml to /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/003_Melicomponentcat/WebTestSummary.xml
      14-Jul-2010 10:10:43 Reading /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/001_Melicomponentcal/WebTestSummary.xml
      14-Jul-2010 10:10:43 Reading /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/002_Melicomponentcal/WebTestSummary.xml
      14-Jul-2010 10:10:43 Reading /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/003_Melicomponentcat/WebTestSummary.xml
      14-Jul-2010 10:10:43 Writing /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/WebTestOverview.xml
      14-Jul-2010 10:10:43 [xslt] Processing /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/WebTestOverview.xml to /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/index.html
      14-Jul-2010 10:10:43 [xslt] Loading stylesheet /home/atlassian/.grails/1.3.2/projects/VIP-TEST/webtest-jar/com/canoo/webtest/resources/resources/WebTestReportOverview.xsl
      14-Jul-2010 10:10:43
      14-Jul-2010 10:10:43 wt.junitLikeReports:
      14-Jul-2010 10:10:43 [xslt] Processing /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/WebTestOverview.xml to /public/Bamboo/xml-data/build-dir/VIP-TEST/target/test-reports/webtest/TEST-WebTests.junit.xml
      14-Jul-2010 10:10:43 [xslt] Loading stylesheet /home/atlassian/.grails/1.3.2/projects/VIP-TEST/webtest-jar/com/canoo/webtest/resources/resources/WebTestOverview2JUnit.xsl
      14-Jul-2010 10:10:43 WebTests failed: /home/atlassian/.grails/1.3.2/projects/VIP-TEST/webtest-jar/com/canoo/webtest/resources/webtest.xml:431: 1 of 3 webtests have failed (2 successful)!
      14-Jul-2010 10:10:49 Server stopped

        Activity

        Hide
        Lee Butts added a comment -

        Hmmm, do you know what the type of failure was in those tests? If they're throwing exceptions (ie Errors instead of Failures), it might be stuffing up the reporting somehow. A small example project with some failing tests that reproduce the issue would be a big help.

        Show
        Lee Butts added a comment - Hmmm, do you know what the type of failure was in those tests? If they're throwing exceptions (ie Errors instead of Failures), it might be stuffing up the reporting somehow. A small example project with some failing tests that reproduce the issue would be a big help.
        Hide
        Damian Noseda added a comment - - edited

        all the webtest's are failing. I created a test project that currently fails without a reason, maybe fails in starting the runserver step. You can look it right here: http://github.com/dnoseda/webtest-fail. Why this is happen all of a sudden?

        regards

        Show
        Damian Noseda added a comment - - edited all the webtest's are failing. I created a test project that currently fails without a reason, maybe fails in starting the runserver step. You can look it right here: http://github.com/dnoseda/webtest-fail . Why this is happen all of a sudden? regards
        Hide
        Lee Butts added a comment -

        Hi Damian,

        I cloned your test project, ran grails compile then grails test-app and all the tests pass.

        Can you attach a stacktrace or something to give me some more information?

        thanks

        Lee

        Show
        Lee Butts added a comment - Hi Damian, I cloned your test project, ran grails compile then grails test-app and all the tests pass. Can you attach a stacktrace or something to give me some more information? thanks Lee
        Hide
        Damian Noseda added a comment -

        Sorry Lee. My fault. I had proxy issues.

        Show
        Damian Noseda added a comment - Sorry Lee. My fault. I had proxy issues.

          People

          • Assignee:
            Lee Butts
            Reporter:
            Damian Noseda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: