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

Not able to save Testscript in RQM 4.0 from C# code

Hi,

I am able to save testscript in my Sandbox for RQM2.0 but wtih same code not able to save it in RQM4.0

1) URL for 2.0 : https://adtjazz3052.accenture.com:443//jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SANDBOX/testscript

Project Name : SANDBOX

2) URL for 4.0 :

https://wegsfes29277clm3.accenture.com/qm/web/console//jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Sandbox-CLM-General(QM5.0)/testscript

Project Name : Sandbox-CLM-General(QM5.0)

Let me know, Is anything wrong here.

After saving on 2.0 when i do "HTTPWEBRequest.GetResoponse()", i got unique id appended to URL. But in 4.0 no it run succesfully with no error and i can not see my script get save in RQM 4.0.

Thanks,

Nilesh B

0 votes



2 answers

Permanent link
You are using the RQM Reportable REST API URL (remove /web/console/jazz/).  See https://jazz.net/wiki/bin/view/Main/RqmApi#resourceUrl_for_interaction_with. 

0 votes

Comments

Hi Paul,

I removed /web/console/jazz/ from my URL, i am getting "The remote server returned an error: (404) Not Found."

Please post the exact URL you are using.

I removed /web/console/jazz/ from above URL and use below URL to Post my script, and got error as  "The remote server returned an error: (404) Not Found."

https://wegsfes29277clm3.accenture.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Sandbox-CLM-General(QM5.0)/testscript

Your last URL is correct.  Does the Sandbox-CLM-General(QM5.0) project area exist or the project area alias incorrect (see https://jazz.net/wiki/bin/view/Main/RqmApi#projectAlias)?

Hi Paul,

Given Project has correct name and with same alias. I use it for login also.

URL login for given project is :

https://wegsfes29277clm3.accenture.com/qm/web/console/Sandbox-CLM-General(QM5.0)

When i use below url to post my script:

https://wegsfes29277clm3.accenture.com/qm/web/console/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Sandbox-CLM-General(QM5.0)/testscript

I get 302 as return value.

If the project area name has changed, the alias will be different (see https://jazz.net/wiki/bin/view/Main/RqmApi#projectAlias).

The 302 error response code is a different issue (see http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection).  The test script already exists in RQM (see Content-Location in https://jazz.net/wiki/bin/view/Main/RqmApi#HTTP_Responses).

I would suggest you use Poster/HTTPRequester to test your RQM Reportable REST API requests before writing the client code. 

I am using Poster now :

For RQM 4.0 my URL to get testscript deatils is as below :

https://wegsfes29277clm3.accenture.com:443/qm/web/console/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Sandbox-CLM-General(QM5.0)/testscript/urn:com.ibm.rqm:testscript:15

and i got response is as :

Status : 200 OK

with content type in text/html; which is not proper result set.

but when i use Poster for RQM 2.0, its giving correct result in XML format.

as content type : application/xml;charset=UTF-8

Hi Paul,
Now i have created RQM - Sandbox instance on Jazz forum as below URL:
https://jazz.net/sandbox01-qm/web/console/AIT (QM 5.0) (Quality Management)

Not i am using Poster to get testscript details using below URL :
https://jazz.net/sandbox01-qm/web/console/AIT (QM 5.0) (Quality Management)/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AIT (QM 5.0) (Quality Management)/testscript/urn:com.ibm.rqm:testscript:763

It showing me status as 200 OK with HTML detail.(no script details)

Same has been check on RQM 2.0 for Poster and give me same result but when i add 'Accept' as Headers it gives me correct testscript details in XML format.
I tried this for RQM 5.0 sandbox instance but it won't work.

Please help require urgently.

To understand how to use an API, like the RQM Reportable REST API, you MUST read the API documentation.  Please read the RQM Reportable REST API documentation at https://jazz.net/wiki/bin/view/Main/RqmApi.  You are still using the wrong URL.

Hi Paul,
URL as Per Doc:
<integrationUrl>resources/projectAlias/resourceType
Integration URL : https://<host>:<port>/<contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService
Login URL: https://jazz.net/sandbox01-qm/web/console/AIT (QM 5.0) (Quality Management)
Project Alias :
AIT (QM 5.0) (Quality Management)
ContextRoot : qm
resourceType : testscript

Can you please, let me know what i am doing wrong in my below URL.
https://jazz.net/sandbox01-qm/web/console/AIT (QM 5.0) (Quality Management)/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AIT (QM 5.0) (Quality Management)/testscript/urn:com.ibm.rqm:testscript:763

The correct URL format is:

https://<host>:<port>/<context root>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project area alias>/<resource type>/urn:com.ibm.rqm:<resource type>:<web ID>

showing 5 of 13 show 8 more comments

Permanent link

Finally i got the solution, RQM integration team gave me contextID to use in the given URL instead of Project Area name.

Thanks for your help Paul.

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
× 10,951

Question asked: Jun 18 '14, 12:40 a.m.

Question was seen: 5,281 times

Last updated: Jun 27 '14, 1:12 a.m.

Confirmation Cancel Confirm