It's all about the answers!

Ask a question

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


Nilesh Bawalekar (221117) | asked Jun 18 '14, 12:40 a.m.

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

2 answers



permanent link
Paul Slauenwhite (8.4k12) | answered Jun 18 '14, 8:19 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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. 

Comments
Nilesh Bawalekar commented Jun 18 '14, 8:46 a.m.

Hi Paul,

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


Paul Slauenwhite commented Jun 18 '14, 8:50 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Please post the exact URL you are using.



Nilesh Bawalekar commented Jun 19 '14, 4:42 a.m.

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


Paul Slauenwhite commented Jun 19 '14, 12:13 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

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)?


Nilesh Bawalekar commented Jun 20 '14, 12:18 a.m.

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.


Paul Slauenwhite commented Jun 20 '14, 7:01 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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. 


Nilesh Bawalekar commented Jun 23 '14, 3:28 a.m.

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


Paul Slauenwhite commented Jun 23 '14, 8:08 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Nilesh Bawalekar commented Jun 25 '14, 1:07 a.m.

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.


Paul Slauenwhite commented Jun 25 '14, 8:17 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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.


Nilesh Bawalekar commented Jun 26 '14, 12:29 a.m.

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


Paul Slauenwhite commented Jun 26 '14, 7:10 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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
Nilesh Bawalekar (221117) | answered Jun 27 '14, 1:12 a.m.

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.

Your answer


Register or to post your answer.