* [refac] Split xxx.unittest.class.php into model.class.php, tao.class.php and zen.class.php.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -16,13 +16,13 @@ cid=19401
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('action')->gen(40);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
$modifyPassword = array(0, 1);
|
||||
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19402
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getBranchesTest())) && p() && e('2'); // 步骤1:验证返回分支数组长度
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19403
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 3. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 4. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 5. 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getBranchesByProjectTest())) && p() && e('1'); // 步骤1:验证返回数组长度
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19404
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. zendata数据准备(根据需要配置)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getBranchPairsTest()) && p('0') && e('主干'); // 步骤1:验证主分支名称(ID=0)
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19405
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getBugTest()) && p('id') && e('1'); // 步骤1:验证Bug对象ID
|
||||
r($tutorialTest->getBugTest()) && p('title') && e('Test bug-active'); // 步骤2:验证Bug对象标题
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19406
|
||||
|
||||
// 1. 导入依赖
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 执行测试步骤
|
||||
r(count($tutorialTest->getBugsTest())) && p() && e('2'); // 步骤1:获取Bug列表,验证数组长度
|
||||
|
||||
@@ -23,13 +23,13 @@ cid=19407
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getBuildTest()) && p('id') && e('1'); // 步骤1:正常情况,验证ID字段值
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19408
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getBuildPairsTest()) && p('1') && e('Test build'); // 步骤1:正常情况,验证ID为1的版本名称
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19409
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
$builds = $tutorialTest->getBuildsTest();
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19410
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
$cardGroupResult = $tutorialTest->getCardGroupTest();
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19411
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getCaseTest()) && p('id') && e('1'); // 步骤1:验证用例ID
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19412
|
||||
|
||||
// 1. 导入依赖
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 测试步骤
|
||||
r(is_array($tutorialTest->getCasesTest())) && p() && e(1); // 步骤1:测试返回数组类型
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19413
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getCharterTest()) && p('id') && e('1'); // 步骤1:正常获取Charter对象并验证id
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19414
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getChartersTest())) && p() && e('1'); // 步骤1:正常调用返回数组长度为1
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19416
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getColumnsTest())) && p() && e('3'); // 步骤1:正常获取看板列,验证返回数组包含3个对象类型
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19417
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getCommitsTest())) && p() && e('1'); // 步骤1:验证返回数组长度为1
|
||||
|
||||
@@ -19,13 +19,13 @@ cid=19418
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getDemandTest()) && p('id') && e('1'); // 步骤1:正常获取需求,验证ID
|
||||
|
||||
@@ -23,13 +23,13 @@ cid=19419
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getDemandpoolTest()) && p('id,name') && e('1,Test demandpool'); // 步骤1:正常调用并验证基本信息
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19420
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r(count($tutorialTest->getDemandsTest())) && p() && e('2'); // 步骤1:验证返回2个需求
|
||||
r($tutorialTest->getDemandsTest()) && p('1:status') && e('active'); // 步骤2:验证活跃需求状态
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19421
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getDesignTest()) && p('id') && e('1'); // 步骤1:验证设计ID
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19422
|
||||
|
||||
// 1. 导入依赖
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 执行测试步骤
|
||||
r(count($tutorialTest->getDesignsTest())) && p() && e('1');
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19423
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 测试步骤(必须包含至少5个测试步骤)
|
||||
r($tutorialTest->getDocTest()) && p('id') && e('1'); // 步骤1:验证文档ID
|
||||
|
||||
@@ -20,13 +20,13 @@ cid=19424
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getDocLibTest()) && p('id,name,type') && e('2,Test Doc Lib,custom'); // 步骤1:正常调用getDocLib方法
|
||||
|
||||
@@ -33,13 +33,13 @@ cid=19425
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getDocLibsTest()) && p('2:id,name,type,vision,addedBy') && e('2,Test Doc Lib,custom,rnd,admin'); // 测试获取文档库列表的基本信息
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19426
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 测试步骤(必须包含至少5个测试步骤)
|
||||
r($tutorialTest->getDocsTest()) && p('1:id') && e('1'); // 步骤1:验证文档ID
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19427
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getDocTemplateSpacesTest()) && p('1') && e('Doc Template Space'); // 步骤1:测试正常调用获取文档模板空间
|
||||
|
||||
@@ -21,13 +21,13 @@ cid=19428
|
||||
|
||||
// 1. 导入依赖
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 执行测试步骤
|
||||
r($tutorialTest->getEpicTest()) && p('id') && e('1'); // 步骤1:验证返回对象的ID属性
|
||||
|
||||
@@ -45,11 +45,11 @@ cid=19429
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
$execution = $tutorial->getExecutionTest();
|
||||
|
||||
@@ -27,13 +27,13 @@ cid=19430
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getExecutionBurnDataTest(array('2024-01-01', '2024-01-02', '2024-01-03', '2024-01-04', '2024-01-05'))) && p('2024-01-01:value;2024-01-05:value') && e('6;2'); // 步骤1:正常情况-5个日期
|
||||
|
||||
@@ -16,13 +16,13 @@ cid=19431
|
||||
|
||||
*/
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
r($tutorial->getExecutionPairsTest()) && p('3') && e('Test execution'); //检查获取的数据信息
|
||||
r($tutorial->getExecutionPairsTest()) && p('4') && e('~~'); //检查获取的数据信息
|
||||
|
||||
@@ -24,11 +24,11 @@ cid=19432;
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
$products = $tutorial->getExecutionProductsTest();
|
||||
|
||||
@@ -48,9 +48,9 @@ cid=19433
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
$browseType = array('', 'all', 'noclosed');
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ cid=19434
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
r($tutorial->getExecutionStoriesTest()) && p('3:id') && e('3'); // 检查获取需求ID
|
||||
|
||||
@@ -11,13 +11,13 @@ cid=19435
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
r($tutorial->getExecutionStoryPairsTest()) && p('3') && e('Test active story'); //测试是否能拿到数据
|
||||
r($tutorial->getExecutionStoryPairsTest()) && p('1') && e('~~'); //测试是否能拿到数据
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19436
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getFeedbackTest()->id) && p() && e('1'); // 步骤1:验证反馈ID为1
|
||||
|
||||
@@ -35,13 +35,13 @@ cid=19437
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getFeedbacksTest()) && p('1:id,title,status,product,openedBy') && e('1,Wait feedback,wait,1,admin'); // 测试获取反馈1的信息
|
||||
|
||||
@@ -17,7 +17,7 @@ cid=19438
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. zendata数据准备(根据需要配置)
|
||||
$table = zenData('storygrade');
|
||||
@@ -31,7 +31,7 @@ $table->gen(3);
|
||||
su('admin');
|
||||
|
||||
// 4. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 5. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getGradePairsTest('story')) && p('1') && e('SR'); // 步骤1:测试story类型
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19439
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r(is_array($tutorialTest->getGroupsTest())) && p() && e('1'); // 步骤1:验证返回结果类型为数组
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19440
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getIssueTest()) && p('id') && e('1'); // 步骤1:验证问题ID
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19441
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getIssuesTest())) && p() && e('2'); // 步骤1:问题列表数量
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19442
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getLaneGroupTest())) && p() && e('3'); // 步骤1:验证返回结果包含3个泳道组
|
||||
|
||||
@@ -24,11 +24,11 @@ cid=19443
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r(count($tutorialTest->getLibTreeTest())) && p() && e('1');
|
||||
r($tutorialTest->getLibTreeTest()) && p('0:id,name') && e('2,Test Doc Lib');
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19444
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getMarketTest()) && p('id') && e('1'); // 步骤1:验证ID
|
||||
|
||||
@@ -18,11 +18,11 @@ cid=19445
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
r($tutorial->getModulePairsTest()) && p('1') && e('Test module'); // 测试admin用户获取模块键值对
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19446
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getPlanTest()) && p('id') && e('1');
|
||||
r($tutorialTest->getPlanTest()) && p('title') && e('Test plan');
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19447
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getPlanPairsTest()) && p('1') && e('Test plan'); // 测试1:验证键1对应的值
|
||||
r($tutorialTest->getPlanPairsTest()) && p('1') && e('Test plan'); // 测试2:再次验证键1的值
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19448
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r(count($tutorialTest->getPlansTest())) && p() && e(1); // 步骤1:正常调用返回数组长度为1
|
||||
r(array_keys($tutorialTest->getPlansTest())) && p('0') && e('1'); // 步骤2:验证数组键名为1
|
||||
|
||||
@@ -24,11 +24,11 @@ cid=19449
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
r($tutorial->getProductTest()) && p('id,program,PO,createdBy,reviewer') && e('1,0,admin,admin,admin'); // 测试是否能拿到 admin 的数据 id program PO createdBy reviewer
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19450
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
r($tutorial->getProductPairsTest()) && p('1') && e('Test product'); // 步骤1:测试获取产品ID为1的产品名称
|
||||
r(empty($tutorial->getProductPairsTest())) && p() && e('0'); // 步骤2:测试返回数组不为空
|
||||
|
||||
@@ -24,11 +24,11 @@ cid=19451
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
r($tutorial->getProductStatsTest()) && p('1:id,program,PO,createdBy,reviewer') && e('1,0,admin,admin,admin'); // 测试是否能拿到 admin 的数据 id program PO createdBy reviewer
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19452
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getProgramTest()) && p('id') && e('1');
|
||||
r($tutorialTest->getProgramTest()) && p('name') && e('Test program');
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19453
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getProgramPairsTest()) && p('1') && e('Test program');
|
||||
r(count($tutorialTest->getProgramPairsTest())) && p() && e('1');
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19454
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getProgramsTest()) && p('1:name') && e('Test program');
|
||||
r($tutorialTest->getProgramsTest()) && p('1:id') && e('1');
|
||||
|
||||
@@ -25,11 +25,11 @@ cid=19455
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
r($tutorial->getProjectTest()) && p('id,type,PM,PO,QD,RD') && e('2,project,admin,admin,admin,admin'); // 测试是否能拿到 admin 的数据
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19456
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
r($tutorial->getProjectPairsTest()) && p('2') && e('Test Project'); //测试是否能拿到数据
|
||||
r($tutorial->getProjectPairsTest()) && p('3') && e('~~'); //测试是否能拿到数据
|
||||
|
||||
@@ -52,9 +52,9 @@ cid=19457;
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
$browseType = array('', 'all', 'noclosed');
|
||||
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19458
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getRegionPairsTest()) && p('1') && e('默认区域'); // 步骤1:正常情况,验证返回默认区域
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19459
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getReleaseTest()) && p('id') && e('1'); // 步骤1:正常情况,验证ID
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19460
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getReleasesTest())) && p() && e(1); // 步骤1:验证返回数组长度为1
|
||||
|
||||
@@ -22,11 +22,11 @@ cid=19461
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getRepoTest()) && p('id,name') && e('1,Test repo');
|
||||
r($tutorialTest->getRepoTest()) && p('SCM,encoding') && e('Git,utf-8');
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19462
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getRepoPairsTest()) && p('1') && e('[git] Test repo'); // 步骤1:验证返回数组包含预期的键值对
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19463
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getRequirementTest()) && p('isParent') && e('1'); // 步骤1:验证用户需求是否为父级
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19464
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getResearchStageStatsTest())) && p() && e('3'); // 步骤1:获取调研阶段统计数据,期望返回3个元素
|
||||
|
||||
@@ -22,13 +22,13 @@ cid=19465
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getResultTest()) && p('id,case,caseResult,lastRunner,version') && e('1,1,fail,admin,1'); // 步骤1:正常获取结果对象的核心字段
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19466
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r(count($tutorialTest->getResultsTest())) && p() && e('1');
|
||||
r($tutorialTest->getResultsTest()) && p('1:id') && e('1');
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19467
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getReviewTest()) && p('id') && e('1');
|
||||
r($tutorialTest->getReviewTest()) && p('project') && e('2');
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19468
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getReviewsTest())) && p() && e('1'); // 步骤1:正常调用返回数组长度
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19469
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getRiskTest()) && p('id') && e('1'); // 步骤1:验证ID值
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19470
|
||||
|
||||
// 1. 导入依赖
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 执行测试步骤
|
||||
r(count($tutorialTest->getRisksTest())) && p() && e('1'); // 步骤1:获取风险列表,验证数组长度
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19471
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getRunTest()) && p('id') && e('1');
|
||||
r($tutorialTest->getRunTest()) && p('status') && e('normal');
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19472
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 执行测试步骤(至少5个)
|
||||
r($tutorialTest->getStageTest()) && p('id') && e('3'); // 步骤1:验证stage的id属性
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19473
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getStagesTest()) && p('3:id') && e('3'); // 步骤1:验证返回数组包含ID为3的阶段
|
||||
|
||||
@@ -46,11 +46,11 @@ cid=19474
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
r($tutorial->getStoriesTest()) && p('1:id,title,estimate,status,pri,stage,openedBy') && e('1,Test epic,1,active,3,wait,admin'); // 测试获取需求1的信息
|
||||
|
||||
@@ -19,13 +19,13 @@ cid=19475
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getStoryTest()) && p('id') && e('3'); // 步骤1:正常获取研发需求,验证ID
|
||||
|
||||
@@ -32,13 +32,13 @@ cid=19476
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getStoryByIDTest(1)) && p('id,type,title') && e('1,epic,Test epic'); // 步骤1:获取业务需求
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19477
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getStoryGradeTest())) && p() && e('3'); // 步骤1:验证返回数组长度
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19478
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
$result = $tutorialTest->getStoryPairsTest();
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19479
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
$storyPairs = $tutorialTest->getStoryPairsTest();
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19480
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getSubSpacesTest('custom')) && p('1') && e('Test Team Space'); // 步骤1:测试'custom'参数
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19481
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getSystemTest()) && p('id') && e('1');
|
||||
r($tutorialTest->getSystemTest()) && p('name') && e('Test App');
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19482
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getSystemListTest()) && p('1:id') && e('1'); // 步骤1:正常情况-验证返回数组包含ID为1的元素
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19483
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getSystemPairsTest()) && p('1') && e('Test App'); // 测试步骤1:验证键1对应的值
|
||||
r($tutorialTest->getSystemPairsTest()) && p('1') && e('Test App'); // 测试步骤2:再次验证键1的值
|
||||
|
||||
@@ -25,13 +25,13 @@ cid=19484
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getTaskTest()) && p('id,name') && e('1,Test task'); // 步骤1:测试获取默认任务对象的基本属性
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19485
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getTasksTest())) && p() && e('2'); // 步骤1:获取任务列表,验证数组长度
|
||||
|
||||
@@ -23,11 +23,11 @@ cid=19486
|
||||
|
||||
*/
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
r($tutorial->getTeamMembersTest()) && p('admin:project,account,role,realname,userID,days') && e('2,admin,qa,admin,1,10'); // 测试是否能拿到 admin 数据
|
||||
|
||||
@@ -18,11 +18,11 @@ cid=19487
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
r($tutorial->getTeamMembersPairsTest()) && p('admin') && e('admin'); // 测试是否能拿到数据 admin
|
||||
|
||||
@@ -24,13 +24,13 @@ cid=19488
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getTestReportTest()) && p('id,title,project,product,execution') && e('1,Test testreport,2,1,3'); // 步骤1:正常获取测试报告对象的核心字段
|
||||
|
||||
@@ -17,13 +17,13 @@ cid=19489
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 🔴 强制要求:必须包含至少5个测试步骤
|
||||
r(count($tutorialTest->getTestReportsTest())) && p() && e('1'); // 步骤1:验证返回数组包含1个元素
|
||||
|
||||
@@ -25,13 +25,13 @@ cid=19490
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
// 4. 强制要求:必须包含至少5个测试步骤
|
||||
r($tutorialTest->getTesttaskTest()) && p('id,name') && e('1,Test testtask'); // 步骤1:正常获取测试单对象
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19491
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r($tutorialTest->getTesttaskPairsTest()) && p('1') && e('Test testtask'); // 步骤1:正常调用获取测试单键值对
|
||||
r(count($tutorialTest->getTesttaskPairsTest())) && p() && e(1); // 步骤2:验证返回数组长度
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19492
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorialTest = new tutorialTest();
|
||||
$tutorialTest = new tutorialModelTest();
|
||||
|
||||
r(count($tutorialTest->getTesttasksTest())) && p() && e(1); // 步骤1:获取测试单列表数量验证
|
||||
r(array_keys($tutorialTest->getTesttasksTest())) && p('0') && e(1); // 步骤2:验证返回数组的键值
|
||||
|
||||
@@ -17,12 +17,12 @@ cid=19493
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
zenData('config')->loadYaml('config')->gen(16);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
r($tutorial->getTutorialedTest()) && p() && e('3'); // 测试是否能拿到 admin 的数据
|
||||
|
||||
@@ -16,11 +16,11 @@ cid=19494
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
$tutorial = new tutorialModelTest();
|
||||
|
||||
su('admin');
|
||||
r($tutorial->getUserPairsTest()) && p('admin') && e('admin'); // 测试是否能拿到 admin 数据 admin
|
||||
|
||||
Reference in New Issue
Block a user