It's all about the answers!

Ask a question

RQM OSLC - Update Test Cases

Aaron Cabrera (451418) | asked Sep 30 '14, 5:03 p.m.
We are using version 4.0.5 of CLM (RTC, RRC, RQM)

Is it possible to update an RQM Test Case using OSLC for RQM?  As a test, I want to update the title of a test case.  
During a POST- no error is received and an update does not occur.

Is it like a Test Script: - it states "Changes on other properties will not lead to error but have no effect on the resource."

If it is possible, can someone point me to an example?

4 answers

permanent link
Stephane Leroy (1.4k149) | answered Oct 02 '14, 5:15 a.m.
Hi Aaron,

HTTP error 302 means that you probably get redirected to the RQM login page. Did you try relogin into the RQM server ? Does this resolve the problem ?


Aaron Cabrera commented Oct 14 '14, 2:13 p.m.

Should there be more to the header when doing a "PUT"?

Header {'Content-Type': 'application/rdf+xml', 'OSLC-Core-Version': '2.0', 'Accept': 'application/xml'} 

permanent link
Aaron Cabrera (451418) | answered Oct 01 '14, 3:49 p.m.
edited Oct 01 '14, 4:03 p.m.
 I am using a "PUT" in my program - sorry for the confusion.

Contrary to my previous post - I am receiving a HTTP Response (see below) -  'x-com-ibm-team-repository-web-auth-msg': 'authrequired', 'status': '302'

We are using version 4.0.5 of CLM (RTC, RRC, RQM)

Program Steps
Query for QM Resource : 18654
Test Case Query URI: https://<rqm server>/jazz/oslc_qm/contexts/_QQXu4vxPEeKABcdv99EP2g/resources/

Using XPATH to retrieve the Test Case from the Query Result
Test Case URI: https://<rqm server>/jazz/oslc_qm/contexts/_QQXu4vxPEeKABcdv99EP2g/resources/

Build the TEST CASE URI to "PUT"/Update the Test Case - Test Case URI with Properties
queryURI: https://<rqm server>/jazz/oslc_qm/contexts/_QQXu4vxPEeKABcdv99EP2g/resources/

Build the Header
qm_header {'Content-Type': 'application/rdf+xml', 'OSLC-Core-Version': '2.0', 'Accept': 'application/xml'}

Build the XML (Change Request) to use in the body of the "PUT"
<rdf:RDF xmlns:rdf="" xmlns:dcterms="" xmlns:calm="" xmlns:rqm_auto="" xmlns:rqm_qm="" xmlns:rdfs="" xmlns:acp="" xmlns:oslc="" xmlns:oslc_auto="" xmlns:foaf="" xmlns:oslc_qm="" xmlns:bp=""><oslc_qm:TestCase rdf:about=""><dcterms:title rdf:datatype="">Donation amount limits: Updated - Last @ 2014-10-01T12:13:31.696000</dcterms:title></oslc_qm:TestCase</rdf:RDF>
** The formatting of the XML changes whenever I save it. I've added an image below - you will have to zoom in to see the details.  

HTTP Request
jazzConsumer.http.request(uri=queryURI, method='PUT', headers=qm_header, body=changeRequest)

HTTP Response
{'x-com-ibm-team-repository-web-auth-msg': 'authrequired', 'status': '302', 'content-length': '0', 'content-language': 'en-US', 'x-powered-by': 'Servlet/3.0', 'location': 'https://<rqm server>/jazz/authenticated/identity?', 'date': 'Wed, 01 Oct 2014 15:56:03 GMT', 'content-type': 'text/plain'}

Project Area (JKE Banking)
Process Roles : Test Team Member
Member of the Administrators

permanent link
Stephane Leroy (1.4k149) | answered Oct 01 '14, 11:22 a.m.
Hi Aaron,

you mentioned a POST operation while the link you point us to suggests using a HTTP PUT. I suggest you try this 1st ?
If still in error, you would need to provide more information (RQM version, URL, header, etc.)
Hope this helps


Aaron Cabrera commented Oct 01 '14, 2:04 p.m.

I will post additional information below. 

permanent link
Rosa Naranjo (2.9k11623) | answered Sep 30 '14, 7:42 p.m.

Aaron Cabrera commented Oct 01 '14, 11:07 a.m.

Hi Rosa,

Thank you for your response!

I have read both resources and I believe I'm doing it correctly.  I'm experiencing "Changes on other properties will not lead to error but have no effect on the resource."  that was stated in my previous post.  No errors but no update.

I able to update artifacts in RRC and RTC and I'm currently working on attempting to do it in RQM.

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.