Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

asddasdadas

dasdasdasdasdasd

0 votes

Comments

"the referenced test case does not exist" says that your URL for the testcase isn't correct.

The thing is that If I put that URL for the testcase I get 200 Response and valid XML data.

So it is not the testcase here what I think it could be that I may not properly give him the location where to look, that's why I ask maybe I'm missing something..

If I do an OSLC Query for testcases, I get URLs like 

https://jazz.ibm.com:9443/qm/oslc_qm/contexts/_TvmeIJibEfCLwNy8NEVDdg/resources/com.ibm.rqm.planning.VersionedTestCase/_aUknAJibEfCLwNy8NEVDdg

i.e. none of the urn: stuff.

If I go to the testcase in ETM, on the dropdown menu for the testcase is a Copy link to Artifact option - that gives the same URL as above.

How did you discover your URL?


Can you get the testcase URL using the Copy link to Artifact and try that in your code creating the TCER?

Also make sure your POST has headers for Configuration-Context (with the configuration URL), OSLC-Core-Version: 2.0 and Accept: application/rdf+xml


And I don't know where you got the URL you're POSTing to - that doesn't look like an OSLC creation factory URL.


My tcer creation factory in the project's configuration-specific services.xml looks like:




3 answers

Permanent link
There are basically two CRUD APIs for ETM. See https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding look into the ETM section and note the Reportable REST API. There is also an OSLC QM API. Ask an AI for the documentation.

The Reportable REST API is a bit simpler.
For the Reportable REST API you need to query for the items, you want to assign. See the link above and have a look.

I find the OSLC API more heavyweight, but it works. Follow the specification. The special thing with OSLC is the discovery process.  https://rsjazz.wordpress.com/2022/02/22/ewm-oslc-query-api/ provides a hint how to use OSLC for querying. It is a different domain, but the mechanisms work the same. 
Otherwise follow Ian. You need special headers for OSLC and you have to provide the configuration URI in case you have Configuration management enabled. The APIS are different, but the configuration-context headers are the same for both.

0 votes


Permanent link
I should also mention the  X-Jazz-CSRF-Prevent header that needs to set to the value of the JSESSIONID cookie for PUT and POST operation. You can get the JSESSIONID with a get Operation. There is the E-TAG Header and the if-Match Header that should be used. I also once ran into an issue, where I had to put an arbitrary User-Agent  header with an arbitrary value, otherwise the POST would always fail. This was dependent on the default value of the user-value agent.
Last but not least, be sure you are authenticated. The Location header should not show "Authentication Required" or something like that. It would show the OSLC URI if the operation succeeded. In the Reportable REST API you get a slug to be able to retrieve the item, if successfully created. See the documentation. 

0 votes


Permanent link
Is a Reportable REEST API if at all at best. Not sure it does not look like:
Reportable RESTDocumentation: https://jazz.net/wiki/bin/view/Main/RqmApi  does not look like https://<host>:<port>/ <contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService which is the root for the Reportable REST API entrypoint for queries. 


0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,089
× 526
× 489

Question asked: May 27, 11:45 a.m.

Question was seen: 39 times

Last updated: May 27, 11:45 a.m.

Confirmation Cancel Confirm