Apache Tomcat Maven Plugin
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-236

tomcat-maven-archetype creates project with failing test

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      tomcat-maven-archetype currently creates a project with a Selenium test that fails with Firefox 22 later.

      The test fails as follows:

      -------------------------------------------------------------------------------
      Test set: fr.mypackage.webapp.test.SimpleTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.209 sec <<< FAILURE!
      testSimple(fr.mypackage.webapp.test.SimpleTest) Time elapsed: 6.143 sec <<< ERROR!
      com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: Value does not implement interface Event.
      at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
      at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
      at com.thoughtworks.selenium.DefaultSelenium.click(DefaultSelenium.java:167)
      at fr.mypackage.webapp.test.SimpleTest.testSimple(SimpleTest.java:42)

      As a consequence, mvn install currently fails for the whole tomcat-maven-plugin project because, as part of the build, Maven creates and tests a project based on tomcat-maven-archetype.

      Tested with:

      • Windows 7, Firefox 22.
      • Lubuntu 12.04, Firefox 23.

      The problem appears to be fixed by selenium-server 2.35.0.

        Activity

        Show
        Daniel Cassidy added a comment - To fix this you can pull from this git branch: https://github.com/djcsdy/tomcat-maven-plugin/tree/MTOMCAT-236 Or apply this patch: https://gist.github.com/djcsdy/6368040/raw/996601ad8d53c8257f5d94f48232fb21066b487d/MTOMCAT-236.patch
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        patch applied.
        Thanks!

        Show
        Olivier Lamy (*$^¨%`£) added a comment - patch applied. Thanks!
        Hide
        Hudson added a comment -

        SUCCESS: Integrated in TomcatMavenPlugin-mvn3.x #254 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/254/)
        MTOMCAT-236 tomcat-maven-archetype creates project with failing test
        Submitted by Daniel Cassidy (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1519355)

        • /tomcat/maven-plugin/trunk/tomcat-maven-archetype/src/main/resources/archetype-resources/_rootArtifactId_-webapp-it/pom.xml
        Show
        Hudson added a comment - SUCCESS: Integrated in TomcatMavenPlugin-mvn3.x #254 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/254/ ) MTOMCAT-236 tomcat-maven-archetype creates project with failing test Submitted by Daniel Cassidy (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1519355 ) /tomcat/maven-plugin/trunk/tomcat-maven-archetype/src/main/resources/archetype-resources/_ rootArtifactId _-webapp-it/pom.xml

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Daniel Cassidy
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development