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 :
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
2 answers
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."
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:
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 :
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
You are using the wrong URL (see https://jazz.net/wiki/bin/view/Main/RqmApi#resourceUrl_for_interaction_with).
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,
Integration URL :
URL as Per Doc: <integrationUrl>resources/projectAlias/resourceType
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>
Comments
Nilesh Bawalekar
Jun 18 '14, 12:42 a.m.https://wegsfes29277clm3.accenture.com/qm/web/console/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Sandbox-CLM-General(QM5.0)/testscript URL for 4.0 by mistake i add '//'.