It's all about the answers!

Ask a question

Creating Defects and retrieving Testcases


Michael Waßmann (33172) | asked Apr 22 '09, 12:27 p.m.
Hi,

I want to ask if there is a documentation on how to create defects in RQM via the REST API ?

I also want to retrieve a list of all Testcase stored in RQM.

Does anyone know how to do that ?

Many thanks in advance for your help

Best regards

finaris

9 answers



permanent link
Robert Rassmann (9923) | answered Apr 23 '09, 10:38 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
We currently do not have an API method for creating defects (Jazz Workitems). We are planning on gaining that functionality from the Jazz foundation upon which RQM will be based (see https://jazz.net/wiki/bin/view/Main/JazzFoundation).

You can gat a list of testcases in you project by using the feed URL. This is https://<server>:<port>/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testcase

or if you have only the default project: https://<server>:<port>/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/testcase

Hi,

I want to ask if there is a documentation on how to create defects in RQM via the REST API ?

I also want to retrieve a list of all Testcase stored in RQM.

Does anyone know how to do that ?

Many thanks in advance for your help

Best regards

finaris

permanent link
Michael Waßmann (33172) | answered Apr 24 '09, 6:06 a.m.
We currently do not have an API method for creating defects (Jazz Workitems). We are planning on gaining that functionality from the Jazz foundation upon which RQM will be based (see https://jazz.net/wiki/bin/view/Main/JazzFoundation).

You can gat a list of testcases in you project by using the feed URL. This is https://<server>:<port>/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testcase

or if you have only the default project: https://<server>:<port>/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/testcase



It works :)
Thank you so much for your quick reply

permanent link
Michael Waßmann (33172) | answered May 13 '09, 12:50 p.m.
Hi rrassman,

Retrieving testcases from the default Projekt works fine. But when i try to get testcases of a specific project by using :

https://127.0.0.1:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/TestProject/testcase

I get this error :

The server does not support the functionality needed to fulfill this request ()

Can you tell if is a RQM bug or does the request above works for you ?

PS : I use RQM Version 1.0.1 Standard Edition.

Many thanks in advance

permanent link
Robert Rassmann (9923) | answered May 14 '09, 9:24 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi rrassman,

Retrieving testcases from the default Projekt works fine. But when i try to get testcases of a specific project by using :

https://127.0.0.1:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/TestProject/testcase

I get this error :

The server does not support the functionality needed to fulfill this request ()


Can you tell if is a RQM bug or does the request above works for you ?

PS : I use RQM Version 1.0.1 Standard Edition.

Many thanks in advance

To refer to an object that is a project area other than the defaul, you need to add in the "resources" keyword. Thus for your example the URL would be: https://127.0.0.1:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TestProject/testcase

permanent link
Michael Waßmann (33172) | answered Jun 15 '09, 9:15 a.m.
Hi rrassman,

Im now facing another problem, namely, that if i send a request to get all testcases belonging to a project, i get only 50 items back, even though the project is containing more than 50 testcases.

Is this a known issue ?

Many thanks for your answers

Best regards

finaris

permanent link
Prabhasana vanka (411) | answered Mar 27 '12, 3:52 p.m.
I am trying to get Requirement and Defect type workitems using the REST API Url :
https://pdbvwmaprat.nw.lbps.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/workitem?fields=feed/entry/content/workitem/*

however , I get all work items even those that dont satisfy the ownerid condition

Does anybody have any idea why this isnt working?

Any help is greatly appreciated

permanent link
Paul Slauenwhite (8.4k12) | answered Mar 29 '12, 9:03 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
The fields selection/filtering request parameter does not support the workitem resource (see https://jazz.net/wiki/bin/view/Main/RqmApi#SupportedFieldsResources).

permanent link
Prabhasana vanka (411) | answered Mar 29 '12, 9:35 a.m.
Hi,

Thanks for your reply

Do you know if can we make a request to add the work item filtering capability to RQM/RTC API?





The fields selection/filtering request parameter does not support the workitem resource (see https://jazz.net/wiki/bin/view/Main/RqmApi#SupportedFieldsResources).

permanent link
Paul Slauenwhite (8.4k12) | answered Mar 29 '12, 9:46 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
You can certainly open a WI against RQM (https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.newWorkItem).

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.