Merge branch 'autotest_ly' into 'master'

add data of test

See merge request easycorp/zentaopms!2633
This commit is contained in:
朱金勇
2022-03-30 06:43:46 +00:00
4 changed files with 223 additions and 18 deletions
+146
View File
@@ -0,0 +1,146 @@
title: table zt_case
desc: "测试用例"
author: automated export
version: "1.0"
fields:
- field: id
note: "ID"
range: 401-10000
- field: product
note: "产品ID"
range: 0
- field: branch
note: "分支ID"
range: 0
- field: execution
note: "执行ID"
range: 0
- field: lib
note: "所属库"
range: 201
- field: module
note: "所属模块"
range: 0
- field: path
note: ""
range: "0"
- field: story
note: "相关需求"
range: ""
- field: storyVersion
note: "需求版本"
range: "1"
- field: title
note: "用例标题"
range: "1-10000"
prefix: "用例库用例"
- field: precondition
note: "前置条件"
range: "1-10000"
prefix: "这是前置条件"
- field: keywords
note: "关键词"
range: "1-10000"
prefix: "这是关键词"
- field: pri
note: "优先级"
range: 1-4
- field: type
note: "用例类型"
range: feature,performance,config,install,security,interface,other
- field: auto
note: "是否是自动化测试用例"
range: "no"
- field: frame
note: "自动化测试框架"
range: ""
- field: stage
note: "适用阶段"
range: unittest,feature,intergrate,system,smoke,bvt
- field: howRun
note: "测试方式"
range: ""
- field: scriptedBy
note: "脚本由谁创建"
range: ""
- field: scriptedDate
note: "脚本创建日期"
from: common.date.v1.yaml
use: dateB
- field: scriptStatus
note: "脚本状态"
range: ""
- field: scriptLocation
note: "脚本地址"
range: ""
- field: status
note: "用例状态"
range: wait,normal,blocked,investigate
- field: subStatus
note: "子状态"
range: ""
- field: color
note: "标题颜色"
from: common.color.v1.yaml
use: color
- field: frequency
note: "使用频率"
range: 1-3
- field: order
note: "排序"
range: 1-500:5
- field: openedBy
note: "由谁创建"
range: 1-100
prefix: "test"
- field: openedDate
note: "创建日期"
range: "-:600"
type: timestamp
format: "YYYY-MM-DD hh:mm:ss"
- field: reviewedBy
note: "由谁评审"
range: admin
- field: reviewedDate
note: "评审时间"
range: "-:300"
type: timestamp
format: "YYYY-MM-DD hh:mm:ss"
- field: lastEditedBy
note: "最后修改者"
range: admin
- field: lastEditedDate
note: "修改日期"
range: "-:300"
type: timestamp
format: "YYYY-MM-DD hh:mm:ss"
- field: version
note: "用例版本"
range: "1"
- field: linkCase
note: "相关用例"
range: 0
- field: fromBug
note: "来源Bug"
range: 0
- field: fromCaseID
note: ""
range: 0
- field: fromCaseVersion
note: ""
range: 1
- field: deleted
note: "是否删除"
range: 0
- field: lastRunner
note: "执行人"
range: 1-100
prefix: "test"
- field: lastRunDate
note: "执行时间"
range: "-:500"
type: timestamp
format: "YYYY-MM-DD hh:mm:ss"
- field: lastRunResult
note: "结果"
range: ""
+44
View File
@@ -0,0 +1,44 @@
title: table zt_storyestimate
desc: "需求描述"
author: automated export
version: "1.0"
fields:
- field: story
note: "需求ID"
range: 2-1000:2
prefix: ""
postfix: ""
loop: 0
format: ""
- field: round
note: "轮次"
range: 1
prefix: ""
postfix: ""
loop: 0
format: ""
- field: estimate
note: "估计"
range: 92-100
prefix: "user"
postfix: ""
loop: 0
format: ""
- field: average
note: "平均值"
range: 1.5
prefix: ""
postfix: ""
loop: 0
format: ""
- field: openedBy
note: "验收标准"
range: admin
prefix: ""
postfix: ""
loop: 0
format: ""
- field: openedDate
range: "(M)-(w)"
type: timestamp
format: "YYYY-MM-DD"
+20 -18
View File
@@ -17,24 +17,26 @@ $builder->project = array('rows' => 90, 'extends' => array('project', 'proj
$builder->projectalone = array('rows' => 20, 'extends' => array('project', 'projectalone'));
$builder->sprint = array('rows' => 600, 'extends' => array('project', 'execution'));
$builder->story = array('rows' => 400, 'extends' => array('story'));
$builder->childstory = array('rows' => 50, 'extends' => array('story','childstory'));
$builder->storyreview = array('rows' => 100, 'extends' => array('storyreview'));
$builder->storymodule = array('rows' => 800, 'extends' => array('module','storymodule'));
$builder->storyplan = array('rows' => 400, 'extends' => array('planstory'));
$builder->storystage = array('rows' => 450, 'extends' => array('storystage'));
$builder->storyspec = array('rows' => 570, 'extends' => array('storyspec'));
$builder->relation = array('rows' => 12, 'extends' => array('relation'));
$builder->task = array('rows' => 600, 'extends' => array('task','task'));
$builder->taskmore = array('rows' => 300, 'extends' => array('task','moretask'));
$builder->taskspec = array('rows' => 600, 'extends' => array('taskspec'));
$builder->taskmodule = array('rows' => 1800, 'extends' => array('module','taskmodule'));
$builder->taskestimate = array('rows' => 600, 'extends' => array('taskestimate'));
$builder->taskson = array('rows' => 10, 'extends' => array('task', 'taskson'));
$builder->case = array('rows' => 400, 'extends' => array('case'));
$builder->casestep = array('rows' => 400, 'extends' => array('casestep'));
$builder->bug = array('rows' => 300, 'extends' => array('bug'));
$builder->morebug = array('rows' => 15, 'extends' => array('bug','morebug'));
$builder->story = array('rows' => 400, 'extends' => array('story'));
$builder->childstory = array('rows' => 50, 'extends' => array('story','childstory'));
$builder->storyreview = array('rows' => 100, 'extends' => array('storyreview'));
$builder->storymodule = array('rows' => 800, 'extends' => array('module','storymodule'));
$builder->storyplan = array('rows' => 400, 'extends' => array('planstory'));
$builder->storystage = array('rows' => 450, 'extends' => array('storystage'));
$builder->storyspec = array('rows' => 570, 'extends' => array('storyspec'));
$builder->storyestimate = array('rows' => 6, 'extends' => array('storyestimate'));
$builder->relation = array('rows' => 12, 'extends' => array('relation'));
$builder->task = array('rows' => 600, 'extends' => array('task','task'));
$builder->taskmore = array('rows' => 300, 'extends' => array('task','moretask'));
$builder->taskspec = array('rows' => 600, 'extends' => array('taskspec'));
$builder->taskmodule = array('rows' => 1800, 'extends' => array('module','taskmodule'));
$builder->taskestimate = array('rows' => 600, 'extends' => array('taskestimate'));
$builder->taskson = array('rows' => 10, 'extends' => array('task', 'taskson'));
$builder->case = array('rows' => 400, 'extends' => array('case'));
$builder->libcase = array('rows' => 10, 'extends' => array('case','libcase'));
$builder->casestep = array('rows' => 400, 'extends' => array('casestep'));
$builder->bug = array('rows' => 300, 'extends' => array('bug'));
$builder->morebug = array('rows' => 15, 'extends' => array('bug','morebug'));
$builder->testtask = array('rows' => 10, 'extends' => array('testtask'));
$builder->testresult = array('rows' => 40, 'extends' => array('testresult'));
+13
View File
@@ -161,6 +161,13 @@ class Processor
$this->dao->update(TABLE_STORY)->set('`status`')->eq('draft')->where('id')->ge('300')->andwhere('id')->le('400')->exec();
$this->dao->update(TABLE_STORY)->set('`closedBy`')->eq('')->set('`closedReason`')->eq('')->where('status')->ne('closed')->exec();
$this->dao->update(TABLE_STORY)->set('`plan`')->eq('0')->where('id')->gt('300')->andwhere('id')->lt('321')->exec();
$accounts = array('user92' => 'po82', 'user93' => 'po83', 'user94' => 'po84', 'user95' => 'po85', 'user96' => 'po86', 'user97' => 'po82');
foreach($accounts as $key => $value)
{
$this->dao->update(TABLE_STORYESTIMATE)->set('`estimate`')->eq("{\"$value\":{\"account\":\"$value\",\"estimate\":1},\"$key\":{\"account\":\"$key\",\"estimate\":2}")->where('estimate')->eq($key)->exec();
}
}
/**
@@ -404,5 +411,11 @@ class Processor
$this->dao->update(TABLE_KANBANCELL)->data($value)->where('id')->eq($id)->exec();
}
$this->dao->query("update zt_kanbancell set `cards` = '' where id > 400");
$this->dao->query("update zt_kanbancell set `cards` = ',244,' where id = 401");
$this->dao->query("update zt_kanbancell set `cards` = ',181,182,183,' where id = 412");
$this->dao->query("update zt_kanbancell set `cards` = ',61,' where id = 421");
$this->dao->query("update zt_kanbancell set `cards` = ',246,' where id = 428");
$this->dao->query("update zt_kanbancell set `cards` = ',184,185,186,' where id = 439");
$this->dao->query("update zt_kanbancell set `cards` = ',62,' where id = 448");
}
}