kinow / testlink-java-api

TestLink Java API
http://kinow.github.io/testlink-java-api/
MIT License
64 stars 88 forks source link

Hi, #129

Closed viharilal closed 5 years ago

viharilal commented 5 years ago

Describe the bug A clear and concise description of what the bug is. Check what is the current version of the API. The older version is not maintained (except via patronage/sponsoring).

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Versions:

Additional context Add any other context about the problem here.

If you have a problem such as "Failed to parse server's response: Expected methodResponse element, got br ", make sure to check the server response, as TestLink may hide exceptions.

The following command starts a port forwarder that can be used to inspect responses: socat -v tcp-l:9999,fork,reuseaddr tcp:127.0.0.1:8000. Then just use the same URL with port 9999. The output will be recorded in the terminal.

viharilal commented 5 years ago

Hi

api.getLastExecutionResult(testPlanId, testCaseId, testCaseExternalId);

If my testcase id is "TestQA-23721"

so the testCaseExternalId would be 23721.

If I pass 23721 as testCaseExternalId im getting below error, Could you please help me in resolving

Exception in thread "main" br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: (reportTCResult) - Test Case External ID (23721) does not exist! at br.eti.kinoshita.testlinkjavaapi.BaseService.checkResponseError(BaseService.java:105) at br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:84) at br.eti.kinoshita.testlinkjavaapi.TestCaseService.reportTCResult(TestCaseService.java:611) at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.reportTCResult(TestLinkAPI.java:1019) at Testing.Package.TestLink.main(TestLink.java:44)

kinow commented 5 years ago

Please follow the issue template and fill in the sections with the issue.