Skip to content

Conversation

@Martin-vH
Copy link

Upgraded TestLink instance to 1.9.20, afterwards the Jenkins project using the TestLink plug-in 3.16 failed with the known error:

12:30:22 FATAL: Error verifying developer key: Failed to parse server's response: Expected methodResponse element, got br
12:30:22 br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: Error verifying developer key: Failed to parse server's response: Expected methodResponse element, got br

As there is no plug-in version using testlink-java-api 1.9.20-1, this is the PR for it. Needed to adjust reportTCResult to fix the following error:

23:18:11 Looking for the test results of TestLink test cases.
23:18:11 
23:18:13 FATAL: 'br.eti.kinoshita.testlinkjavaapi.model.ReportTCResultResponse br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.reportTCResult(java.lang.Integer, java.lang.Integer, java.lang.Integer, br.eti.kinoshita.testlinkjavaapi.constants.ExecutionStatus, java.util.List, java.lang.Integer, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.Integer, java.lang.String, java.util.Map, java.lang.Boolean)'
23:18:13 java.lang.NoSuchMethodError: 'br.eti.kinoshita.testlinkjavaapi.model.ReportTCResultResponse br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.reportTCResult(java.lang.Integer, java.lang.Integer, java.lang.Integer, br.eti.kinoshita.testlinkjavaapi.constants.ExecutionStatus, java.util.List, java.lang.Integer, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.Integer, java.lang.String, java.util.Map, java.lang.Boolean)'
23:18:13     at hudson.plugins.testlink.TestLinkSite.updateTestCase(TestLinkSite.java:208)
23:18:13     at hudson.plugins.testlink.result.AbstractTAPFileNameResultSeeker.handleResult(AbstractTAPFileNameResultSeeker.java:182)
23:18:13     at hudson.plugins.testlink.result.AbstractTAPFileNameResultSeeker.updateTestCase(AbstractTAPFileNameResultSeeker.java:171)
23:18:13     at hudson.plugins.testlink.result.AbstractTAPFileNameResultSeeker.seek(AbstractTAPFileNameResultSeeker.java:149)
23:18:13     at hudson.plugins.testlink.result.TAPFileNameResultSeeker.seek(TAPFileNameResultSeeker.java:67)
23:18:13     at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:197)
23:18:13     at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
23:18:13     at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
23:18:13     at hudson.model.Build$BuildExecution.build(Build.java:199)
23:18:13     at hudson.model.Build$BuildExecution.doRun(Build.java:164)
23:18:13     at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
23:18:13     at hudson.model.Run.execute(Run.java:1895)
23:18:13     at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
23:18:13     at hudson.model.ResourceController.execute(ResourceController.java:101)
23:18:13     at hudson.model.Executor.run(Executor.java:442)

Testing done

The Jenkins project uses the basic build steps:

  1. Invoke TestLink (here the initial error occurred due to the version incompatibility)
  2. Test Execution
  3. Iterative Test Build Steps
  4. After iterating all test cases Build Steps
  5. Result Seeking Strategy: TAP file name (here, the reportTCResult error occurred)

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks great! Will check it out with the IDE later, and check if I can fix the build (old code, old build settings, probably need to be updated). Thanks!

<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-api</artifactId>
<version>2.0.8</version>
<type>jar</type>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, why did you have to include the scm-api? Was it to fix an issue running tests?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kinow, yes I assumed this from one of the error messages while getting the build to run. Also forgot to mention, that I built the project with mvn package -Dmaven.test.skip=true for the same reason. Thus all warnings and errors seem to relate to testing/doc, where I have no clue how to fix.

Build environment is:

  • CentOS 7
  • OpenJDK 1.8
  • Maven 3.9.6 (manually installed)

Thanks for your valuable work and superfast response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants