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

Update/Set Result Details content of RQM Test Result Resource using OSLC/REST API

Hi,


I'm trying to update a RQM Test Result resource with extendedproperty 'richTextSection' using OSLC API call to 'updateResource'. I believe 'richTextSection' is associated with Result Details section of Test Result where i want to update some content.

Even after client.updateResource executed without any exception Result Details content is not updated and missing from Test Result.
I wonder, Is this correct way to update Test Result resource? Are reportable REST APIs more convenient to achieve this update.
E.g Source code snapshot
TestResult testResult= client.getResource(testresultLocation, OSLCConstants.CT_RDF).getEntity(TestResult.class);
 Map<QName, Object> extProp1 = testResult.getExtendedProperties();
 extProp1.put(qName, "Comment updated by using API ");
 testResult.setExtendedProperties(extProp1);
 ClientResponse updateResponse = client.updateResource(testresultLocation, testResult,
                            OslcMediaType.APPLICATION_RDF_XML);

Your feedback is appreciated! Thank You!
-Jay

0 votes


Accepted answer

Permanent link
Hi Jayesh,

Currently the "richTextSection" property is supported only for creating the test result. It is not supported for updating the test result. Hence Result Details content is not updated using OSLC API call to 'updateResource'.

I would suggest to open an RFE for your use case in RQM.

Thank You,
Vijay Patil
Jayesh Gaikar selected this answer as the correct answer

0 votes

Comments

Thanks for reply Vijay!

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,952
× 516
× 235
× 137

Question asked: Apr 08 '20, 4:04 p.m.

Question was seen: 1,676 times

Last updated: Sep 01 '20, 1:49 p.m.

Confirmation Cancel Confirm