26 lines
876 B
PHP
26 lines
876 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
/**
|
|
|
|
title=productTao->getBugStats();
|
|
timeout=0
|
|
cid=1
|
|
|
|
*/
|
|
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
include dirname(__FILE__, 2) . '/product.class.php';
|
|
|
|
zdTable('bug')->gen(50);
|
|
zdTable('user')->gen(5);
|
|
su('admin');
|
|
|
|
$productIdList[] = array();
|
|
$productIdList[] = range(1, 10);
|
|
$productIdList[] = range(10, 20);
|
|
|
|
$productTester = new productTest();
|
|
r($productTester->getBugStatsTest($productIdList[0])) && p('1:unresolved,fixed,closed,total') && e('3,0,0,3'); // 测试系统中所有产品下的Bug统计信息
|
|
r($productTester->getBugStatsTest($productIdList[1])) && p('2:unresolved,fixed,closed,total') && e('3,0,0,3'); // 测试系统中产品1-10下的Bug统计信息
|
|
r($productTester->getBugStatsTest($productIdList[2])) && p('11:unresolved,fixed,closed,total') && e('3,0,0,3'); // 测试系统中产品11-20下的Bug统计信息
|