It's all about the answers!

Ask a question

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

Christelle COIC (11213) | asked Oct 12 '15, 8:52 a.m.

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 )


Brett Bohnn commented Oct 15 '15, 5:29 p.m. | edited Oct 15 '15, 5:33 p.m.

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 will return a feed with XML that includes the ID, title and attachment href:</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=""></ns5:state><ns3:creator ns7:resource="">clmuser</ns3:creator><ns5:owner>unassigned</ns5:owner><ns2:locked>false</ns2:locked><ns2:scripttype></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="" xmlns="" dir="ltr"><a href="" target="_blank"><img src="" alt="image.PNG" border="0" id="_kHTCQXN_EeWCuPl850rE9g"/></a>test</div:div></ns9:description><ns9:expectedResult><div:div xmlns:div="" xmlns="">test</div:div></ns9:expectedResult><ns9:comment/><ns9:compare/></ns9:step></ns2:steps></ns2:testscript></content></entry></feed>

"testingReports" in URL is the RQM project alias which you can get from https://<hostname>:<port>/qm/service/

That feed is limited to "Max Feed Entries/Page" value discussed here

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.


4 answers

permanent link
Brett Bohnn (9411941) | answered Oct 15 '15, 5:35 p.m.
Hi Christelle,

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


permanent link
Christelle COIC (11213) | answered Oct 16 '15, 5:05 a.m.


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?



permanent link
Brett Bohnn (9411941) | answered Oct 16 '15, 10:33 a.m.

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.



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.


permanent link
Christelle COIC (11213) | answered Oct 20 '15, 6:30 a.m.

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!

Your answer

Register or to post your answer.