* Add auto test of bug.
This commit is contained in:
+317
-2
@@ -46,6 +46,14 @@ class bugTest
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test batch create bugs.
|
||||
*
|
||||
* @param int $productID
|
||||
* @param array $param
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function batchCreateObject($productID, $param = array())
|
||||
{
|
||||
$modules = array('0', '0', '0');
|
||||
@@ -108,7 +116,7 @@ class bugTest
|
||||
* @param array $bug
|
||||
* @param int $executionID
|
||||
* @access public
|
||||
* @return int
|
||||
* @return object|int
|
||||
*/
|
||||
public function createBugFromGitlabIssueTest($bug, $executionID)
|
||||
{
|
||||
@@ -129,7 +137,7 @@ class bugTest
|
||||
* Test get bugs.
|
||||
*
|
||||
* @access public
|
||||
* @return int
|
||||
* @return string
|
||||
*/
|
||||
public function getBugsTest($product, $branch, $browseType, $module)
|
||||
{
|
||||
@@ -149,6 +157,313 @@ class bugTest
|
||||
$title = '';
|
||||
foreach($bugs as $bug) $title .= ',' . $bug->title;
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $title;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test check delay bug.
|
||||
*
|
||||
* @param object $bug
|
||||
* @param string $status
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function checkDelayBugTest($bug, $status)
|
||||
{
|
||||
$bug->status = $status;
|
||||
$bug->deadline = $bug->deadline ? date('Y-m-d',strtotime("$bug->deadline day")) : '0000-00-00';
|
||||
$bug->resolvedDate = $bug->resolvedDate ? date('Y-m-d',strtotime("$bug->resolvedDate day")) : '0000-00-00';
|
||||
|
||||
$object = $this->objectModel->checkDelayBug($bug);
|
||||
if(!isset($object->delay)) $object->delay = 0;
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $object;
|
||||
}
|
||||
}
|
||||
|
||||
public function checkDelayedBugsTest($productID)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
/* Load pager. */
|
||||
$tester->app->loadClass('pager', $static = true);
|
||||
$pager = new pager(0, 20 ,1);
|
||||
|
||||
$bugs = $this->objectModel->getAllBugs($productID, 0, 0, $executions, 'id_asc', $pager, 0);
|
||||
$bugs = $this->objectModel->checkDelayedBugs($bugs);
|
||||
|
||||
$delay = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$delay .= ',' . (!isset($bug->delay) ? 0 : $bug->delay);
|
||||
}
|
||||
$delay = trim($delay, ',');
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $delay;
|
||||
}
|
||||
}
|
||||
|
||||
public function getModuleBugsTest($productIDList, $moduleIDList)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
$bugs = $this->objectModel->getModuleBugs($productIDList, 'all', $moduleIDList, $executions);
|
||||
|
||||
$title = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$title .= ',' . $bug->title;
|
||||
}
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $title;
|
||||
}
|
||||
}
|
||||
|
||||
public function getAllBugsTest($productIDList, $moduleIDList)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
$bugs = $this->objectModel->getAllBugs($productIDList, 'all', $moduleIDList, $executions, 'id_desc');
|
||||
|
||||
$title = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$title .= ',' . $bug->title;
|
||||
}
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $title;
|
||||
}
|
||||
}
|
||||
|
||||
public function getByAssigntomeTest($productIDList, $moduleIDList)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
$bugs = $this->objectModel->getByAssigntome($productIDList, 'all', $moduleIDList, $executions, 'id_desc', null, 0);
|
||||
|
||||
$title = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$title .= ',' . $bug->title;
|
||||
}
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $title;
|
||||
}
|
||||
}
|
||||
|
||||
public function getByOpenedbymeTest($productIDList, $moduleIDList)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
$bugs = $this->objectModel->getByOpenedbyme($productIDList, 'all', $moduleIDList, $executions, 'id_desc', null, 0);
|
||||
|
||||
$title = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$title .= ',' . $bug->title;
|
||||
}
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $title;
|
||||
}
|
||||
}
|
||||
|
||||
public function getByResolvedbymeTest($productIDList)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
$bugs = $this->objectModel->getByResolvedbyme($productIDList, 'all', '0', $executions, 'id_desc', null, 0);
|
||||
|
||||
$title = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$title .= ',' . $bug->title;
|
||||
}
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $title;
|
||||
}
|
||||
}
|
||||
|
||||
public function getByAssigntonullTest($productIDList)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
$bugs = $this->objectModel->getByAssigntonull($productIDList, 'all', '0', $executions, 'id_desc', null, 0);
|
||||
|
||||
$title = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$title .= ',' . $bug->title;
|
||||
}
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $title;
|
||||
}
|
||||
}
|
||||
|
||||
public function getUnconfirmedTest($productIDList, $modules)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
$bugs = $this->objectModel->getUnconfirmed($productIDList, 'all', $modules, $executions, 'id_desc', null, 0);
|
||||
|
||||
$title = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$title .= ',' . $bug->title;
|
||||
}
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $title;
|
||||
}
|
||||
}
|
||||
|
||||
public function getOverdueBugsTest($productIDList, $modules)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
$bugs = $this->objectModel->getOverdueBugs($productIDList, 'all', $modules, $executions, 'id_desc', null, 0);
|
||||
|
||||
$title = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$title .= ',' . $bug->title;
|
||||
}
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $title;
|
||||
}
|
||||
}
|
||||
|
||||
public function getByStatusTest($productIDList, $modules, $status)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
$bugs = $this->objectModel->getByStatus($productIDList, 'all', $modules, $executions, $status, 'id_desc', null, 0);
|
||||
|
||||
$title = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$title .= ',' . $bug->title;
|
||||
}
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
return dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $title;
|
||||
}
|
||||
}
|
||||
|
||||
public function getByLonglifebugsTest($productIDList, $modules)
|
||||
{
|
||||
global $tester;
|
||||
$executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete');
|
||||
|
||||
$bugs = $this->objectModel->getByLonglifebugs($productIDList, 'all', $modules, $executions, 'id_desc', null, 0);
|
||||
|
||||
$title = '';
|
||||
foreach($bugs as $bug)
|
||||
{
|
||||
$title .= ',' . $bug->title;
|
||||
}
|
||||
$title = trim($title, ',');
|
||||
$title = str_replace("'", '', $title);
|
||||
|
||||
if(dao::isError())
|
||||
{
|
||||
|
||||
+12
-4
@@ -11,7 +11,7 @@ fields:
|
||||
- field: branch
|
||||
range: 0
|
||||
- field: module
|
||||
range: 0
|
||||
range: 1821-1823,1825-1827,1831-1833,0{1000000}
|
||||
- field: execution
|
||||
range: 101-700{3}
|
||||
- field: plan
|
||||
@@ -57,7 +57,7 @@ fields:
|
||||
- field: color
|
||||
range: [#3da7f5,#75c941,#2dbdb2,#797ec9,#ffaf38,#ff4e3e]
|
||||
- field: confirmed
|
||||
range: [0,1]:R
|
||||
range: 0,1
|
||||
- field: activatedCount
|
||||
range: 0
|
||||
- field: mailto
|
||||
@@ -77,8 +77,11 @@ fields:
|
||||
type: timestamp
|
||||
format: "YYYY-MM-DD"
|
||||
- field: deadline
|
||||
range: "(+2w):60"
|
||||
range: "(-1M)-(+1w):-1D"
|
||||
type: timestamp
|
||||
prefix: ""
|
||||
postfix: ""
|
||||
loop: 0
|
||||
format: "YYYY-MM-DD"
|
||||
- field: resolvedBy
|
||||
range: []{50},$assignedTo{30},admin{20}
|
||||
@@ -87,7 +90,12 @@ fields:
|
||||
- field: resolvedBuild
|
||||
range: []{55},trunk{15},[]{25},trunk{5}
|
||||
- field: resolvedDate
|
||||
range:
|
||||
range: "(+1w)-(-2w):-1D"
|
||||
type: timestamp
|
||||
prefix: ""
|
||||
postfix: ""
|
||||
loop: 0
|
||||
format: "YYYY-MM-DD"
|
||||
- field: closedBy
|
||||
range: []{80},admin{20}
|
||||
- field: closedDate
|
||||
|
||||
Executable
+68
@@ -0,0 +1,68 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->checkDelayBug();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
检查deadline在1天前 resolvedDate不存在 状态为未解决的bug是否延期 >> 1
|
||||
检查deadline在1天前 resolvedDate不存在 状态为已解决的bug是否延期 >> 1
|
||||
检查deadline在1天前 resolvedDate不存在 状态为已关闭的bug是否延期 >> 1
|
||||
检查deadline在3天前 resolvedDate在1天前 状态为未解决的bug是否延期 >> 2
|
||||
检查deadline在3天前 resolvedDate在1天前 状态为已解决的bug是否延期 >> 2
|
||||
检查deadline在3天前 resolvedDate在1天前 状态为已关闭的bug是否延期 >> 2
|
||||
检查deadline在3天前 resolvedDate在4天前 状态为未解决的bug是否延期 >> 0
|
||||
检查deadline在3天前 resolvedDate在4天前 状态为已解决的bug是否延期 >> 0
|
||||
检查deadline在3天前 resolvedDate在4天前 状态为已关闭的bug是否延期 >> 0
|
||||
检查deadline在3天后 resolvedDate在4天后 状态为未解决的bug是否延期 >> 1
|
||||
检查deadline在3天后 resolvedDate在4天后 状态为已解决的bug是否延期 >> 1
|
||||
检查deadline在3天后 resolvedDate在4天后 状态为已关闭的bug是否延期 >> 1
|
||||
检查deadline在3天后 resolvedDate在4天前 状态为未解决的bug是否延期 >> 0
|
||||
检查deadline在3天后 resolvedDate在4天前 状态为已解决的bug是否延期 >> 0
|
||||
检查deadline在3天后 resolvedDate在4天前 状态为已关闭的bug是否延期 >> 0
|
||||
|
||||
*/
|
||||
|
||||
$bug1 = new stdclass();
|
||||
$bug1->deadline = '-1';
|
||||
$bug1->resolvedDate = '0';
|
||||
|
||||
$bug2 = new stdclass();
|
||||
$bug2->deadline = '-3';
|
||||
$bug2->resolvedDate = '-1';
|
||||
|
||||
$bug3 = new stdclass();
|
||||
$bug3->deadline = '-3';
|
||||
$bug3->resolvedDate = '-4';
|
||||
|
||||
$bug4 = new stdclass();
|
||||
$bug4->deadline = '3';
|
||||
$bug4->resolvedDate = '4';
|
||||
|
||||
$bug5 = new stdclass();
|
||||
$bug5->deadline = '3';
|
||||
$bug5->resolvedDate = '-4';
|
||||
|
||||
$statusList = array('active', 'resolved', 'closed');
|
||||
|
||||
$bug = new bugTest();
|
||||
r($bug->checkDelayBugTest($bug1, $statusList[0])) && p('delay') && e('1'); // 检查deadline在1天前 resolvedDate不存在 状态为未解决的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug1, $statusList[1])) && p('delay') && e('1'); // 检查deadline在1天前 resolvedDate不存在 状态为已解决的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug1, $statusList[2])) && p('delay') && e('1'); // 检查deadline在1天前 resolvedDate不存在 状态为已关闭的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug2, $statusList[0])) && p('delay') && e('2'); // 检查deadline在3天前 resolvedDate在1天前 状态为未解决的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug2, $statusList[1])) && p('delay') && e('2'); // 检查deadline在3天前 resolvedDate在1天前 状态为已解决的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug2, $statusList[2])) && p('delay') && e('2'); // 检查deadline在3天前 resolvedDate在1天前 状态为已关闭的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug3, $statusList[0])) && p('delay') && e('0'); // 检查deadline在3天前 resolvedDate在4天前 状态为未解决的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug3, $statusList[1])) && p('delay') && e('0'); // 检查deadline在3天前 resolvedDate在4天前 状态为已解决的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug3, $statusList[2])) && p('delay') && e('0'); // 检查deadline在3天前 resolvedDate在4天前 状态为已关闭的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug4, $statusList[0])) && p('delay') && e('1'); // 检查deadline在3天后 resolvedDate在4天后 状态为未解决的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug4, $statusList[1])) && p('delay') && e('1'); // 检查deadline在3天后 resolvedDate在4天后 状态为已解决的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug4, $statusList[2])) && p('delay') && e('1'); // 检查deadline在3天后 resolvedDate在4天后 状态为已关闭的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug5, $statusList[0])) && p('delay') && e('0'); // 检查deadline在3天后 resolvedDate在4天前 状态为未解决的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug5, $statusList[1])) && p('delay') && e('0'); // 检查deadline在3天后 resolvedDate在4天前 状态为已解决的bug是否延期
|
||||
r($bug->checkDelayBugTest($bug5, $statusList[2])) && p('delay') && e('0'); // 检查deadline在3天后 resolvedDate在4天前 状态为已关闭的bug是否延期
|
||||
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->checkDelayedBugs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
检查deadline在resolvedDate前 状态为未解决的bug是否延期 >> 35,33,31
|
||||
检查deadline在resolvedDate后 状态为未解决的bug是否延期 >> 0,0,0
|
||||
检查deadline在resolvedDate前 状态为已解决的bug是否延期 >> 10,8,6
|
||||
检查deadline在resolvedDate后 状态为已解决的bug是否延期 >> 0,0,0
|
||||
检查deadline在resolvedDate前 状态为已关闭的bug是否延期 >> 6,4,2
|
||||
检查deadline在resolvedDate后 状态为已关闭的bug是否延期 >> 0,0,0
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1', '7','18', '20', '28', '33');
|
||||
|
||||
$bug = new bugTest();
|
||||
r($bug->checkDelayedBugsTest($productIDList[0])) && p('delay') && e('35,33,31'); // 检查deadline在resolvedDate前 状态为未解决的bug是否延期
|
||||
r($bug->checkDelayedBugsTest($productIDList[1])) && p('delay') && e('0,0,0'); // 检查deadline在resolvedDate后 状态为未解决的bug是否延期
|
||||
r($bug->checkDelayedBugsTest($productIDList[2])) && p('delay') && e('10,8,6'); // 检查deadline在resolvedDate前 状态为已解决的bug是否延期
|
||||
r($bug->checkDelayedBugsTest($productIDList[3])) && p('delay') && e('0,0,0'); // 检查deadline在resolvedDate后 状态为已解决的bug是否延期
|
||||
r($bug->checkDelayedBugsTest($productIDList[4])) && p('delay') && e('6,4,2'); // 检查deadline在resolvedDate前 状态为已关闭的bug是否延期
|
||||
r($bug->checkDelayedBugsTest($productIDList[5])) && p('delay') && e('0,0,0'); // 检查deadline在resolvedDate后 状态为已关闭的bug是否延期
|
||||
@@ -10,12 +10,12 @@ title=bugModel->createBugFromGitlabIssue ();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
测试正常的创建来源于gitlab issue的bug title >> 问题1
|
||||
测试短时间内重复创建来源于gitlab issue的bug >> 0
|
||||
测试正常的创建来源于gitlab issue的bug execution >> 101
|
||||
测试正常的创建来源于gitlab issue的bug pri >> 3
|
||||
测试正常的创建来源于gitlab issue的bug severity >> 3
|
||||
测试创建没有标题 来源于gitlab issue的异常bug >> 『Bug标题』不能为空。
|
||||
测试正常的创建来源于gitlab issue的bug的title >> 问题1
|
||||
测试正常的创建来源于gitlab issue的bug的execution >> 101
|
||||
测试正常的创建来源于gitlab issue的bug的pri >> 3
|
||||
测试正常的创建来源于gitlab issue的bug的severity >> 3
|
||||
测试创建没有标题 来源于gitlab issue的异常bug >> 『Bug标题』不能为空。
|
||||
测试短时间内重复创建来源于gitlab issue的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
@@ -43,11 +43,11 @@ $bug5->title = '';
|
||||
$bug5->execution = $executionID;
|
||||
|
||||
$bug=new bugTest();
|
||||
r($bug->createBugFromGitlabIssueTest($bug1, $executionID)) && p('title') && e('问题1'); // 测试正常的创建来源于gitlab issue的bug title
|
||||
r($bug->createBugFromGitlabIssueTest($bug1, $executionID)) && p('task') && e('0'); // 测试短时间内重复创建来源于gitlab issue的bug
|
||||
r($bug->createBugFromGitlabIssueTest($bug2, $executionID)) && p('execution') && e($executionID); // 测试正常的创建来源于gitlab issue的bug execution
|
||||
r($bug->createBugFromGitlabIssueTest($bug3, $executionID)) && p('pri') && e('3'); // 测试正常的创建来源于gitlab issue的bug pri
|
||||
r($bug->createBugFromGitlabIssueTest($bug4, $executionID)) && p('severity') && e('3'); // 测试正常的创建来源于gitlab issue的bug severity
|
||||
r($bug->createBugFromGitlabIssueTest($bug1, $executionID)) && p('title') && e('问题1'); // 测试正常的创建来源于gitlab issue的bug的title
|
||||
r($bug->createBugFromGitlabIssueTest($bug2, $executionID)) && p('execution') && e("$executionID"); // 测试正常的创建来源于gitlab issue的bug的execution
|
||||
r($bug->createBugFromGitlabIssueTest($bug3, $executionID)) && p('pri') && e('3'); // 测试正常的创建来源于gitlab issue的bug的pri
|
||||
r($bug->createBugFromGitlabIssueTest($bug4, $executionID)) && p('severity') && e('3'); // 测试正常的创建来源于gitlab issue的bug的severity
|
||||
r($bug->createBugFromGitlabIssueTest($bug5, $executionID)) && p('title:0') && e('『Bug标题』不能为空。'); // 测试创建没有标题 来源于gitlab issue的异常bug
|
||||
r($bug->createBugFromGitlabIssueTest($bug1, $executionID)) && p('task') && e('0'); // 测试短时间内重复创建来源于gitlab issue的bug
|
||||
|
||||
system("./ztest init");
|
||||
|
||||
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->getAllBugs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825下的bug >> BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下的bug >> 0
|
||||
查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
|
||||
查询产品1 3与模块1821, 1825下的bug >> BUG1
|
||||
查询产品1 3与模块不存在的模块1000001下的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825下的bug >> 0
|
||||
查询不存在的产品10001 与不存在的模块1000001下的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1,2,3,1000001', '1,3', '1000001');
|
||||
$moduleIDList = array('1821,1825,1831,1000001', '1821, 1825', '1000001');
|
||||
|
||||
$bug=new bugTest();
|
||||
|
||||
r($bug->getAllBugsTest($productIDList[0], $moduleIDList[0])) && p('title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug
|
||||
r($bug->getAllBugsTest($productIDList[0], $moduleIDList[1])) && p('title') && e('BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825下的bug
|
||||
r($bug->getAllBugsTest($productIDList[0], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下的bug
|
||||
r($bug->getAllBugsTest($productIDList[1], $moduleIDList[0])) && p('title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1'); // 查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下的bug
|
||||
r($bug->getAllBugsTest($productIDList[1], $moduleIDList[1])) && p('title') && e('BUG1'); // 查询产品1 3与模块1821, 1825下的bug
|
||||
r($bug->getAllBugsTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下的bug
|
||||
r($bug->getAllBugsTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug
|
||||
r($bug->getAllBugsTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下的bug
|
||||
r($bug->getAllBugsTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下的bug
|
||||
@@ -13,12 +13,12 @@ pid=1
|
||||
查询正常产品 没有分支 查看全部 没有模块的全部bug的标题拼接1 >> BUG3,BUG2,BUG1
|
||||
查询正常产品 不存在的分支主干 查看全部 没有模块的全部bug的标题拼接 >> BUG3,BUG2,BUG1
|
||||
查询正常产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接 >> BUG3,BUG2,BUG1
|
||||
查询正常产品 没有分支 查看全部 模块1821的全部bug的标题拼接 >> 0
|
||||
查询正常产品 没有分支 查看全部 模块1821的全部bug的标题拼接 >> BUG1
|
||||
查询正常产品 没有分支 查看全部 模块不存在的全部bug的标题拼接 >> BUG3,BUG2,BUG1
|
||||
查询多分支产品 没有分支 查看全部 没有模块的全部bug的标题拼接59 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*'":.<>。?/();175
|
||||
查询多分支产品 主干 查看全部 没有模块的全部bug的标题拼接 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*'":.<>。?/();175
|
||||
查询多分支产品 没有分支 查看全部 没有模块的全部bug的标题拼接59 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175
|
||||
查询多分支产品 主干 查看全部 没有模块的全部bug的标题拼接 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175
|
||||
查询多分支产品 分支37 查看全部 没有模块的全部bug的标题拼接 >> 0
|
||||
查询多分支产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*'":.<>。?/();175
|
||||
查询多分支产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175
|
||||
查询多分支产品 没有分支 查看全部 模块2053的全部bug的标题拼接 >> 0
|
||||
查询不存在的产品的全部bug的标题拼接 >> 0
|
||||
|
||||
@@ -34,13 +34,11 @@ $bug=new bugTest();
|
||||
r($bug->getBugsTest($productIDList[0], $branchList[0], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('BUG3,BUG2,BUG1'); // 查询正常产品 没有分支 查看全部 没有模块的全部bug的标题拼接1
|
||||
r($bug->getBugsTest($productIDList[0], $branchList[1], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('BUG3,BUG2,BUG1'); // 查询正常产品 不存在的分支主干 查看全部 没有模块的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[0], $branchList[0], $browseTypeList[1], $moduleIDList[0])) && p('title') && e('BUG3,BUG2,BUG1'); // 查询正常产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[0], $branchList[0], $browseTypeList[0], $moduleIDList[1])) && p('title') && e('0'); // 查询正常产品 没有分支 查看全部 模块1821的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[0], $branchList[0], $browseTypeList[0], $moduleIDList[1])) && p('title') && e('BUG1'); // 查询正常产品 没有分支 查看全部 模块1821的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[0], $branchList[0], $browseTypeList[0], $moduleIDList[3])) && p('title') && e('BUG3,BUG2,BUG1'); // 查询正常产品 没有分支 查看全部 模块不存在的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[1], $branchList[0], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*\'":.<>。?/();175'); // 查询多分支产品 没有分支 查看全部 没有模块的全部bug的标题拼接59
|
||||
r($bug->getBugsTest($productIDList[1], $branchList[1], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*\'":.<>。?/();175'); // 查询多分支产品 主干 查看全部 没有模块的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[1], $branchList[0], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175'); // 查询多分支产品 没有分支 查看全部 没有模块的全部bug的标题拼接59
|
||||
r($bug->getBugsTest($productIDList[1], $branchList[1], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175'); // 查询多分支产品 主干 查看全部 没有模块的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[1], $branchList[2], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('0'); // 查询多分支产品 分支37 查看全部 没有模块的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[1], $branchList[0], $browseTypeList[1], $moduleIDList[0])) && p('title') && e('BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*\'":.<>。?/();175'); // 查询多分支产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[1], $branchList[0], $browseTypeList[1], $moduleIDList[0])) && p('title') && e('BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175'); // 查询多分支产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[1], $branchList[0], $browseTypeList[0], $moduleIDList[2])) && p('title') && e('0'); // 查询多分支产品 没有分支 查看全部 模块2053的全部bug的标题拼接
|
||||
r($bug->getBugsTest($productIDList[2], $branchList[0], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品的全部bug的标题拼接
|
||||
|
||||
system("./ztest init");
|
||||
|
||||
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->getByAssigntome();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825下指派给我的bug >> BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下指派给我的bug >> 0
|
||||
查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
|
||||
查询产品1 3与模块1821, 1825下指派给我的bug >> BUG1
|
||||
查询产品1 3与模块不存在的模块1000001下指派给我的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825下指派给我的bug >> 0
|
||||
查询不存在的产品10001 与不存在的模块1000001下指派给我的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1,2,3,1000001', '1,3', '1000001');
|
||||
$moduleIDList = array('1821,1825,1831,1000001', '1821, 1825', '1000001');
|
||||
|
||||
$bug=new bugTest();
|
||||
|
||||
r($bug->getByAssigntomeTest($productIDList[0], $moduleIDList[0])) && p('title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug
|
||||
r($bug->getByAssigntomeTest($productIDList[0], $moduleIDList[1])) && p('title') && e('BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825下指派给我的bug
|
||||
r($bug->getByAssigntomeTest($productIDList[0], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下指派给我的bug
|
||||
r($bug->getByAssigntomeTest($productIDList[1], $moduleIDList[0])) && p('title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1'); // 查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug
|
||||
r($bug->getByAssigntomeTest($productIDList[1], $moduleIDList[1])) && p('title') && e('BUG1'); // 查询产品1 3与模块1821, 1825下指派给我的bug
|
||||
r($bug->getByAssigntomeTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下指派给我的bug
|
||||
r($bug->getByAssigntomeTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug
|
||||
r($bug->getByAssigntomeTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下指派给我的bug
|
||||
r($bug->getByAssigntomeTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下指派给我的bug
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->getByAssigntonull();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询产品1 581 58 不存在的产品10001下由我创建的bug >> BUG174,BUG173,BUG172,BUG93,BUG92,BUG91
|
||||
查询产品1 58下由我创建的bug >> BUG174,BUG173,BUG172
|
||||
查询不存在的产品10001下由我创建的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1,31,58,1000001', '1,58', '1000001');
|
||||
|
||||
$bug=new bugTest();
|
||||
|
||||
r($bug->getByAssigntonullTest($productIDList[0])) && p('title') && e('BUG174,BUG173,BUG172,BUG93,BUG92,BUG91'); // 查询产品1 581 58 不存在的产品10001下由我创建的bug
|
||||
r($bug->getByAssigntonullTest($productIDList[1])) && p('title') && e('BUG174,BUG173,BUG172'); // 查询产品1 58下由我创建的bug
|
||||
r($bug->getByAssigntonullTest($productIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001下由我创建的bug
|
||||
Executable
+44
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->getByLonglifebugs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug >> bug8,BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825下长时间未关闭的bug >> BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下长时间未关闭的bug >> 0
|
||||
查询产品1 2 3 不存在的产品10001下长时间未关闭的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG2,BUG1
|
||||
查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug >> bug8,BUG1
|
||||
查询产品1 3与模块1821, 1825下长时间未关闭的bug >> BUG1
|
||||
查询产品1 3与模块不存在的模块1000001下长时间未关闭的bug >> 0
|
||||
查询产品13 不存在的产品10001下长时间未关闭的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG2,BUG1
|
||||
查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825下长时间未关闭的bug >> 0
|
||||
查询不存在的产品10001 与不存在的模块1000001下长时间未关闭的bug >> 0
|
||||
查询不存在的产品10001下长时间未关闭的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1,2,3,1000001', '1,3', '1000001');
|
||||
$moduleIDList = array('1821,1825,1832,1000001', '1821, 1825', '1000001', '0');
|
||||
|
||||
$bug=new bugTest();
|
||||
|
||||
r($bug->getByLonglifebugsTest($productIDList[0], $moduleIDList[0])) && p('title') && e('bug8,BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[0], $moduleIDList[1])) && p('title') && e('BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[0], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[0], $moduleIDList[3])) && p('title') && e('BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG2,BUG1'); // 查询产品1 2 3 不存在的产品10001下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[1], $moduleIDList[0])) && p('title') && e('bug8,BUG1'); // 查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[1], $moduleIDList[1])) && p('title') && e('BUG1'); // 查询产品1 3与模块1821, 1825下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[1], $moduleIDList[3])) && p('title') && e('BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG2,BUG1'); // 查询产品13 不存在的产品10001下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下长时间未关闭的bug
|
||||
r($bug->getByLonglifebugsTest($productIDList[2], $moduleIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001下长时间未关闭的bug
|
||||
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->getByOpenedbyme();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825下由我创建的bug >> BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下由我创建的bug >> 0
|
||||
查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
|
||||
查询产品1 3与模块1821, 1825下由我创建的bug >> BUG1
|
||||
查询产品1 3与模块不存在的模块1000001下由我创建的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825下由我创建的bug >> 0
|
||||
查询不存在的产品10001 与不存在的模块1000001下由我创建的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1,2,3,1000001', '1,3', '1000001');
|
||||
$moduleIDList = array('1821,1825,1831,1000001', '1821, 1825', '1000001');
|
||||
|
||||
$bug=new bugTest();
|
||||
|
||||
r($bug->getByOpenedbymeTest($productIDList[0], $moduleIDList[0])) && p('title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug
|
||||
r($bug->getByOpenedbymeTest($productIDList[0], $moduleIDList[1])) && p('title') && e('BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825下由我创建的bug
|
||||
r($bug->getByOpenedbymeTest($productIDList[0], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下由我创建的bug
|
||||
r($bug->getByOpenedbymeTest($productIDList[1], $moduleIDList[0])) && p('title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1'); // 查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug
|
||||
r($bug->getByOpenedbymeTest($productIDList[1], $moduleIDList[1])) && p('title') && e('BUG1'); // 查询产品1 3与模块1821, 1825下由我创建的bug
|
||||
r($bug->getByOpenedbymeTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下由我创建的bug
|
||||
r($bug->getByOpenedbymeTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug
|
||||
r($bug->getByOpenedbymeTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下由我创建的bug
|
||||
r($bug->getByOpenedbymeTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下由我创建的bug
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->getByResolvedbyme();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询产品1 29 98 不存在的产品10001 下由我解决的bug >> BUG294,BUG293,BUG292,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();87,BUG86,BUG85
|
||||
查询产品1 98下由我解决的bug >> BUG294,BUG293,BUG292
|
||||
查询产品29下由我解决的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();87,BUG86,BUG85
|
||||
查询不存在的产品10001 下由我解决的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1,29,98,1000001', '1,98', '29', '1000001');
|
||||
|
||||
$bug=new bugTest();
|
||||
|
||||
r($bug->getByResolvedbymeTest($productIDList[0])) && p('title') && e('BUG294,BUG293,BUG292,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();87,BUG86,BUG85'); // 查询产品1 29 98 不存在的产品10001 下由我解决的bug
|
||||
r($bug->getByResolvedbymeTest($productIDList[1])) && p('title') && e('BUG294,BUG293,BUG292'); // 查询产品1 98下由我解决的bug
|
||||
r($bug->getByResolvedbymeTest($productIDList[2])) && p('title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();87,BUG86,BUG85'); // 查询产品29下由我解决的bug
|
||||
r($bug->getByResolvedbymeTest($productIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001 下由我解决的bug
|
||||
Executable
+75
@@ -0,0 +1,75 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->getByStatus();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug >> bug8,BUG1
|
||||
查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug >> bug8,BUG1
|
||||
查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug >> 0
|
||||
查询产品1 3 不存在的产品10001 与模块1821状态为unclosed下未确认的bug >> BUG1
|
||||
查询产品1 3 不存在的产品10001 与模块1821状态为unresolved下未确认的bug >> BUG1
|
||||
查询产品1 3 不存在的产品10001 与模块1821状态为toclosed下未确认的bug >> 0
|
||||
查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为unclosed下未确认的bug >> 0
|
||||
查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为unresolved下未确认的bug >> 0
|
||||
查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为toclosed下未确认的bug >> 0
|
||||
查询产品1 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug >> BUG1
|
||||
查询产品1 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug >> BUG1
|
||||
查询产品1 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug >> 0
|
||||
查询产品1 与模块1821状态为unclosed下未确认的bug >> BUG1
|
||||
查询产品1 与模块1821状态为unresolved下未确认的bug >> BUG1
|
||||
查询产品1 与模块1821状态为toclosed下未确认的bug >> 0
|
||||
查询产品1 与不存在的模块1000001 状态为unclosed下未确认的bug >> 0
|
||||
查询产品1 与不存在的模块1000001 状态为unresolved下未确认的bug >> 0
|
||||
查询产品1 与不存在的模块1000001 状态为toclosed下未确认的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug >> 0
|
||||
查询不存在的产品10001 与模块1821状态为unclosed下未确认的bug >> 0
|
||||
查询不存在的产品10001 与模块1821状态为unresolved下未确认的bug >> 0
|
||||
查询不存在的产品10001 与模块1821状态为toclosed下未确认的bug >> 0
|
||||
查询不存在的产品10001 与不存在的模块1000001 状态为unclosed下未确认的bug >> 0
|
||||
查询不存在的产品10001 与不存在的模块1000001 状态为unresolved下未确认的bug >> 0
|
||||
查询不存在的产品10001 与不存在的模块1000001 状态为toclosed下未确认的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1,3,1000001', '1', '1000001');
|
||||
$moduleIDList = array('1821,1832,1000001', '1821', '1000001', '0');
|
||||
$statusList = array('unclosed', 'unresolved', 'toclosed');
|
||||
|
||||
$bug=new bugTest();
|
||||
|
||||
r($bug->getByStatusTest($productIDList[0], $moduleIDList[0], $statusList[0])) && p('title') && e('bug8,BUG1'); // 查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[0], $moduleIDList[0], $statusList[1])) && p('title') && e('bug8,BUG1'); // 查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[0], $moduleIDList[0], $statusList[2])) && p('title') && e('0'); // 查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[0], $moduleIDList[1], $statusList[0])) && p('title') && e('BUG1'); // 查询产品1 3 不存在的产品10001 与模块1821状态为unclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[0], $moduleIDList[1], $statusList[1])) && p('title') && e('BUG1'); // 查询产品1 3 不存在的产品10001 与模块1821状态为unresolved下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[0], $moduleIDList[1], $statusList[2])) && p('title') && e('0'); // 查询产品1 3 不存在的产品10001 与模块1821状态为toclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[0], $moduleIDList[2], $statusList[0])) && p('title') && e('0'); // 查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为unclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[0], $moduleIDList[2], $statusList[1])) && p('title') && e('0'); // 查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为unresolved下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[0], $moduleIDList[2], $statusList[2])) && p('title') && e('BUG1'); // 查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为toclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[1], $moduleIDList[0], $statusList[0])) && p('title') && e('BUG1'); // 查询产品1 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[1], $moduleIDList[0], $statusList[1])) && p('title') && e('0'); // 查询产品1 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[1], $moduleIDList[0], $statusList[2])) && p('title') && e('BUG1'); // 查询产品1 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[1], $moduleIDList[1], $statusList[0])) && p('title') && e('BUG1'); // 查询产品1 与模块1821状态为unclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[1], $moduleIDList[1], $statusList[1])) && p('title') && e('0'); // 查询产品1 与模块1821状态为unresolved下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[1], $moduleIDList[1], $statusList[2])) && p('title') && e('0'); // 查询产品1 与模块1821状态为toclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[1], $moduleIDList[2], $statusList[0])) && p('title') && e('0'); // 查询产品1 与不存在的模块1000001 状态为unclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[1], $moduleIDList[2], $statusList[1])) && p('title') && e('0'); // 查询产品1 与不存在的模块1000001 状态为unresolved下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[1], $moduleIDList[2], $statusList[2])) && p('title') && e('0'); // 查询产品1 与不存在的模块1000001 状态为toclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[2], $moduleIDList[0], $statusList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[2], $moduleIDList[0], $statusList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[2], $moduleIDList[0], $statusList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[2], $moduleIDList[1], $statusList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821状态为unclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[2], $moduleIDList[1], $statusList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821状态为unresolved下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[2], $moduleIDList[1], $statusList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821状态为toclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[2], $moduleIDList[2], $statusList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001 状态为unclosed下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[2], $moduleIDList[2], $statusList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001 状态为unresolved下未确认的bug
|
||||
r($bug->getByStatusTest($productIDList[2], $moduleIDList[2], $statusList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001 状态为toclosed下未确认的bug
|
||||
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->getModuleBugs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825下的bug >> BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下的bug >> 0
|
||||
查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
|
||||
查询产品1 3与模块1821, 1825下的bug >> BUG1
|
||||
查询产品1 3与模块不存在的模块1000001下的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825下的bug >> 0
|
||||
查询不存在的产品10001 与不存在的模块1000001下的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1,2,3,1000001', '1,3', '1000001');
|
||||
$moduleIDList = array('1821,1825,1831,1000001', '1821, 1825', '1000001');
|
||||
|
||||
$bug=new bugTest();
|
||||
|
||||
r($bug->getModuleBugsTest($productIDList[0], $moduleIDList[0])) && p('title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug
|
||||
r($bug->getModuleBugsTest($productIDList[0], $moduleIDList[1])) && p('title') && e('BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825下的bug
|
||||
r($bug->getModuleBugsTest($productIDList[0], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下的bug
|
||||
r($bug->getModuleBugsTest($productIDList[1], $moduleIDList[0])) && p('title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1'); // 查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下的bug
|
||||
r($bug->getModuleBugsTest($productIDList[1], $moduleIDList[1])) && p('title') && e('BUG1'); // 查询产品1 3与模块1821, 1825下的bug
|
||||
r($bug->getModuleBugsTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下的bug
|
||||
r($bug->getModuleBugsTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug
|
||||
r($bug->getModuleBugsTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下的bug
|
||||
r($bug->getModuleBugsTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下的bug
|
||||
Executable
+44
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->getOverdueBugs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug >> bug8,BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825下过期未解决的bug >> BUG4,BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下过期未解决的bug >> 0
|
||||
查询产品1 2 3 不存在的产品10001下过期未解决的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG2,BUG1
|
||||
查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug >> bug8,BUG1
|
||||
查询产品1 3与模块1821, 1825下过期未解决的bug >> BUG1
|
||||
查询产品1 3与模块不存在的模块1000001下过期未解决的bug >> 0
|
||||
查询产品13 不存在的产品10001下过期未解决的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG2,BUG1
|
||||
查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825下过期未解决的bug >> 0
|
||||
查询不存在的产品10001 与不存在的模块1000001下过期未解决的bug >> 0
|
||||
查询不存在的产品10001下过期未解决的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1,2,3,1000001', '1,3', '1000001');
|
||||
$moduleIDList = array('1821,1825,1832,1000001', '1821, 1825', '1000001', '0');
|
||||
|
||||
$bug=new bugTest();
|
||||
|
||||
r($bug->getOverdueBugsTest($productIDList[0], $moduleIDList[0])) && p('title') && e('bug8,BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[0], $moduleIDList[1])) && p('title') && e('BUG4,BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[0], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[0], $moduleIDList[3])) && p('title') && e('BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG2,BUG1'); // 查询产品1 2 3 不存在的产品10001下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[1], $moduleIDList[0])) && p('title') && e('bug8,BUG1'); // 查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[1], $moduleIDList[1])) && p('title') && e('BUG1'); // 查询产品1 3与模块1821, 1825下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[1], $moduleIDList[3])) && p('title') && e('BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG2,BUG1'); // 查询产品13 不存在的产品10001下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下过期未解决的bug
|
||||
r($bug->getOverdueBugsTest($productIDList[2], $moduleIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001下过期未解决的bug
|
||||
Executable
+44
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=bugModel->getUnconfirmed();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug >> BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与模块1821, 1825下未确认的bug >> BUG1
|
||||
查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下未确认的bug >> 0
|
||||
查询产品1 2 3 不存在的产品10001下未确认的bug >> BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG5,BUG3,BUG1
|
||||
查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug >> BUG1
|
||||
查询产品1 3与模块1821, 1825下未确认的bug >> BUG1
|
||||
查询产品1 3与模块不存在的模块1000001下未确认的bug >> 0
|
||||
查询产品13 不存在的产品10001下未确认的bug >> BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG1
|
||||
查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug >> 0
|
||||
查询不存在的产品10001 与模块1821, 1825下未确认的bug >> 0
|
||||
查询不存在的产品10001 与不存在的模块1000001下未确认的bug >> 0
|
||||
查询不存在的产品10001下未确认的bug >> 0
|
||||
|
||||
*/
|
||||
|
||||
$productIDList = array('1,2,3,1000001', '1,3', '1000001');
|
||||
$moduleIDList = array('1821,1825,1832,1000001', '1821, 1825', '1000001', '0');
|
||||
|
||||
$bug=new bugTest();
|
||||
|
||||
r($bug->getUnconfirmedTest($productIDList[0], $moduleIDList[0])) && p('title') && e('BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[0], $moduleIDList[1])) && p('title') && e('BUG1'); // 查询产品1 2 3 不存在的产品10001 与模块1821, 1825下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[0], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[0], $moduleIDList[3])) && p('title') && e('BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG5,BUG3,BUG1'); // 查询产品1 2 3 不存在的产品10001下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[1], $moduleIDList[0])) && p('title') && e('BUG1'); // 查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[1], $moduleIDList[1])) && p('title') && e('BUG1'); // 查询产品1 3与模块1821, 1825下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[1], $moduleIDList[3])) && p('title') && e('BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG1'); // 查询产品13 不存在的产品10001下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下未确认的bug
|
||||
r($bug->getUnconfirmedTest($productIDList[2], $moduleIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001下未确认的bug
|
||||
Reference in New Issue
Block a user