+ [story#75273] add the metrics for bug of executing use cases.
This commit is contained in:
@@ -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] ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user