Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14263

TestLink Plugin: Jenkins reports build failure when test case is failed




      I'm building QA environment where test cases can be managed in TestLink and automated tests can be executed using Jenkins.

      I have followed instructions in 'Jenkins TestLink Plug-in Tutorial' to execute automated tests.


      Jenkins successfully exectuted 'Test Current time' test case and its status is marked as 'Passed' in TestLink

      When 'Test Current time' fails, it results in build failure (see Jenkins console output below) and failure is not reported to TestLink.

      T E S T S
      Running jenkins.plugins.testlink.examples.TestCurrentTime
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.563 sec <<< FAILURE!

      Results :

      Failed tests: testCurrentTime(jenkins.plugins.testlink.examples.TestCurrentTime): expected:<true> but was:<false>

      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 53.719s
      [INFO] Finished at: Thu Jun 21 16:31:01 EDT 2012
      [INFO] Final Memory: 124M/247M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project jenkins-testlink-plugin-tutorial: There are test failures.
      [ERROR] Please refer to C:\Jenkin\jobs\testMaven\workspace\target\surefire-reports for the individual test results.
      [ERROR] -> [Help 1]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      Build step 'Invoke top-level Maven targets' marked build as failure
      Finished: FAILURE



          thenna Karthik T created issue -
          jorgenpt Jørgen Tjernø made changes -
          Field Original Value New Value
          Component/s jenkins-plugin-runtime [ 16320 ]
          Assignee Jørgen Tjernø [ jorgenpt ] Bruno P. Kinoshita [ kinow ]
          kinow Bruno P. Kinoshita made changes -
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Resolved [ 5 ]
          kinow Bruno P. Kinoshita made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 144895 ] JNJira + In-Review [ 205965 ]


            kinow Bruno P. Kinoshita
            thenna Karthik T
            0 Vote for this issue
            2 Start watching this issue