It's all about the answers!

Ask a question

Getting last execution state of test case


Chandrahasa Reddy D (5715160) | asked Jul 17 '13, 5:23 a.m.
Hi,
I am trying to get execution result feed which contains details of execution of test case, using following url:
https://hostname:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SampleProject/executionresult?fields=feed/entry/content/executionresult/testcase
The issue here is if I run same test case multiple times, I am not able to find which is the last result as it contains multiple results entry ..
Is there any way to find out only last result of any test case ? please suggest.

2 answers



permanent link
Chenyue Gao (913) | answered Jul 22 '13, 2:55 p.m.
JAZZ DEVELOPER
edited Jul 22 '13, 2:56 p.m.
Hi Chandrahasa, Thanks for your question.
To find out the test result of a specific test case, use this url 
https://hostname:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SampleProject/executionresult?fields=feed/entry/content/executionresult/testcase[title='test case title'| @href='url of the test case']
If you know the last modified time of any executionresult, it is possible to find out only last result by filtering the executionresult by start time 
https://hostname:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SampleProject/executionresult?fields=feed/entry/content/executionresult[starttime>='the last modified time']/testcase[title='test case title'| @href='url of the test case']
If you don't know the last modified time, you can try to sort the execution result by descending order https://hostname:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SampleProject/executionresult?fields=feed/entry/content/executionresult/testcase[title='test case title'| @href='url of the test case']&sort= descending

To find more information about filtering the results, please go to https://jazz.net/wiki/bin/view/Main/RqmApi#fields

permanent link
Setembrino Lusa (54) | answered Nov 16 '16, 2:06 p.m.
 @gaoc I have that question, any suggestions ?
https://jazz.net/forum/questions/231065/after-an-execution-the-test-case-status-gets-back-to-in-progress-and-do-not-change-any-more-only-manually-how-to-handle-that

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.