* testtask: refactor the script to test the getResults method.

This commit is contained in:
liugang
2023-10-17 09:33:28 +08:00
parent cd56ce3286
commit 290139e082
2 changed files with 12 additions and 3 deletions
+6 -3
View File
@@ -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: []