* Modify unit test of caselib.
This commit is contained in:
@@ -26,8 +26,10 @@ $_POST = array(
|
||||
'type' => array(2 => 'performance', 3 => 'unit'),
|
||||
'stage' => array(2 => array(), 3 => array()),
|
||||
'keywords' => array(2 => 'keywords1', 3 => 'keywords2'),
|
||||
'status' => array(2 => '', 3 => ''),
|
||||
'desc' => array(2 => array(), 3 => array()),
|
||||
'precondition' => array(2 => '', 3 => ''),
|
||||
'isEndPage' => 1,
|
||||
'isEndPage' => 0,
|
||||
'pagerID' => 1
|
||||
);
|
||||
|
||||
@@ -37,7 +39,7 @@ $total = $tester->dao->select('count(*) total')->from(TABLE_CASE)->where( 'lib')
|
||||
$cases = $tester->dao->select('*')->from(TABLE_CASE)->where( 'lib')->eq(201)->fetchAll('id');
|
||||
|
||||
r($total) && p() && e('12'); //添加两条数据之后查询数据条数是否正确
|
||||
r($cases) && p('411:title,keywords') && e('测试导入添加1,keywords1'); //添加数据之后查询新加用例的名称,关键字
|
||||
r($cases) && p('412:title,keywords') && e('测试导入添加2,keywords2'); //添加数据之后查询新加用例的名称,关键字
|
||||
r($cases) && p('561:title,keywords') && e('测试导入添加1,keywords1'); //添加数据之后查询新加用例的名称,关键字
|
||||
r($cases) && p('562:title,keywords') && e('测试导入添加2,keywords2'); //添加数据之后查询新加用例的名称,关键字
|
||||
|
||||
$db->restoreDB();
|
||||
$db->restoreDB();
|
||||
|
||||
Reference in New Issue
Block a user