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

How to have the list of script test with enclosed file in it, from RQM ?

In order to update enclosed files in steps of some test script, we need to extract the list of script having enclosed files.

How can we do? ( our version is : 4.0.2 )

Thanks

0 votes

Comments

Hi Christelle,

Are you referring to images inserted in the step of a manual test script? There is no way to filter on scripts with attachments in the RQM UI, which I am sure you have seen.

The test script REST feed does include attachment references.

For example, a GET on https://clmlocal.ibm.com:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/testingReports/testscript?abbreviate=false will return a feed with XML that includes the ID, title and attachment href:

https://clmlocal.ibm.com:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/testingReports/testscript/urn:com.ibm.rqm:testscript:32</ns3:identifier><ns2:webId>32</ns2:webId><ns3:title>scriptStepImage</ns3:title><ns3:description/><ns2:creationDate>2015-10-15T20:59:17.183Z</ns2:creationDate><ns5:updated>2015-10-15T20:59:18.056Z</ns5:updated><ns5:state ns7:resource="https://clmlocal.ibm.com:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_-CYOX2LjEeWJDZ_8RK76Kw/workflowstate/com.ibm.rqm.process.testscript.workflow/com.ibm.rqm.planning.common.new">com.ibm.rqm.planning.common.new</ns5:state><ns3:creator ns7:resource="https://clmlocal.ibm.com:9443/jts/resource/itemName/com.ibm.team.repository.Contributor/clmuser">clmuser</ns3:creator><ns5:owner>unassigned</ns5:owner><ns2:locked>false</ns2:locked><ns2:scripttype>com.ibm.rqm.planning.common.scripttype.manual</ns2:scripttype><ns2:variables/><ns2:includeBuiltInVars>false</ns2:includeBuiltInVars><ns2:steps><ns9:step ns1:id="_mVOSYHN_EeWCuPl850rE9g" type="execution" stepIndex="1"><ns9:name>test</ns9:name><ns9:title>test</ns9:title><ns9:description><div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" dir="ltr"><a href="https://clmlocal.ibm.com:9443/qm/service/com.ibm.rqm.planning.service.internal.rest.IAttachmentRestService/_kHTCQXN_EeWCuPl850rE9g" target="_blank"><img src="https://clmlocal.ibm.com:9443/qm/service/com.ibm.rqm.planning.service.internal.rest.IAttachmentRestService/_kHTCQXN_EeWCuPl850rE9g" alt="image.PNG" border="0" id="_kHTCQXN_EeWCuPl850rE9g"/></a>test</div:div></ns9:description><ns9:expectedResult><div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">test</div:div></ns9:expectedResult><ns9:comment/><ns9:compare/></ns9:step></ns2:steps></ns2:testscript></content></entry></feed>

"testingReports" in URL https://clmlocal.ibm.com:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/testingReports/testscript?abbreviate=false is the RQM project alias which you can get from https://<hostname>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects

That feed is limited to "Max Feed Entries/Page" value discussed here https://jazz.net/forum/questions/105847/rqm-rest-how-to-get-more-than-50-items-in-response

This would also require client code to parse the XML to something like .cvs so it may not be practical.

If you have RRDI or RPE you might also be able to build a custom report that lists all test scripts and the attachments on each step.

Thanks,
Brett



4 answers

Permanent link
Hi Christelle,

I was having formatting problems so I moved my suggestion to a comment.

Thanks,
Brett

0 votes


Permanent link

Thanks.

I tried request but error was generated : HTTP 400, request has no correct syntax.

However I am interested to use RRDI. I tried some reports but I did not find the correct data to have the test scripts and steps. Which one have I to use?

Regards

Christelle

0 votes


Permanent link
Hi,

1. First, please elaborate on what you are looking for, e.g. are you trying to identify all manual test scripts with an image inserted in a step?

2. The URL I gave uses my public URI and project alias, it will not work as-as for you.

Example:
https://clmlocal.ibm.com:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/testingReports/testscript?abbreviate=false

Is:
https://<host>:<port>/<context>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/test<projectAlias>/testscript?abbreviate=false

So you need to replace <host>, <port>, <context>, <projectAlias> with correct values

3. There is no out-of-the-box RRDI report that provides what  you need, it would have to be a custom report. I would like to be clear on what exactly you need (question #1 above) though.

Thanks,
Brett

0 votes


Permanent link

Concerning 1 : I want to export the script ID and enclosed documents associated to steps of the script

concerning 2 : I did not change test project alias! I will do it again !

concerning 3 : hope answer #1 is OK and there is a solution! :-)

Thanks and regards!

0 votes

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

Question asked: Oct 12 '15, 8:52 a.m.

Question was seen: 2,989 times

Last updated: Oct 20 '15, 6:30 a.m.

Confirmation Cancel Confirm