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

TestLink plugin issue

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have created a project for testlink/jenkins plugin tutorial.  The TestLink results in Jenkins shows, TestLink history states test case has never been executed:

       

      TestLink Results

      Build ID: 145
      Build Name: examples-657
      Passed: 0
      Failed: 0
      Blocked: 0
      Not Run: 1
      Total: 1

       
      -------------------------------------------------------00:01:05.506 T E S T S*00:01:05.506* -------------------------------------------------------00:01:05.877 Running jenkins.plugins.testlink.examples.TestCurrentTime*00:01:05.974* Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator@64a294a6*00:01:06.515* Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.624 sec*00:01:06.754* 00:01:06.754 Results :00:01:06.754 00:01:06.754 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0*00:01:06.754* 00:01:06.754 [INFO] ------------------------------------------------------------------------00:01:06.754 [INFO] BUILD SUCCESS*00:01:06.754* [INFO] ------------------------------------------------------------------------00:01:06.754 [INFO] Total time: 59.610 s*00:01:06.754* [INFO] Finished at: 2017-08-07T12:10:58-04:00*00:01:06.755* [INFO] Final Memory: 144M/344M*00:01:06.755* [INFO] ------------------------------------------------------------------------00:01:06.814 Executing iterative Build Steps.00:01:06.814 00:01:06.814 Looking for the test results of TestLink test cases.00:01:06.814 00:01:06.814 Looking for test results in TestNG suites by its name.00:01:06.814 00:01:06.903 Found 1 test result(s).00:01:06.903 00:01:06.949 TestNG Reports Processing: START*00:01:06.949* Looking for TestNG results report in workspace using pattern: target/*/testng-results.xml*00:01:06.971 Saving reports...00:01:06.980 Processing 'C:\Program Files (x86)\Jenkins\jobs\Jenkins TestLink Plug-in examples\builds\657\testng\testng-results.xml'00:01:06.981 TestNG Reports Processing: FINISH*00:01:07.398* Finished: SUCCESS

        Attachments

          Activity

          Hide
          kinow Bruno P. Kinoshita added a comment -

          Hi Maroi Correa we are pending to cut a new release. Would you mind sharing your environment information too, like TestLink version, Jenkins version, plugin version?

          Thanks

          Bruno

          Show
          kinow Bruno P. Kinoshita added a comment - Hi Maroi Correa we are pending to cut a new release. Would you mind sharing your environment information too, like TestLink version, Jenkins version, plugin version? Thanks Bruno
          Hide
          mkurtoic Martin Kurtoic added a comment -

          Hi Bruno P. Kinoshita, I am facing the similar problem. My environment information:

          Jenkins version 2.60.1

          Test link version 1.9.7

          Test link plugin version : 3.12

          I had done a fresh update of Jenkins to the 2.60.1 version and the problem came out afterwards. Before I had Jenkins version 1.651.3 and the same Test link and Test link plugin version and everything was working as expected. Is there any plan to solve this problem soon?

          Thank you in advance,
          Martin

          Show
          mkurtoic Martin Kurtoic added a comment - Hi Bruno P. Kinoshita , I am facing the similar problem. My environment information: Jenkins version 2.60.1 Test link version 1.9.7 Test link plugin version : 3.12 I had done a fresh update of Jenkins to the 2.60.1 version and the problem came out afterwards. Before I had Jenkins version 1.651.3 and the same Test link and Test link plugin version and everything was working as expected. Is there any plan to solve this problem soon? Thank you in advance, Martin
          Hide
          mkurtoic Martin Kurtoic added a comment - - edited

          Jenkins is installed on the linux/unix machine and tests are running on the windows machine as a slave. I am using TAP file result seeking strategy.

          Problem in my case was next part of Testlink plugin code (AbstractTAPFileNameResultSeeker.java):

          if (!this.isCompareFullPath()) {
          int lastIndex = tapFileNameWithoutExtension.lastIndexOf(File.separator);
          if (lastIndex > 0)
          leftIndex = lastIndex + 1;
          }
          

          where File.separator is "/" when Jenkins is installed on the linux/unix machine, but as I am using windows machine as a slave for tests, path of the tapFileNameWithoutExtension contains

          \\

          and this was not recognized here (File.separator is taken from master, what makes sense as Plugin is installed on the master). As tapFileNameWithoutExtensions is not cleaned as expected, few lines later:

          if (tapFileNameWithoutExtension.equals(value)) {
          this.updateTestCase(testSets, key, automatedTestCase, value, build, listener, testlink);
          }
          

          Condition is not met and updateTestCase method is never invoked.

          It would be better to check if tapFileNameWithoutExtension contains

          "/" or "\\"
          

          and do clean regarding this info than use File.separator as it follows to the inconsistency in case when Jenkins master and slave are different types of OS.

          Show
          mkurtoic Martin Kurtoic added a comment - - edited Jenkins is installed on the linux/unix machine and tests are running on the windows machine as a slave. I am using TAP file result seeking strategy. Problem in my case was next part of Testlink plugin code ( AbstractTAPFileNameResultSeeker.java ): if (! this .isCompareFullPath()) { int lastIndex = tapFileNameWithoutExtension.lastIndexOf(File.separator); if (lastIndex > 0) leftIndex = lastIndex + 1; } where File.separator is "/" when Jenkins is installed on the linux/unix machine, but as I am using windows machine as a slave for tests, path of the tapFileNameWithoutExtension contains \\ and this was not recognized here (File.separator is taken from master, what makes sense as Plugin is installed on the master). As tapFileNameWithoutExtensions is not cleaned as expected, few lines later: if (tapFileNameWithoutExtension.equals(value)) { this .updateTestCase(testSets, key, automatedTestCase, value, build, listener, testlink); } Condition is not met and updateTestCase method is never invoked. It would be better to check if tapFileNameWithoutExtension contains "/" or "\\" and do clean regarding this info than use File.separator as it follows to the inconsistency in case when Jenkins master and slave are different types of OS.

            People

            • Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              mcorrea Maroi Correa
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: