It's all about the answers!

Ask a question

How do you print the list of TCER (Test Case Execution Record) for a given TC (Test Case) id?


Natarajan Thirumeni (2981131) | asked Oct 05 '16, 9:56 a.m.
You're web client shows the list of TCER is associated to TC but how do you print them using a REST API call?

One answer



permanent link
Natarajan Thirumeni (2981131) | answered Oct 05 '16, 9:56 a.m.
In order to print the list of TCER for a given test case, one of the easy way is follow "executionworkitem" feed.
The  Syntax:
?fields=feed/entry/content/executionworkitem/(*|testcase[@href=''])

Sample working URL based JKE Banking.
https://host:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+Final+%28Quality+Management%29/executionworkitem?fields=feed/entry/content/executionworkitem/(*|testcase[@href='https://host:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+Final+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:1'])

Where:
host:port - your QM server URL and port number (if any)
JKE+Banking+Final+%28Quality+Management%29 - project area name
com.ibm.rqm:testcase:1 - test case id, you will see in web UI.

Try running the URL in the in browser, it should return ONLY test case execution records for this given test case id, in this case its 1.

Things to watch out:
Ensure single quotes are used properly
Open and closing parenthesis is used as per Syntax
No extra white space anywhere in syntax, @href='https

Comments
Mumtaj Khader commented Oct 06 '16, 1:54 a.m. | edited Oct 06 '16, 2:03 a.m.

This works for us.  Thank you for the post.

Your answer


Register or 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.