It's all about the answers!

Ask a question

Export RQM Test Script to an XML file


Joe Wines (2643) | asked Jan 28 '11, 9:32 a.m.
Hi,

I've seen numerous posts re: exporting scripts using REST API and other methods to excel etc. I wonder if someone can help me though. We require the ability to export individual test scripts from RQM to an XML file - is this doable? If so, what is the process?

IBM have asked us to use the repo tools but I think they have got confused as the command they suggested exported the entire database, not an individual test script!

Thanks in advance!

Joe

5 answers



permanent link
Paul Slauenwhite (8.4k12) | answered Jan 31 '11, 8:02 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi,

I've seen numerous posts re: exporting scripts using REST API and other methods to excel etc. I wonder if someone can help me though. We require the ability to export individual test scripts from RQM to an XML file - is this doable? If so, what is the process?

IBM have asked us to use the repo tools but I think they have got confused as the command they suggested exported the entire database, not an individual test script!

Thanks in advance!

Joe


Hi Joe,

You can use the public RQM REST API (https://jazz.net/wiki/bin/view/Main/RqmApi) to resolve a feed of resources (e.g. test scripts) using your web browser or Firefox's Poster. Note, the optional request parameters (https://jazz.net/wiki/bin/view/Main/RqmApi#Optional_Parameters). In your case, you would use the following request to resolve a fully populated feed of test scripts in the <projectAlias>:

https://<hostname>:<port>/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testscript?abbreviate=false

permanent link
Joe Wines (2643) | answered Jan 31 '11, 8:22 a.m.
Hi,

I've seen numerous posts re: exporting scripts using REST API and other methods to excel etc. I wonder if someone can help me though. We require the ability to export individual test scripts from RQM to an XML file - is this doable? If so, what is the process?

IBM have asked us to use the repo tools but I think they have got confused as the command they suggested exported the entire database, not an individual test script!

Thanks in advance!

Joe


Hi Joe,

You can use the public RQM REST API (https://jazz.net/wiki/bin/view/Main/RqmApi) to resolve a feed of resources (e.g. test scripts) using your web browser or Firefox's Poster. Note, the optional request parameters (https://jazz.net/wiki/bin/view/Main/RqmApi#Optional_Parameters). In your case, you would use the following request to resolve a fully populated feed of test scripts in the <projectAlias>:

https://<hostname>:<port>/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testscript?abbreviate=false

Hi Paul,

Thanks very much for your response. That works really well!

Joe

permanent link
Joe Wines (2643) | answered Feb 01 '11, 4:51 a.m.
Hi,

I've seen numerous posts re: exporting scripts using REST API and other methods to excel etc. I wonder if someone can help me though. We require the ability to export individual test scripts from RQM to an XML file - is this doable? If so, what is the process?

IBM have asked us to use the repo tools but I think they have got confused as the command they suggested exported the entire database, not an individual test script!

Thanks in advance!

Joe


Hi Joe,

You can use the public RQM REST API (https://jazz.net/wiki/bin/view/Main/RqmApi) to resolve a feed of resources (e.g. test scripts) using your web browser or Firefox's Poster. Note, the optional request parameters (https://jazz.net/wiki/bin/view/Main/RqmApi#Optional_Parameters). In your case, you would use the following request to resolve a fully populated feed of test scripts in the <projectAlias>:

https://<hostname>:<port>/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testscript?abbreviate=false

Hi Paul,

Thanks very much for your response. That works really well!

Joe

Hi Paul,

We tested this yesterday and it worked fine on our "live RQM instance". When we tried it on our test instance it didn't work. Right-clicking and "save link as" was not saving the text/XML, it was trying to save the link to the actual page.

In Firefox each entry looks like this:
Test Script #this is what needs to be right-clicked
15 November 2010 10:52
Keyword Implementation
Media files
PROJECT (Firefox Document) #this links to RQM

From the test instance the top one also links to RQM. i.e. It does not open up a window with plain text in it.

Does this make sense?
Any thoughts on why this is happening? Both are running the same version of RQM etc.

Regards,
Joe

permanent link
gary kohl (11) | answered Aug 09 '16, 12:41 p.m.
 https://<hostname>:<port>/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testscript?abbreviate=false 

does not export all the test artifacts and limits the results to 50 artifacts.

is there any other parameter / value for it

permanent link
Venkatesh Prasad (21923) | answered Feb 10 '20, 7:26 a.m.

The test script feed can be used to download up to 512 test scripts per page of XML with an HTTP GET using the REST Client. The number of test scripts per page of XML is dependent on the value of the  Max Feed Entries/Page parameter in RQM Administration > Advanced Properties >  RQM Integration Component. The default value is 50.

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.