+ [story#75273] add the metrics for bug of executing use cases.

This commit is contained in:
wangzemei
2025-06-04 15:17:34 +08:00
parent 260740b42c
commit 26b3be2cfb
@@ -0,0 +1,18 @@
<?php
class count_of_case_bug_in_execution extends baseCalc
{
public $dataset = 'getExecutionBugs';
public $fieldList = array('t1.execution', 't1.case');
public $result = array();
public function calculate($row)
{
if(!empty($row->case))
{
if(!isset($this->result[$row->execution])) $this->result[$row->execution] = 0;
$this->result[$row->execution] ++;
}
}
}