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.
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
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
@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