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

How to create test plan and test suite in java code how can i do rest call extracting from RQM via Java code?

How to create test plan and test suite in java code how can i do rest call while extracting from RQM via Java code?

I have urlconstructutil.class is there here all the rest url I am mention

for example :-

RQM_BASE_URL = "/service/com.ibm.rqm.integration.service.IIntegrationService/resources/"

 public static String constructTestCaseRetreivalUrl( final String serverUrl, final String projectName )
   {if (projectName != null)
      { final String baseUrl = serverUrl + RQM_BASE_URL + projectName + "/testcase";
         final UrlGenerator urlGenerator = new UrlGenerator( baseUrl );
         final String params = "fields=feed/entry/content/testcase/(id|content|title|owner|webId|remotescript|identifier|creationDate|updated|priority|state)";
         urlGenerator.setParameter( FIELDS, params );
         return urlGenerator.getUrl();
      }
      return null;
   }


In the same way  how can I create rest call for Testplan and TestSuite need a help

I am new for this jazz.net

0 votes



One answer

Permanent link
Simply replace "/testcase" with "/testplan" or "/testsuite" for the variable "baseUrl". Of course the field selection "params" needs to be changed accordingly. For more details, check the RQM reportable REST API.
https://jazz.net/wiki/bin/view/Main/RqmApi

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

Question asked: May 05 '15, 9:45 a.m.

Question was seen: 2,799 times

Last updated: May 05 '15, 8:17 p.m.

Confirmation Cancel Confirm