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

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

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!

0 votes


Accepted answer

Permanent link

 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

0 votes

Comments

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.

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 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
× 10,939
× 516
× 25

Question asked: Aug 08 '22, 11:48 a.m.

Question was seen: 1,002 times

Last updated: Aug 16 '22, 1:27 p.m.

Confirmation Cancel Confirm