Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Pie Chart at Status Page of Test Run


#1

Hi All,

Actualy we have two status which are related to passed.

  1. Passed (standard status)
  2. Passed with minor issues (custom status)

At the status page of the test run we have for e.g. 50% passed and additional 30% passed with minor issues.
Is there any possiblity to have this both values summarized for the over all progress?

Cheers

Jonathan


#2

I’ve scripted a solution:

name: Include "Passed With Minor Issues"
description: Update Test Runs Results to include "Passed With Minor Issues" status
author: Jonathan Becker
version: 1.0
includes: ^plans/view/2127
excludes: 

js:
$(document).ready(
    function() {
        
        $.ajax(
            {
            url: 'index.php?api/v2/get_plan/' + uiscripts.context.plan.id,
            dataType: 'json',
            beforeSend: function(xhr, settings){
                xhr.setRequestHeader("Content-Type", "application/json");
            },
            success: function(data, status, xhr){
                $AllCases = data.custom_status1_count + data.custom_status2_count + data.blocked_count + data.failed_count + data.passed_count + data.retest_count + data.untested_count;
                $Ressult = ((data.custom_status2_count + data.passed_count)*(100/$AllCases));
                document.getElementsByClassName('chart-pie-percent-title')[0].innerHTML = $Ressult.toFixed(0) + ' %'; 
                document.getElementsByClassName('chart-pie-percent-description')[0].innerHTML = 'passed <font size="2"><p>incl. with minor issues</p></font>'; 
            },
            error: function(xhr, status, error){
                console.log(error);
            }
        });    
    }
);

#3

Hi Jonathan,

Thanks for your posting. It’s planned to offer this as a built option for statuses in the future but good to hear that you found a workaround in the meantime. Happy to add another vote to this feature request.

Cheers,
Tobias


#4

I would also like this ability added to TestRail. Please add another vote for this feature request.


#5

Added, thanks Levi :slight_smile:

Cheers,
Tobias