* Update uni test.
This commit is contained in:
@@ -2,7 +2,14 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/execution.class.php';
|
||||
$db->switchDB();
|
||||
|
||||
$execution = zdTable('project');
|
||||
$execution->id->range('1-7');
|
||||
$execution->name->range('项目1,迭代1,迭代2,迭代3,迭代4,迭代5,迭代6');
|
||||
$execution->type->range('project{2},sprint{2},waterfall{2},kanban{2}');
|
||||
$execution->status->range('doing,wait');
|
||||
$execution->gen(7);
|
||||
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
@@ -11,17 +18,17 @@ title=测试executionModel->suspendTest();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
wait敏捷执行挂起 >> status,wait,suspended
|
||||
wait敏捷执行挂起 >> status,wait,suspended
|
||||
doing敏捷执行挂起 >> status,doing,suspended
|
||||
wait瀑布执行挂起 >> status,wait,suspended
|
||||
wait瀑布执行挂起 >> status,wait,suspended
|
||||
doing瀑布执行挂起 >> status,doing,suspended
|
||||
wait看板执行挂起 >> status,wait,suspended
|
||||
wait看板执行挂起 >> status,wait,suspended
|
||||
doing看板执行挂起 >> status,doing,suspended
|
||||
挂起后再次挂起 >> 0
|
||||
挂起后再次挂起 >> 0
|
||||
|
||||
*/
|
||||
|
||||
$executionIDList = array('103', '104', '133', '134', '163', '164');
|
||||
$executionIDList = array('2', '3', '4', '5', '6', '7');
|
||||
|
||||
$execution = new executionTest();
|
||||
r($execution->suspendTest($executionIDList[0])) && p('0:field,old,new') && e('status,wait,suspended'); // wait敏捷执行挂起
|
||||
@@ -31,4 +38,3 @@ r($execution->suspendTest($executionIDList[3])) && p('0:field,old,new') && e('st
|
||||
r($execution->suspendTest($executionIDList[4])) && p('0:field,old,new') && e('status,wait,suspended'); // wait看板执行挂起
|
||||
r($execution->suspendTest($executionIDList[5])) && p('0:field,old,new') && e('status,doing,suspended'); // doing看板执行挂起
|
||||
r($execution->suspendTest($executionIDList[0])) && p() && e('0'); // 挂起后再次挂起
|
||||
$db->restoreDB();
|
||||
Reference in New Issue
Block a user