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

22 lines
610 B
PHP
Executable File

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/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为空查询