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

OSCL call to retrieve all test steps from a project

I am using Jazz Team Server 5.0.1. I need to read and save in a file all test steps from a project (and for several projects). One way to do this via OSCL call is doing something like this:

            int i = 1;
            while (keep){
             try{
                ResponseHandler<String> responseHandler=new BasicResponseHandler();
                HttpUriRequest req = new HttpGet("https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Proyecto%20Calidad/testscript/urn:com.ibm.rqm:testscript:" + i);
                i++;
                String res = oslcClient.getHttpClient().execute(req, responseHandler);
                //Save the res in a file...
              } catch (exception e){
                  keep = false;
             }
            }

This is somewhat a hassle and I think it may be problematic if for some reason there is a gap in the id (eg the script with id 2 is deleted). There is any way to retrieve all the test scripts with their test steps?


Please note that I need the test script steps so using this url in the call is not enough since it does not provide the test steps:

https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Proyecto%20Calidad/testscript/

Thanks.

0 votes


Accepted answer

Permanent link
Easy. Try this.
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Proyecto%20Calidad/testscript?fields=feed/entry/content/testscript/(identifier|webId|title|steps/*/*)

For more details, see this document.
https://jazz.net/wiki/bin/view/Main/RqmApi#fields
Antonio Dionisio selected this answer as the correct answer

1 vote

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,941
× 516
× 89

Question asked: Nov 24 '16, 3:25 a.m.

Question was seen: 1,919 times

Last updated: Nov 25 '16, 1:09 a.m.

Confirmation Cancel Confirm