It's all about the answers!

Ask a question

How to import/export test script step's actual results from/to a file ? in RQM tool


pavan kumar (135) | asked Oct 02 '20, 12:58 a.m.

 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


permanent link
Brett Bohnn (94111157) | answered Oct 02 '20, 11:40 a.m.
edited Oct 02 '20, 12:52 p.m.

   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>
        </ns16:stepResult>

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

Thanks, Brett  

pavan kumar selected this answer as the correct answer

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.