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

I have retrieved the test plans, testcase out using rpe 1.2 from rqm 4.0, How do I retrieve the testscripts steps for each testcase?

I have retrieved the test plans, testcase out using rpe 1.2 from rqm 4.0, How do I retrieve the testscripts steps for each testcase?

RPE version 1.2, RQM version 4.02

Thanks.

0 votes



One answer

Permanent link
I believe you are using RQM reportable RESTful API to retrieve all the artifacts. You cannot get testscripts steps directly within a test case. You must obtain the test scripts within a test case, then obtain test script steps within each script.

To find the url for test scripts within test case, find an element named "testscript" like below within the obtained test case xml:

<ns2:testscript href="https://davidbox-win7:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testscript/urn:com.ibm.rqm:testscript:1"/>

Then use the url in href attibute with a param to do another GET of the test script:

https://davidbox-win7:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testscript/urn:com.ibm.rqm:testscript:1?etlmode=true

or

https://davidbox-win7:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testscript/urn:com.ibm.rqm:testscript:1?abbreviate=false

You will find entried in returned xml like:

<ns2:steps><ns9:step ns1:id="_KmLf0bbNEeKZePXMCv2ntw" type="execution" stepIndex="1"><ns9:name>1</ns9:name><ns9:title>1</ns9:title><ns9:description><div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">1</div:div></ns9:description><ns9:expectedResult><div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">1</div:div></ns9:expectedResult><ns9:comment/><ns9:compare/></ns9:step></ns2:steps>

Wish this helps.


0 votes

Comments

Keaton,

Be user to specify the Request Header text/xml or Application/xml when performing the requests. This will ensure you obtain the XML of the artifact
You can use Poster or any other type of http client to make the request

Ara

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
× 12,019
× 10,938

Question asked: Apr 23 '13, 7:08 p.m.

Question was seen: 5,582 times

Last updated: Sep 27 '13, 10:45 a.m.

Confirmation Cancel Confirm