Inflectra Customer Forums: Changing the Test Case Detailed Report to show only latest test run (Thread) We had a request from a customer to change the built-in test case detailed report: The Test Case Detailed report is very close to what we need, BUT it shows multiple test runs for a single test case. When a test run results in a failure or a caution, even though there is a retest shown immediately after it, thats not acceptable to the reviewing folks. So in this post we include the XSLT template changes needed to accomplish this. en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/spirateam/reports/1832.aspxthreadId=1832David J (support1@inflectra.com)custom reports test case test runsChanging the Test Case Detailed Report to show only latest test run We had a request from a customer to change the built-in test case detailed report: The Test Case Detailed report is very close to what we need, BUT it shows multiple test runs for a single test case. When a test run results in a failure or a caution, even though there is a retest shown immediately after it, thats not acceptable to the reviewing folks. So in this post we include the XSLT template changes needed to accomplish this. Thu, 19 Apr 2018 15:06:42 -04002020-08-06T14:42:17-04:00/Support/Forum/spirateam/reports/1832.aspxmessageId=3263David J (support1@inflectra.com) The standard test case detailed report contains the following XSLT section that displays the list o The standard test case detailed report contains the following XSLT section that displays the list of test runs for the current test case: Test Runs: Run # Tester Test Set Release Version Status Type Automation Host Est. Duration Actual Duration Execution Date TR Step Description Expected Result Sample Data ActualResult Status You would simply change the selector to only find the first match. I.e. you change: to Thu, 19 Apr 2018 15:21:47 -04002018-04-19T15:21:47-04:00/Support/Forum/spirateam/reports/1832.aspx#reply3263messageId=3807MOPURAM Ram (Ram.MOPURAM@3ds.com) Hi David, The solution you have provided below just shows one test run for single test . Lets say Hi David, The solution you have provided below just shows one test run for single test . Lets say we have 10 tests and each test is executed multiple times, now we want to show the latest execution of all 10 tests. But the below solution shows test run only for 1 test and doesnt show test runs for the remaining 9 tests. Could you please help with that? Regards, Ram Wed, 05 Aug 2020 18:00:58 -04002020-08-05T18:00:58-04:00/Support/Forum/spirateam/reports/1832.aspx#reply3807messageId=3808Clark R (simon.bor@inflectra.com) The test case detailed report can be used to show 1 or many test cases. The example code change is The test case detailed report can be used to show 1 or many test cases. The example code change is in a foreach loop - so for each test case included in the report it will only show one test run. Thu, 06 Aug 2020 14:15:34 -04002020-08-06T14:15:34-04:00/Support/Forum/spirateam/reports/1832.aspx#reply3808messageId=3809MOPURAM Ram (Ram.MOPURAM@3ds.com) Hi Clark, I am using test run details report and i want to show only the latest test run for all th Hi Clark, I am using test run details report and i want to show only the latest test run for all the test cases. My xslt is below, could you please suggest what exactly i need to do. Test Run TR: - Test Case #: TC Release #: (Build: ) Status: Tester: Execution Date: Test Set: Step Description Expected Result Sample Data Status Associated Incidents: Inc # Type Status Priority Severity Name Owned By Detected On File Attachments: Filename src Date Uploaded https://spiratest.com/SpiraTeam/ /Attachment/ .aspx Thu, 06 Aug 2020 14:20:45 -04002020-08-06T14:20:45-04:00/Support/Forum/spirateam/reports/1832.aspx#reply3809messageId=3810Clark R (simon.bor@inflectra.com) This is not how the test run report works. To get this functionality you will need to write a fully This is not how the test run report works. To get this functionality you will need to write a fully custom report. You can learn more about that here: http://spiradoc.inflectra.com/Reporting/Custom-Report-Tutorial/ Thu, 06 Aug 2020 14:42:17 -04002020-08-06T14:42:17-04:00/Support/Forum/spirateam/reports/1832.aspx#reply3810