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

Getting last execution state of test case

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.

0 votes



2 answers

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

0 votes


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

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,926

Question asked: Jul 17 '13, 5:23 a.m.

Question was seen: 5,777 times

Last updated: Nov 16 '16, 2:06 p.m.

Confirmation Cancel Confirm