Export RQM Test Script to an XML file
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
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
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,
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,
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
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
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.