Files
EasySoft-ZenTaoPMS/test/model/testreport/getpercaserunner4report.php
T

22 lines
641 B
PHP
Executable File

#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/testreport.class.php';
su('admin');
/**
title=测试 testreportModel->getPerCaseRunner4Report();
cid=1
pid=1
正常查询 >> admin,1
taskID为空查询 >> 0
*/
$taskID = array('1', '');
$reportID = '1';
$testreport = new testreportTest();
r($testreport->getPerCaseRunner4ReportTest($taskID[0], $reportID)) && p('admin:name,value') && e('admin,1'); //正常查询
r($testreport->getPerCaseRunner4ReportTest($taskID[1], $reportID)) && p() && e('0'); //taskID为空查询