Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi community,
I have the following configuration (codeBeamer 2.2.1.0.4).
This gives the following result.
Now, I only would like to see the latest run of this test case.
How can this be done in the configuration?
Or is there any other possibility to manage this?
Thanks in advance.
Best regards.
Pascal
Solved! Go to Solution.
Filter test cases by their last run result in a Codebeamer report.
You can explore the following options:
Hi @PW_10873009
Thank you for your question.
Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.
Also, feel free to add any additional information you think might be relevant.
Best regards,
Hi - i am not from ptc - so not an "official" solution. We do it with 2 calculated fields on the testcase,
the first gets the ID of the latest testrun (basically just the one with the highest ID) and the 2nd field fetches the result of the item with that ID.
Formulas:
to get the ID of the latest run: "Last Formal Run ID" = max ( distinct (downstreamReferences.trackerTypes('TestRun').{item | ((item.resolutions[0].id <= 4 ) && ( item.formality.name == 'Formal' ) ) ? item.id : null } ) )
to get the result of that testrun: lastFormalRunID > 0 ? Item(lastFormalRunID).resolutions[0].name : 'No Run'''
This way you can display the last formal run in a traceability table.
if you need not just the result of the formal run, you can remove the condition in the formula of Last Formal Run ID field. if there is no run, the formula returns 0, that is why we have the condition in the 2nd formula.
Filter test cases by their last run result in a Codebeamer report.
You can explore the following options:
