How to import/export test script step's actual results from/to a file ? in RQM tool
when a test step is passed then usually we have to write the expected results into actual results with some modifications only
and this is very labor some if you have to do it manually for large number of steps
i wanted to export all steps to a file and do some modifications with English sentences and then import all steps into corresponding actual results
My question is , is there any feature for importing exporting steps?
Accepted answer
Hi,
There is no web UI feature for exporting and importing steps.
You could use the ETM REST API though to export all steps for a manual script to XML with:
GET https://<server>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<ProjectAlias>/testscript/urn:com.ibm.rqm:testscript:<ID>
And you can get the test case result with the actual result with:
GET https://<server>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<ProjectAlias>/executionresult/urn:com.ibm.rqm:executionresult:<ID>
That XML includes:
<ns16:expectedResult>
<div xmlns="http://www.w3.org/1999/xhtml">
<div dir="ltr">this is the expected result</div>
</div>
</ns16:expectedResult>
<ns16:actualResult>
<div xmlns="http://www.w3.org/1999/xhtml">this is the ACTUAL RESULT</div>
</ns16:actualResult>
<ns16:description>
<div xmlns="http://www.w3.org/1999/xhtml">description</div>
</ns16:description>
<ns16:stepType>com.ibm.rqm.execution.common.elementtype.execution</ns16:stepType>
Also, have you looked at the offline execution functionality? That will include the scripts steps and you can just copy/paste that in step result with extra content and push it back to ETM. Please see https://www.ibm.com/support/knowledgecenter/SSYMRC_7.0.1/com.ibm.rational.test.qm.doc/topics/t_run_offline.html