Extract test case results from Jazz RQM with RPE 1.1.2
- March 27th, 2012
- Author: hategan.oana
- Category: RPE Template
- Discussion: 20 Comments
Recently I had to generate some test cases reports from Jazz Quality Management with RPE 1.1.2. Everything went very smoothly until I also needed the testing results to be contained in my reports.
Here is the solution I came up with.
As you know, in RQM you have the possibility to assign an execution result to each test case. In this way, you can see which test cases passed and which of them failed. Also, a test case can have several results.
When you want to extract this information using RPE, you need to iterate feed/entry/content/testcase elements from the QM data source. For each test case, all the feed/entry/content/executionresult elements should be iterated
Each execution result element from the data source schema has a feed/entry/content/executionresult/testcase element. This element tells us to which test case this result belongs. If we compare the attributes feed/entry/content/testcase/identified and feed/entry/content/executionresult/testcase/href, we can deduce whether the execution result belongs to the current test case or not. We will use a condition to display only those execution results belonging to the test case.
In order to iterate all the test cases, you must first add the QM data source schema and then add a Data Source Configuration Element to your template.
The URL for the collection data source schema is
https://host:port/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/schema/feed.xsd
The target data source will be REST_qm.
The dynamic configuration URI will be: https://giediprime:9445/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Web Publisher (Quality Management) /testcase?fields=feed/entry/content/testcase/*.
You also need to introduce your Jazz username and password in the Properties panel.
For each execution result we need to iterate through all feed/entry/content/executionresult elements. In order to do this, add a new data source to the template. Use the same URL for feed schema and name the data source REST_executions_feed.
You need to insert one more Data Source Configuration element that will have as target the REST_execution_feed data source. After that, set the URI of the configuration element.
This is how your final RPE template should look like:
The last column of the test cases table iterates all the execution results. In this column there is inserted another table, which has one entry for each execution result associated to the test case.
For each execution result, it must be verified if the execution result element corresponds to the current test case. If the condition is verified, the execution result is displayed.
The execution result state is contained by the feed/entry/content/executionresult/state attribute.
This is how the generated document looks like:
Thanks for this detailed article, I appreciate it. It gave me a starting point to report ExecutionResults. But I am facing a problem, even after following all these steps religiously I am still not able to get the ExecutionResults for each test case in the report. All I get is a table with TestCase names but the last column is always empty. Am I missing something or is there some known issue.
Hello Roy,
I can only think of two things that could go wrong: either the dynamic data source element for executions is not configured correctly or the execution records are not correctly associated to a test case in Rational Quality Manager. In order to check this, could you please send me the dynamic configuration URI of the executions data source?
You could also check if the View Test Case Execution Records from the Execution menu in RQM.
Regards,
Oana Hategan
Hi Hategan,
Thanks for the quick response, I was eventually able to resolve the issue. The problem was with the paging of RQM Feeds, I was getting only 10 Test Cases and Test Results from RQM and they didn’t always corresponded to the 10 Test Cases I had. To solve this I had to specify the Recursion Level which got me all the Test Cases and Test Results in RQM.
With RQM 4.0 or later I think there is a more performant solution than iterate over all execution results.
Inside test case iterator put a Data Source Configuration Element with a scripted URI like this:
BaseURL + “executionresult?fields=feed/entry/content/executionresult/(*|testcase[@href='” + identifier +”‘])”;
It uses fields parameter to filter resources returned by RQM.
BaseURL is calculated from testcase/identifier to get a string like this:
https://://service/com.ibm.rqm.integration.service.IIntegrationService/resources//
I given The url but it is showing the error. Error: illegal character (src1#1)Finished
Can you please give the script used for state of exection result?
I am facing the issue ll I get is a table with TestCase names but the last column is always empty.
In it something is also to me this idea is pleasant, I completely with you agree.
collier alhambra van cleef prix rplique http://www.hotsearchbrand.com/fr/vintage-van-cleef-arpels-replica-yellow-gold-necklace-onyx-p256/
Всего хорошего https://yandex.ru/collections/api/links/redirect/?url=https://ya.ru/?830731205285 Желаем удачи.
Всего доброго https://yandex.ru/collections/api/links/redirect/?url=https://ya.ru/?490238075929 Желаем удачи.
At the same time, many antique
Услуги растаможки во Владивостоке
from lat. manus – “hand” and scribo – “I write”) ]
“Julia’s Garland” (fr. Guirlande de Julie)
consists of the book itself
I have been looking about. The niche of information on the repository is excellent and helpful and will help me in our studies a couple times a week. It is obvious everyone here gained a large amount of details about the things I am interested in and the other hyper links and info like wise show it. I’m not typically browsing websites when I am busy however when I am bored i’m more often than not searching for this sort of factual information and others similarly concerning it. When anyone gets a chance, check out at my website: https://www.pcropsis.com/pcropsisblog/beyond-covid-19-testing-reagent-rvd-facilitates-extraction-free-amplification-of-bacteria – genomic DNA extraction by Reagent Buccal and is interconnected with infection detection research and study.
among them acquired “Moral
consists of the book itself
European glory, and even after
among them acquired “Moral
Mother sends PINGU to the baker’s to fetch the bread bu in the process he steals a cake. He attempts to conceal is from his mother but she spots it and he has to go back to the baker’s shop and apologise. As a punishment PINGU must clean the chimney, which he promptly falls down but gets a cake as a thank you anyway. However PINGU is not best pleased when he discovers that, whilst he has been washing off the chimney dirt, Pinga has eaten his reward. Slot Online Pulsa Tanpa Potongan
bride, Julie d’Angenne.