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?
|
Accepted answer
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
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]
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
F:\Softwares\Testing\RQM-Extras-RQMUrlUtil-6.0> |
2 other answers
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. Comments
libin sebastian
commented Sep 11 '15, 10:33 p.m.
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 |
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))"
|
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.