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

Create TCER using REST API for RQM

 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? 

0 votes

Comments

 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

 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?

0 votes

Comments

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

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

0 votes

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
× 478

Question asked: Apr 27 '20, 4:24 p.m.

Question was seen: 1,674 times

Last updated: May 06 '20, 5:52 p.m.

Confirmation Cancel Confirm