* testtask: refactor the script to test the getResults method.
This commit is contained in:
@@ -2,7 +2,12 @@
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/testtask.class.php';
|
||||
su('admin');
|
||||
|
||||
zdTable('case')->gen(5);
|
||||
zdTable('casestep')->gen(5);
|
||||
zdTable('testresult')->config('testresult')->gen(5);
|
||||
zdTable('testrun')->gen(5);
|
||||
zdTable('host')->gen(0);
|
||||
|
||||
/**
|
||||
|
||||
@@ -10,8 +15,6 @@ title=测试 testtaskModel->getResults();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
$runIdList = array(0, 1, 2, 3, 4 ,5);
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
title: table zt_testresult
|
||||
author: Gang Liu
|
||||
version: "1.0"
|
||||
fields:
|
||||
- field: stepResults
|
||||
range: []
|
||||
Reference in New Issue
Block a user