[closed] How to link test case to requirement using OSLC API
udi valer (11●1●1)
| asked May 21 '17, 9:13 a.m.
closed Apr 12 '22, 2:07 a.m. by Ralph Schoon (63.6k●3●36●46) Hi,
I was able to update the requirement link to test case in RM project - means i can see the requirement is validate by the test case in the UI.
I was able to do that using update oslc_rm:validatedBy + rdf:Description in the requirement.
But when i move to the test case Requirement Links it is empty!
I tried to update the test case using the REST API but apparently it is impossible.
How can i do that using OSLC API?
|
The question has been closed for the following reason: "Other" by rschoon Apr 12 '22, 2:07 a.m.
2 answers
Hi Udi Valer,
You could retry the same steps using REST URLs for RQM artifacts.
Here is a cheat sheet for querying rqm through rest api so try the steps below:
1. Create a testcase resource in the web UI.
2. GET the resource XML using the API. 3. Update a property in the resource XML. 4. PUT the resource XML using the API.
Let me know how it goes..
Best Regards
Sunil
Comments
udi valer
commented May 24 '17, 3:14 a.m.
Hi Sunil,
I understood from your support that i can't update requirement in test case using REST so i used OSLC.
I'm familiar with REST APi and was able to update test cases but when updated requirement inside test case it wasn't succeed.
Are you sure that i can do it from REST?
Thanks,
Udi
|
Found the issue.
String queryCapability11 = client.lookupQueryCapability(
serviceProviderUrl ,
OSLCConstants.OSLC_QM_V2 ,
OSLCConstants.QM_TEST_CASE_QUERY );
OSLC constants were incorrect.
|
Comments
HI.