* code for task #44332.
This commit is contained in:
@@ -302,12 +302,27 @@ class testcaseModel extends model
|
||||
* @param int $executionID
|
||||
* @param string $orderBy
|
||||
* @param object $pager
|
||||
* @param string $browseType
|
||||
* @param string $browseType all|wait|needconfirm
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getExecutionCases($executionID, $orderBy = 'id_desc', $pager = null, $browseType = '')
|
||||
{
|
||||
if($browseType == 'needconfirm')
|
||||
{
|
||||
return $this->dao->select('distinct t1.*, t2.*')->from(TABLE_PROJECTCASE)->alias('t1')
|
||||
->leftJoin(TABLE_CASE)->alias('t2')->on('t1.case=t2.id')
|
||||
->leftJoin(TABLE_STORY)->alias('t3')->on('t1.story = t3.id')
|
||||
->where('t1.project')->eq((int)$executionID)
|
||||
->beginIF($browseType != 'all')->andWhere('t2.status')->eq($browseType)->fi()
|
||||
->andWhere('t2.deleted')->eq('0')
|
||||
->andWhere('t3.version > t2.storyVersion')
|
||||
->andWhere("t3.status")->eq('active')
|
||||
->orderBy($orderBy)
|
||||
->page($pager)
|
||||
->fetchAll('id');
|
||||
}
|
||||
|
||||
return $this->dao->select('distinct t1.*, t2.*')->from(TABLE_PROJECTCASE)->alias('t1')
|
||||
->leftJoin(TABLE_CASE)->alias('t2')->on('t1.case=t2.id')
|
||||
->where('t1.project')->eq((int)$executionID)
|
||||
@@ -1701,6 +1716,13 @@ class testcaseModel extends model
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Summary cases
|
||||
*
|
||||
* @param array $cases
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function summary($cases)
|
||||
{
|
||||
$executed = 0;
|
||||
|
||||
Reference in New Issue
Block a user