It's all about the answers!

Ask a question

Create TCER using REST API for RQM


H D (111) | asked Apr 27 '20, 4:24 p.m.

 Hello, 


I'm trying to use RQMUrlUtility to create a TCER for a known test case. However I keep getting 

RQMUrlUtility: Calling [ HTTP POST ] method to upload XML from a specified file to URL
RQMUrlUtility: Server Response code: 303
RQMUrlUtility: [ SUCCESS ] File : "upload_tcer.xml" successfully posted to URL : "http..

And no TCER is actually created from what I can tell. Wonder if anyone know what's the problem is?

I used:
https://<host>:<port>/<contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService/  resources/<projectAlias>/executionworkitem
also tried:
https://<host>:<port>/<contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService/  resources/<projectAlias>/executionworkitem/urn:com.ibm.rqm:executionworkitem/

I tried make new executionworkitem with the schema but then tried just copy one of the existing TCER and remove 
<ns2:webId> and <ns3:identifier> so that it will generate a new ID? 


Comments
H D commented May 05 '20, 6:23 p.m. | edited May 05 '20, 6:30 p.m.

 Hello,

 I don't have X-Jazz-CSRF-Prevent header but the POST is not from a browser. It's from apache httpclient as per RQMUrlUtility. Unless you need it also? I don't know where to get the JSESSIONID

There's no response body received. Here's the full log: 
* Note that /urn:com.ibm.rqm:executionworkitem:##### is an existing TCER assiciate with the testcase with no changes observed. I also didn't provide any id in order to created new TCER

Default cookie policy RFC_2109 is used.
Attempting to create protocol context using system property: TLSv1.2
RQMUrlUtility: Calling [ HTTP POST ] method to upload XML from a specified file to URL
Type application/xml
RQMUrlUtility: Server Response code: 303
RQMUrlUtility: [ SUCCESS ] File : "upload_tcer.xml" successfully posted to URL : "https://<host>:<port>/<contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService/   resources/<projectAlias>/executionworkitem /executionworkitem "
RQMUrlUtility: response code 303
Status Code:See Other

HEADER RESPONSE:
[X-Powered-By: Servlet/3.0
, Strict-Transport-Security: max-age=31536000
, x-com-ibm-team-scenario: <hostip>
.rqm:executionworkitem:##### 
, Content-Language: en-US
, Transfer-Encoding: chunked
, Date: Tue, 05 May 2020 20:45:37 GMT
]

BODY RESPONSE:

Disconnecting from the IBM Rational Quality Manager server.

2 answers



permanent link
Subhajit Bhuiya (6222) | answered May 05 '20, 2:36 a.m.
JAZZ DEVELOPER

 Are you using  https://<host>:<port>/<contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService/   resources/<projectAlias>/executionworkitem 


for POST. What is the response body of the request. Are you providing X-Jazz-CSRF-Prevent header?


Comments
H D commented May 05 '20, 6:32 p.m.

I don't have X-Jazz-CSRF-Prevent header but the POST is not from a browser. It's from apache httpclient as per RQMUrlUtility. Unless you need it also? I don't know where to get the JSESSIONID

I put the full log in the question comment as it exceed the characters limit for this

permanent link
H D (111) | answered May 06 '20, 5:52 p.m.

I found that the reason is if there's already exist a TCER for the same test plan and test phase then it won't create a new or modify the old one


I changed to a different test phase with no TCER and it works

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.