<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Changing the Test Case Detailed Report to show only latest test run (Thread)</title><description> 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. </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/reports/1832.aspx</link><item><guid isPermaLink="false">threadId=1832</guid><author>David J (adam.sandman+support@inflectra.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">custom reports</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> test case</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> test runs</category><title>Changing the Test Case Detailed Report to show only latest test run</title><description> 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. </description><pubDate>Thu, 19 Apr 2018 15:06:42 -0400</pubDate><a10:updated>2020-08-06T14:42:17-04:00</a10:updated><link>/Support/Forum/spirateam/reports/1832.aspx</link></item><item><guid isPermaLink="false">messageId=3263</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> The standard test case detailed report contains the following XSLT section that displays the list o</title><description> 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                     </description><pubDate>Thu, 19 Apr 2018 15:21:47 -0400</pubDate><a10:updated>2018-04-19T15:21:47-04:00</a10:updated><link>/Support/Forum/spirateam/reports/1832.aspx#reply3263</link></item><item><guid isPermaLink="false">messageId=3807</guid><author>MOPURAM Ram (Ram.MOPURAM@3ds.com)</author><title> Hi David,  The solution you have provided below just shows one test run for single test . Lets say </title><description> 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 </description><pubDate>Wed, 05 Aug 2020 18:00:58 -0400</pubDate><a10:updated>2020-08-05T18:00:58-04:00</a10:updated><link>/Support/Forum/spirateam/reports/1832.aspx#reply3807</link></item><item><guid isPermaLink="false">messageId=3808</guid><author>Clark R (simon.bor@inflectra.com)</author><title> The test case detailed report can be used to show 1 or many test cases. The example code change is </title><description> 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. </description><pubDate>Thu, 06 Aug 2020 14:15:34 -0400</pubDate><a10:updated>2020-08-06T14:15:34-04:00</a10:updated><link>/Support/Forum/spirateam/reports/1832.aspx#reply3808</link></item><item><guid isPermaLink="false">messageId=3809</guid><author>MOPURAM Ram (Ram.MOPURAM@3ds.com)</author><title> Hi Clark, I am using test run details report and i want to show only the latest test run for all th</title><description> 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </description><pubDate>Thu, 06 Aug 2020 14:20:45 -0400</pubDate><a10:updated>2020-08-06T14:20:45-04:00</a10:updated><link>/Support/Forum/spirateam/reports/1832.aspx#reply3809</link></item><item><guid isPermaLink="false">messageId=3810</guid><author>Clark R (simon.bor@inflectra.com)</author><title> This is not how the test run report works. To get this functionality you will need to write a fully</title><description> 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/     </description><pubDate>Thu, 06 Aug 2020 14:42:17 -0400</pubDate><a10:updated>2020-08-06T14:42:17-04:00</a10:updated><link>/Support/Forum/spirateam/reports/1832.aspx#reply3810</link></item></channel></rss>