It's all about the answers!

Ask a question

Can not make validateRequirements link from Jazz QM to artifact in custom OSLC Adapter


Dmitry A. Lesin (24826996) | asked Aug 08 '22, 11:48 a.m.
edited Aug 08 '22, 11:49 a.m.
Hello guys,
It seems that I can not realize how Jazz RM app (v7.0.2) creates validation requirements links to respective test artifacts in QM app. My main goal is building OSLC adapter (designed based on Lyo v5.0.0) that can make integration between RM and external testing tool used in the company. I will appreciate any remarks and advices on this way.
What do I have? I can:
1. Register RM app and the OSLC Adapter as friends in accordance to OAth v1.0.
2. Make a link between JKE Banking project area and the only OSLC Adaptrer's service provider so I can see my service provider when trying to make a link from some RM requirement to test artifacts in my adapter.

Select Links Dialog

3. But when I try to click OK button, it shows me the error:
ID CRRRW7255E The link from this server to the other server could not be created.

Although it successfully returns RDF document for the selected artifact:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:oslc_qm="http://open-services.net/ns/qm#"
    xmlns:oslc_rm="http://open-services.net/ns/rm#"
    <dcterms:description>A sample TestScript with id:2076</dcterms:description>
    <dcterms:identifier>2076</dcterms:identifier>
    <oslc_qm:validatesRequirement rdf:resource="http://localhost:8083/adaptor-rm/services/requirements/3"/>
    <oslc_qm:validatesRequirement rdf:resource="http://localhost:8083/adaptor-rm/services/requirements/18"/>
    <dcterms:title>A sample TestScript with id:2076</dcterms:title>
  </oslc_qm:TestScript>
</rdf:RDF>

I see that if I would like to make a standard validatedBy link between Jazz RM requirement and Jazz QM test artifact then it calls additionally to .../rm/link. But im my case, it throws the error right after getting the RDF resourse.
What am I missing? May be some additional service must be provided for custom service provider? Or may be some special attribute in test artifact is missing? I already don't have ideas, at least for now.
Thank you for any help!

Accepted answer


permanent link
Jim Amsden (29347) | answered Aug 08 '22, 12:45 p.m.

 When creating links between Requirements and TestCases with ELM products, while it appears you can create the Requirement validatedBy TestCase link from DNG, DNG doesn't actually own or create the link. Rather it does a GET on the TestCase, adds the link there and then does a PUT to ETM. So if you're creating links programmatically, you'd create the link from the QM provider to DNG (i.e., TestCase validatesRequirement Requirement), not the other way around.


Dmitry A. Lesin selected this answer as the correct answer

Comments
David Honey commented Aug 08 '22, 1:06 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

As well as Jim's excellent reply, you should also look at https://jazz.net/wiki/bin/view/Main/CALM2010LinkTypes. It shows that links between a test case and a requirement are owned by, and persisted on, the test case in ETM.

I would also encourage you or colleagues to participate in the OSLC Open Projects working group. We have been discussing the idea of OSLC profiles starting with a Linking Profile to support use cases like this. Sadly, industry participation in OSLC meetings has been weak over the last few years.


Dmitry A. Lesin commented Aug 16 '22, 1:27 p.m.

Hi David,
Sorry, what do you mean under "participate in the OSLC Open Projects working group"? Can you provide a link for taking a look please?
Thank you very much in advance!

Your answer


Register or 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.