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

Feed url to download all the test scripts with steps for a particular test case

 I am using the below feed url to retrieve all the test scripts with steps of a particular test case using test case id using RQm urlutility

https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Demo%20(Quality%20Management)/testscript?fields=feed/entry/content/testscript/(testcase[@href="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Demo+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:7"]) 

With the above command i am able to get the test script name but not the test steps.Can some help me to modify the feed url?


0 votes


Accepted answer

Permanent link
Did you get the same error for original url you posted? You may try using |* after testcase.
It is working as expected for me with RQM 5.0.x.
https://server:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testscript?fields=feed/entry/content/testscript/(testcase[@href='https://server:port /qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+   Management%29/testcase/urn:com.ibm.rqm:testcase:33']|*/steps/step/(name|title))
libin sebastian selected this answer as the correct answer

0 votes

Comments

 I did not get the same error in the original url.I get the error when i use '|' in feed url. How did u post the command?I was using rqm url utility. i have changed the url as u suggested but i still get the same error.


URL used - 
java -jar RQMUrlUtility.jar -command GET -user myid -password mypassword -filepath C:\Users\libin\Desktop\RQMxmls\testscript.xml -url https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Demo%20(Quality%20Management)/testscript?fields=feed/entry/content/testscript/(testcase[@href='https://localhost:9443//qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Demo%20(Quality%20Management)/testcase/urn:com.ibm.rqm:testcase:7']|/steps/step/(name|title))

Snapshot of my command prompt,

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\libin>cd /d F:\Softwares\Testing\RQM-Extras-RQMUrlUtil-6.0

F:\Softwares\Testing\RQM-Extras-RQMUrlUtil-6.0>java -jar RQMUrlUtility.jar -comm
and GET -user myuser -password mypaswd -filepath C:\\Users\\libin\Desktop\\RQ
Mxmls\\testscript.xml -url https://localhost:9443/qm/service/com.ibm.rqm.integra
tion.service.IIntegrationService/resources/Demo%20(Quality%20Management)/testscr
ipt?fields=feed/entry/content/testscript/(testcase[@href='https://localhost:9443
//qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Demo%
20(Quality%20Management)/testcase/urn:com.ibm.rqm:testcase:7']|*/steps/step/(nam
e|title))
'*' is not recognized as an internal or external command,
operable program or batch file.

F:\Softwares\Testing\RQM-Extras-RQMUrlUtil-6.0>


2 other answers

Permanent link
You should be using
<feedUrl>?fields=feed/entry/content/testscript/(*|testcase[@href='<resourceUrl>']/steps/step/*)

Please try
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Demo%20(Quality%20Management)/testscript?fields=feed/entry/content/testscript/(*|testcase[@href='https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Demo+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:7']/steps/step/(name|title))

Hope this works for you.

0 votes

Comments

It's throwing error  'testcase[@href' is not recognized as an internal or external command.I believe it's not recognizing '*|' given in the url



Permanent link
 I found the root cause of the issue.If you are running the command from CMD window then url should be enclosed in "".Command to be used in url utility - 

java -jar RQMUrlUtility.jar -command GET -user myid -password mypaswd -filepath <file path> -url "https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/testscript?fields=feed/entry/content/testscript/(testcase[@href='https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/testcase/urn:com.ibm.rqm:testcase:mytestcaseid']|*/steps/step/(name|title))"

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

Question asked: Sep 11 '15, 9:35 a.m.

Question was seen: 3,997 times

Last updated: Sep 12 '15, 11:50 p.m.

Confirmation Cancel Confirm