testlink-java-api icon indicating copy to clipboard operation
testlink-java-api copied to clipboard

External id is null after creating Test case

Open i-vasilev opened this issue 3 years ago • 1 comments

Hello. I have a problem with test case creating. After creating:

TestCase tc = testLinkAPI.createTestCase(summary,
                                                                  testSuite.getId(),
                                                                  ....);

Then tc.getExternalId() and tc.getFullExternalId() are null both.

Versions:

  • TestLink: 1.9.20
  • testlink-java-api: 1.9.20-1
  • JVM 11

I need this external id to set keywords to test cases.

i-vasilev avatar Mar 11 '22 15:03 i-vasilev

Hi @i-vasilev , I don't have an environment to confirm it at the moment, but I remember some create operations didn't return all the fields in the PHP API. I think the test plan didn't return a field, so I had to invoke the API again to query for the values.

You may have to do the same. Perhaps you could try to confirm that the PHP XMLRPC API is returning the external ID? If it is indeed returning it, then we have confirmed that the bug lies on the Java code here :+1:

kinow avatar Mar 12 '22 02:03 kinow