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

What is the service to use for creating the link between the stepresult (test case result) and DOORS requirement?

We are using a java code for importing testcase, testscript, step,
executionworkitem, executionresult et stepresult.
There are links between DOORS requirements and steps (test script)
stepresult (test case result)

A service "service/com.ibm.rqm.requirement. common.service.
rest. ICalmRequirementRestService/calmRequirementForTestScript" is needed for
creating the link between the steps (test script) and the DOORS requirement.

What is the service to use for
creating the link between the stepresult (test case result) and DOORS requirement?

0 votes

Comments

Hi Carlito,

The service/com.ibm.rqm.requirement. common.service.rest. ICalmRequirementRestService/calmRequirementForTestScript API is an internal API and is not supported.  Internal APIs should not be used.  Instead of using internal APIs, you should be using one of the public RQM APIs:

RQM Reportable REST API
RQM OSLC API

However, the RQM Reportable REST API does not support adding links to CCM/RM resources and the RQM OSLC API does not support creating/updating test script step results or adding RM link to test results.

Paul,

About your statement that "RQM OSLC API does not support creating/updating test script step result". 
Is this true even with the v2 OSLC specification of RQM?
I'm trying to create a test result using API OSLC and RQM 6.0.4, but I have not been able to create the step result so far.



One answer

Permanent link
There is no dedicated service to create a link between Step Results and DOORS Requirements. 
The links can be created between a Requirement Artifact and (Test Case / Test Script Step ). 

The Test Step associated with Test Case Result actually show the link for the requirement which was already associated with the Test Script Step at the time of execution the Step. It just shows there as part of the test result because steps are shown in the test result. So link is actually still associated with the Step only, not with the result. 

I guess, if you check from DOORS side, it would show only a "validated by" type of link connected to test script step, there would not be any link to Test Result shown from the DOORS side.

0 votes

Comments

Why does the link not autonmatically created when we execute a PUT command on the execution result object?
I can understand that the link for the requirement is on the step but how to create the link manually (step-stepresult)?
As the links are added on the step, RQM should be able to display them in the step result ...

Hi Carlito,

As Abhishek mentioned, the step result does not contain the requirement link.  The requirement link is stored in the script step.  This is the way the resources are modeled.  You can confirm this by checking the resource shape for both resources.  That said, the RQM UI exposes the requirement link, which is from the test script step.

As for me the requirement link is stored in the script step. My scenario to explain my opinion is:
- test script with one requirement link in step 1
- execution of this test script => the display of the result, I see the requirement link in step1
one requirement on the first result

- Now I modify the test script and I add a new requirement on the step 1. So there is 2 requirement link on the step 1
- I have executed again this test script => the display of the result, I see 2 requirement link in step1
Two requirement on the step

if for 2 results the list of requirement is different for the same test script, the requirement link is not stored in the step result ?

Sorry I can modify my comment:
I want to modify my first line: I think the requirement link is stored in the test script result and not only the step of a test script.

Moreover I precise that the information shown in the result n°197 is the same after the second execution. I always see only 1 requirement link.

Hi David,

Our answers are in context of the RQM OSLC API (and also apply to the only other public REST API, RQM Reportable REST API).  The internal RQM implementation models these relationships differently.

Hi Paul,
    Thank for your return.
Our customer want to create (via java code) a Test result with requirement link and defect link. At the moment he use in unofficial way with

https://@serveurRQM/qm/secure/service/com.ibm.rqm.execution.common.service.rest.ITestcaseExecutionRecordRestService/executeDTO

Should you have a advise to create test result with link in using official way or is it impossible ?
Could we use the jar of RQMExecution tool ?

Best regards

Hi David,

Internal APIs should not be used.

Requirements cannot be associated to test results however change requests (or defects) can using the oslc_qm:affectedByChangeRequest property (see http://open-services.net/bin/view/Main/QmSpecificationV2#Resource_TestResult).

The RQM Execution Tool cannot be used for this purpose.

I would suggest to open a RQM RFE.

showing 5 of 7 show 2 more comments

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,930

Question asked: Feb 05 '16, 9:31 a.m.

Question was seen: 4,059 times

Last updated: Nov 28 '18, 7:24 a.m.

Confirmation Cancel Confirm