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

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

You're web client shows the list of TCER is associated to TC but how do you print them using a REST API call?

0 votes



One answer

Permanent link
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

1 vote

Comments

This works for us.  Thank you for the post.

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
× 1,220

Question asked: Oct 05 '16, 9:56 a.m.

Question was seen: 3,943 times

Last updated: Oct 06 '16, 2:03 a.m.

Confirmation Cancel Confirm