* Update unit test with fixed yaml.

This commit is contained in:
qixinzhi
2023-07-18 05:44:47 +00:00
parent 4f8777b86e
commit 16ff700585
44 changed files with 368 additions and 182 deletions
@@ -3,9 +3,9 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(100);
zdTable('bug')->config('bug', $useCommon = true, $levels = 4)->gen(1000);
zdTable('story')->config('story', $useCommon = true, $levels = 4)->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('bug')->config('bug_resolution_status', $useCommon = true, $levels = 4)->gen(2000);
zdTable('story')->config('story_stage_closedreason', $useCommon = true, $levels = 4)->gen(2000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -18,7 +18,8 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('50'); // 测试激活bug按产品分组数。
r($calc->getResult(array('product' => '78'))) && p('0:value') && e('2.5'); // 测试产品78激活的bug数。
r($calc->getResult(array('product' => '84'))) && p('0:value') && e('0'); // 测试删除产品84激活的bug数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品激活的bug数。
r(count($calc->getResult())) && p('') && e('5'); // 测试激活bug按产品分组数。
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('1.2'); // 测试产品3激活的bug数。
r($calc->getResult(array('product' => '5'))) && p('0:value') && e('1.4769'); // 测试产品5激活的bug数。
r($calc->getResult(array('product' => '4'))) && p('') && e('0'); // 测试已删除产品4激活的bug数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品激活的bug数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(100);
zdTable('bug')->config('bug', $useCommon = true, $levels = 4)->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('bug')->config('bug_resolution_status', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('50'); // 测试激活bug按产品分组数。
r($calc->getResult(array('product' => '81'))) && p('0:value') && e('6'); // 测试产品78激活的bug数。
r($calc->getResult(array('product' => '84'))) && p('0:value') && e('0'); // 测试删除产品84激活的bug数。
r(count($calc->getResult())) && p('') && e('5'); // 测试激活bug按产品分组数。
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('24'); // 测试产品1激活的bug数。
r($calc->getResult(array('product' => '5'))) && p('0:value') && e('16'); // 测试产品5激活的bug数。
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4激活的bug数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品激活的bug数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('feedback')->config('feedback_close')->gen(5000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('feedback')->config('feedback', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,10 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('371'); // 测试按产品的年度关闭反馈分组数。
r($calc->getResult(array('product' => '78', 'year' => '2021'))) && p('0:value') && e('20'); // 测试2021年产品78关闭的反馈数。
r($calc->getResult(array('product' => '84', 'year' => '2022'))) && p('') && e('0'); // 测试2022年产品84关闭的反馈数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品的反馈数。
r(count($calc->getResult())) && p('') && e('50'); // 测试按产品的年度关闭反馈分组数。
r($calc->getResult(array('product' => '5', 'year' => '2019'))) && p('0:value') && e('4'); // 测试2019年产品5关闭的反馈数。
r($calc->getResult(array('product' => '5', 'year' => '2020'))) && p('0:value') && e('3'); // 测试2020年产品5关闭的反馈数。
r($calc->getResult(array('product' => '5', 'year' => '2005'))) && p('') && e('0'); // 测试2005年产品5关闭的反馈数。
r($calc->getResult(array('product' => '4', 'year' => '2020'))) && p('') && e('0'); // 测试已删除产品4关闭的反馈数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品的反馈数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('story')->config('story_create')->gen(100);
zdTable('product')->gen(100);
zdTable('story')->config('story_status', $useCommon = true, $levels = 4)->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ cid=1
*/
r(count($calc->getResult())) && p('') && e('10'); // 测试分组数。
r($calc->getResult(array('product' => '1', 'year' => '2018'))) && p('0:value') && e('2'); // 测试2018年产品1关闭的研发需求数。
r($calc->getResult(array('product' => '9', 'year' => '2018'))) && p('0:value') && e('2'); // 测试2018年产品9关闭的研发需求数。
r(count($calc->getResult())) && p('') && e('47'); // 测试分组数。
r($calc->getResult(array('product' => '1', 'year' => '2012'))) && p('0:value') && e('2'); // 测试2012年产品1关闭的研发需求数。
r($calc->getResult(array('product' => '1', 'year' => '2019'))) && p('0:value') && e('1'); // 测试2019年产品1关闭的研发需求数。
r($calc->getResult(array('product' => '2', 'year' => '2019'))) && p('0:value') && e('0'); // 测试已删除产品2研发需求数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('feedback')->config('feedback_create')->gen(5000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('feedback')->config('feedback', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('507'); // 测试按产品的年度新增反馈分组数。
r($calc->getResult(array('product' => '78', 'year' => '2021'))) && p('0:value') && e('10'); // 测试2021年产品78新增的反馈数。
r($calc->getResult(array('product' => '84', 'year' => '2022'))) && p('') && e('0'); // 测试2022年产品84新增的反馈数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品的反馈数。
r(count($calc->getResult())) && p('') && e('55'); // 测试按产品的年度新增反馈分组数。
r($calc->getResult(array('product' => '9', 'year' => '2015'))) && p('0:value') && e('5'); // 测试2015年产品9新增的反馈数。
r($calc->getResult(array('product' => '9', 'year' => '2016'))) && p('0:value') && e('3'); // 测试2016年产品9新增的反馈数。
r($calc->getResult(array('product' => '8', 'year' => '2022'))) && p('') && e('0'); // 测试已删除产品8新增的反馈数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品的反馈数。
@@ -3,9 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('productplan')->gen(1000);
zdTable('product')->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('productplan')->config('productplan', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +16,9 @@ timeout=0
cid=1
*/
r(count($calc->getResult())) && p('') && e('30'); // 测试计划按产品分组数。
r($calc->getresult(array('product' => '1', 'year' => '2023'))) && p('0:value') && e('45'); // 测试产品1,2023年创建的的计划数。
r($calc->getresult(array('product' => '7', 'year' => '2023'))) && p('0:value') && e('43'); // 测试产品7,2023年创建的的计划数。
r(count($calc->getResult())) && p('') && e('55'); // 测试计划按产品分组数。
r($calc->getresult(array('product' => '1', 'year' => '2010'))) && p('0:value') && e('5'); // 测试产品1,2010年创建的的计划数。
r($calc->getresult(array('product' => '7', 'year' => '2016'))) && p('0:value') && e('4'); // 测试产品7,2016年创建的的计划数。
r($calc->getresult(array('product' => '6', 'year' => '2016'))) && p('0:value') && e('0'); // 测试已删除产品666666,2016年创建的的计划数。
r($calc->getresult(array('product' => '100', 'year' => '2023'))) && p('') && e('0'); // 测试不存在的产品的计划数。
@@ -3,7 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('release')->config('release_create')->gen(100);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('release')->config('release', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -16,7 +17,8 @@ cid=1
*/
r(count($calc->getResult())) && p('') && e('10'); // 测试分组数。
r($calc->getResult(array('product' => '1', 'year' => '2018'))) && p('0:value') && e('10'); // 测试产品1的发布数。
r($calc->getResult(array('product' => '10', 'year' => '2018'))) && p('0:value') && e('10'); // 测试产品10的发布数。
r(count($calc->getResult())) && p('') && e('55'); // 测试分组数。
r($calc->getResult(array('product' => '3', 'year' => '2020'))) && p('0:value') && e('2'); // 测试产品3,2020年的发布数。
r($calc->getResult(array('product' => '5', 'year' => '2020'))) && p('0:value') && e('4'); // 测试产品5,2020年的发布数。
r($calc->getResult(array('product' => '4', 'year' => '2020'))) && p('0:value') && e('0'); // 测试已删除产品4的发布数。
r($calc->getResult(array('product' => '999', 'year' => '2018'))) && p('') && e('0'); // 测试不存在的产品的发布数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('story')->config('story_create')->gen(5000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('story')->config('story_type', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('507'); // 测试按产品的年度新增用户需求分组数。
r($calc->getResult(array('product' => '78', 'year' => '2021'))) && p('0:value') && e('10'); // 测试2021年产品78新增的用户需求数。
r($calc->getResult(array('product' => '84', 'year' => '2022'))) && p('0:value') && e('0'); // 测试2022年产品84新增的用户需求数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品的用户需求数。
r(count($calc->getResult())) && p('') && e('8'); // 测试按产品的年度新增用户需求分组数。
r($calc->getResult(array('product' => '7', 'year' => '2017'))) && p('0:value') && e('6'); // 测试2017年产品7新增的用户需求数。
r($calc->getResult(array('product' => '9', 'year' => '2018'))) && p('0:value') && e('20'); // 测试2018年产品9新增的用户需求数。
r($calc->getResult(array('product' => '8', 'year' => '2018'))) && p('0:value') && e('0'); // 测试已删除产品8新增的用户需求数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品的用户需求数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('story')->gen(100);
zdTable('product')->gen(100);
zdTable('story')->config('story_type', $useCommon = true, $levels = 4)->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ cid=1
*/
r(count($calc->getResult())) && p('') && e('25'); // 测试分组数.
r($calc->getResult(array('product' => '1,2,3', 'year' => '2022,2023'))) && p('0:value;1:value;2:value') && e('4,4,4'); // 测试2023年产品1,2,3创建的需求数。
r($calc->getResult(array('product' => '4,5,6', 'year' => '2022,2023'))) && p('0:value;1:value;2:value') && e('4,4,4'); // 测试2023年产品4,5,6创建的需求数。
r($calc->getResult(array('product' => '1,2,3', 'year' => '2022'))) && p('') && e('0'); // 测试不存在的年份创建的需求数。
r(count($calc->getResult())) && p('') && e('7'); // 测试分组数.
r($calc->getResult(array('product' => '7', 'year' => '2016'))) && p('0:value') && e('14'); // 测试2016年产品7创建的需求数。
r($calc->getResult(array('product' => '7', 'year' => '2017'))) && p('0:value') && e('6'); // 测试2017年产品7创建的需求数。
r($calc->getResult(array('product' => '8', 'year' => '2017'))) && p('0:value') && e('0'); // 测试已删除产品8创建的需求数。
r($calc->getResult(array('product' => '9', 'year' => '2024'))) && p('') && e('0'); // 测试不存在的年份创建的需求数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('story')->config('story_create')->gen(100);
zdTable('product')->gen(100);
zdTable('story')->config('story_status_closedreason', $useCommon = true, $levels = 4)->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ cid=1
*/
r(count($calc->getResult())) && p('') && e('10'); // 测试分组数。
r($calc->getResult(array('product' => '1', 'year' => '2018'))) && p('0:value') && e('2'); // 测试2018年产品1关闭的研发需求数。
r($calc->getResult(array('product' => '9', 'year' => '2018'))) && p('0:value') && e('2'); // 测试2018年产品9关闭的研发需求数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品。
r(count($calc->getResult())) && p('') && e('7'); // 测试分组数。
r($calc->getResult(array('product' => '3', 'year' => '2015'))) && p('0:value') && e('1'); // 测试2015年产品3关闭的研发需求数。
r($calc->getResult(array('product' => '5', 'year' => '2019'))) && p('0:value') && e('1'); // 测试2019年产品5关闭的研发需求数。
r($calc->getResult(array('product' => '4', 'year' => '2019'))) && p('0:value') && e('0'); // 测试已删除产品4关闭的研发需求数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('bug')->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('bug')->config('bug', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('92'); // 测试bug按产品分组数。
r($calc->getResult(array('product' => '78'))) && p('0:value') && e('9'); // 测试产品78的bug数。
r($calc->getResult(array('product' => '84'))) && p('0:value') && e('6'); // 测试产品84的bug数。
r(count($calc->getResult())) && p('') && e('5'); // 测试bug按产品分组数。
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('50'); // 测试产品78的bug数。
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('50'); // 测试产品84的bug数。
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试产品84的bug数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的bug数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('story')->gen(100);
zdTable('product')->gen(100);
zdTable('story')->config('story_stage_closedreason', $useCommon = true, $levels = 4)->gen(2000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ cid=1
*/
r(count($calc->getResult())) && p('') && e('5'); // 测试分组数。
r($calc->getResult(array('product' => '5'))) && p('0:value') && e('1'); // 测试产品5的需求数。
r($calc->getResult(array('product' => '25'))) && p('0:value') && e('1'); // 测试产品25的需求数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的需求数。
r(count($calc->getResult())) && p('') && e('5'); // 测试分组数。
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('14'); // 测试产品1的需求数。
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('14'); // 测试产品3的需求数。
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4的需求数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的需求数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('story')->gen(100);
zdTable('product')->gen(100);
zdTable('story')->config('story_stage_closedreason', $useCommon = true, $levels = 4)->gen(2000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -16,7 +16,9 @@ timeout=0
cid=1
*/
r(count($calc->getResult())) && p('')&& e('17'); // 测试分组数
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('1'); // 测试产品1交付需求数
r($calc->getResult(array('product' => '25'))) && p('0:value') && e('2'); // 测试产品25交付需求数
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在产品交付需求数
r(count($calc->getResult())) && p('') && e('5'); // 测试分组数
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('32'); // 测试产品3交付需求数
r($calc->getResult(array('product' => '5'))) && p('0:value') && e('29'); // 测试产品5交付需求数
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4交付需求数
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在产品交付需求数
@@ -3,21 +3,22 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('story')->gen(1000);
zdTable('product')->gen(1000);
zdTable('story')->config('story_stage_closedreason', $useCommon = true, $levels = 4)->gen(2000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
/**
title=count_of_developed_story_in_product.php
title=count_of_developed_story_in_product
timeout=0
cid=1
*/
r(count($calc->getResult())) && p('') && e('86'); // 测试分组数
r($calc->getResult(array('product' => '1,2,3'))) && p('0:value;1:value') && e('1,1'); // 测试产品1,2,3已开发的需求数
r($calc->getResult(array('product' => '11,12,13'))) && p('0:value;1:value;2:value') && e('1,1,1'); // 测试产品11,12,13已开发的需求数
r($calc->getResult(array('product' => '9999'))) && p('') && e('0'); // 测试不存在的产品下的需求数
r(count($calc->getResult())) && p('') && e('5'); // 测试分组数
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('1'); // 测试产品1已开发的需求数
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('1'); // 测试产品3已开发的需求数
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4已开发的需求数
r($calc->getResult(array('product' => '9999'))) && p('') && e('0'); // 测试不存在的产品下的需求数
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('bug')->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('bug')->config('bug_resolution_status', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('92'); // 测试有效bug按产品分组数。
r($calc->getResult(array('product' => '90'))) && p('0:value') && e('9'); // 测试产品90有效的bug数。
r($calc->getResult(array('product' => '94'))) && p('0:value') && e('6'); // 测试产品94有效的bug数。
r(count($calc->getResult())) && p('') && e('5'); // 测试有效bug按产品分组数。
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('36'); // 测试产品1有效的bug数。
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('24'); // 测试产品3有效的bug数。
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4有效的bug数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品有效的bug数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('feedback')->gen(1000);
zdTable('product')->gen(200);
zdTable('feedback')->config('feedback', $useCommon = true, $levels = 4)->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('100'); // 测试反馈按产品分组数。
r($calc->getResult(array('product' => '78'))) && p('0:value') && e('8'); // 测试产品78的反馈数。
r($calc->getResult(array('product' => '84'))) && p('0:value') && e('8'); // 测试产品84的反馈数。
r(count($calc->getResult())) && p('') && e('5'); // 测试反馈按产品分组数。
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('50'); // 测试产品1的反馈数。
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('50'); // 测试产品3的反馈数。
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4的反馈数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的反馈数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('story')->config('story_finished')->gen(100);
zdTable('product')->gen(10);
zdTable('story')->config('story_stage_closedreason', $useCommon = true, $levels = 4)->gen(2000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,7 @@ cid=1
*/
r(count($calc->getResult())) && p('') && e('2'); // 测试分组数。
r($calc->getResult(array('product' => '5'))) && p('0:value') && e('5'); // 测试产品5的需求数。
r($calc->getResult(array('product' => '6'))) && p('0:value') && e('25'); // 测试产品6的需求数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的需求数。
r(count($calc->getResult())) && p('') && e('5'); // 测试分组数。
r($calc->getResult(array('product' => '5'))) && p('0:value') && e('2'); // 测试产品5的需求数。
r($calc->getResult(array('product' => '6'))) && p('0:value') && e('0'); // 测试已删除产品6的需求数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的需求数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('story')->gen(100);
zdTable('product')->gen(100);
zdTable('story')->config('story_status_closedreason', $useCommon = true, $levels = 4)->gen(2000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,6 +17,8 @@ cid=1
*/
r(count($calc->getResult())) && p('') && e('21'); // 测试分组数
r($calc->getResult(array('product' => '2,3,4'))) && p('0:value;1:value;2:value') && e('1;2;1'); // 测试产品1无效需求数
r($calc->getResult(array('product' => '999,1000'))) && p('') && e('0'); // 测试不存在产品的无效需求数
r(count($calc->getResult())) && p('') && e('5'); // 测试分组数
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('60'); // 测试产品1无效需求数
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('60'); // 测试产品3无效需求数
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4无效需求数
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在产品的无效需求数
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('story')->config('story_close')->gen(5000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('story')->config('story_status', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -16,8 +16,11 @@ cid=1
pid=1
*/
r(count($calc->getResult())) && p('') && e('651'); // 测试按产品的月度关闭需求分组数。
r(count($calc->getResult())) && p('') && e('116'); // 测试按产品的月度关闭需求分组数。
r($calc->getResult(array('product' => '16', 'year' => '2019', 'month' => '06'))) && p('0:value') && e('10'); // 测试2019年6月产品16关闭的需求数。
r($calc->getResult(array('product' => '78', 'year' => '2020', 'month' => '08'))) && p('0:value') && e('10'); // 测试2020年8月产品78关闭的需求数。
r($calc->getResult(array('product' => '999', 'year' => '2021', 'month' => '04'))) && p('') && e('0'); // 测试不存在的产品的需求数。
r($calc->getResult(array('product' => '7', 'year' => '2017', 'month' => '04'))) && p('0:value') && e('3'); // 测试2017年4月产品7关闭的需求数。
r($calc->getResult(array('product' => '7', 'year' => '2017', 'month' => '05'))) && p('0:value') && e('1'); // 测试2017年5月产品7关闭的需求数。
r($calc->getResult(array('product' => '9', 'year' => '2013', 'month' => '03'))) && p('0:value') && e('3'); // 测试2013年3月产品9关闭的需求数。
r($calc->getResult(array('product' => '9', 'year' => '2013', 'month' => '04'))) && p('0:value') && e('2'); // 测试2013年4月产品9关闭的需求数。
r($calc->getResult(array('product' => '8', 'year' => '2013', 'month' => '04'))) && p('0:value') && e('0'); // 测试已删除产品8关闭的需求数。
r($calc->getResult(array('product' => '999', 'year' => '2021', 'month' => '04'))) && p('') && e('0'); // 测试不存在的产品的需求数。
@@ -3,21 +3,24 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('story')->config('story_close')->gen(5000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('story')->config('story_status', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
/**
title=count_of_monthly_opened_story_in_product
title=count_of_monthly_created_story_in_product
cid=1
pid=1
*/
r(count($calc->getResult())) && p('') && e('651'); // 测试按产品的月度新增需求分组数。
r(count($calc->getResult())) && p('') && e('67'); // 测试按产品的月度关闭需求分组数。
r($calc->getResult(array('product' => '16', 'year' => '2019', 'month' => '06'))) && p('0:value') && e('10'); // 测试2019年6月产品16新增的需求数。
r($calc->getResult(array('product' => '78', 'year' => '2020', 'month' => '08'))) && p('0:value') && e('10'); // 测试2020年8月产品78新增的需求数。
r($calc->getResult(array('product' => '999', 'year' => '2021', 'month' => '04'))) && p('') && e('0'); // 测试不存在的产品的需求数。
r($calc->getResult(array('product' => '7', 'year' => '2019', 'month' => '10'))) && p('0:value') && e('2'); // 测试2017年4月产品7关闭的需求数。
r($calc->getResult(array('product' => '7', 'year' => '2019', 'month' => '12'))) && p('0:value') && e('2'); // 测试2017年5月产品7关闭的需求数。
r($calc->getResult(array('product' => '9', 'year' => '2012', 'month' => '03'))) && p('0:value') && e('9'); // 测试2013年3月产品9关闭的需求数。
r($calc->getResult(array('product' => '9', 'year' => '2012', 'month' => '04'))) && p('0:value') && e('2'); // 测试2013年4月产品9关闭的需求数。
r($calc->getResult(array('product' => '8', 'year' => '2013', 'month' => '04'))) && p('0:value') && e('0'); // 测试已删除产品8关闭的需求数。
r($calc->getResult(array('product' => '999', 'year' => '2021', 'month' => '04'))) && p('') && e('0'); // 测试不存在的产品的需求数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('productplan')->gen(55);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('productplan')->config('productplan', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('23'); // 测试产品计划按产品分组数。
r($calc->getResult(array('product' => '42'))) && p('0:value') && e('2'); // 测试产品42下计划数。
r($calc->getResult(array('product' => '53'))) && p('0:value') && e('1'); // 测试产品53下计划数。
r($calc->getResult(array('product' => '1111'))) && p('') && e('0'); // 测试不存在的产品下计划数。
r(count($calc->getResult())) && p('') && e('5'); // 测试产品计划按产品分组数。
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('50'); // 测试产品1下计划数。
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('50'); // 测试产品3下计划数。
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4下计划数。
r($calc->getResult(array('product' => '1111'))) && p('') && e('0'); // 测试不存在的产品下计划数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('release')->gen(20);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('release')->config('release', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -16,7 +16,8 @@ timeout=0
cid=1
*/
r(count($calc->getResult())) && p('') && e('4'); // 测试分组数
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('10'); // 测试产品1的发布数。
r($calc->getResult(array('product' => '41'))) && p('0:value') && e('4'); // 测试产品41的发布数。
r(count($calc->getResult())) && p('') && e('5'); // 测试分组数
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('50'); // 测试产品1的发布数。
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('50'); // 测试产品3的发布数。
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4的发布数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的发布数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('story')->config('story_create')->gen(5000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('story')->config('story_type', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('100'); // 测试按产品统计的用户需求分组数。
r($calc->getResult(array('product' => '78'))) && p('0:value') && e('24'); // 测试产品78的用户需求数。
r($calc->getResult(array('product' => '84'))) && p('0:value') && e('24'); // 测试产品84的用户需求数。
r(count($calc->getResult())) && p('') && e('5'); // 测试按产品统计的用户需求分组数。
r($calc->getResult(array('product' => '5'))) && p('0:value') && e('30'); // 测试产品5的用户需求数。
r($calc->getResult(array('product' => '7'))) && p('0:value') && e('20'); // 测试产品7的用户需求数。
r($calc->getResult(array('product' => '8'))) && p('0:value') && e('0'); // 测试已删除产品8的用户需求数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的用户需求数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('bug')->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('bug')->config('bug_resolution_status', $useCommon = true, $levels = 4)->gen(1000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ pid=1
*/
r(count($calc->getResult())) && p('') && e('92'); // 测试已修复bug按产品分组数。
r($calc->getResult(array('product' => '95'))) && p('0:value') && e('9'); // 测试产品95已修复的bug数。
r($calc->getResult(array('product' => '97'))) && p('0:value') && e('6'); // 测试产品97已修复的bug数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品已修复的bug数。
r(count($calc->getResult())) && p('') && e('5'); // 测试已修复bug按产品分组数。
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('3'); // 测试产品1已修复的bug数。
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('2'); // 测试产品3已修复的bug数。
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4已修复的bug数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品已修复的bug数。
@@ -18,5 +18,6 @@ cid=1
*/
r(count($calc->getResult())) && p('') && e('25'); // 测试分组数
r($calc->getResult(array('product' => '2,3,4'))) && p('0:value;1:value;2:value') && e('2;2;2'); // 测试产品1需求数
r($calc->getResult(array('product' => '999,1000'))) && p('') && e('0'); // 测试不存在产品的需求数
r($calc->getResult(array('product' => '999,1000'))) && p('') && e('0'); // 测试不存在产品的需求数
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('story')->gen(100);
zdTable('product')->gen(100);
zdTable('story')->config('story_stage_closedreason', $useCommon = true, $levels = 4)->gen(2000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -17,7 +17,8 @@ cid=1
*/
r(count($calc->getResult())) && p('') && e('25'); // 测试分组数。
r($calc->getResult(array('product' => '5'))) && p('0:value') && e('1'); // 测试产品5的需求数。
r($calc->getResult(array('product' => '25'))) && p('0:value') && e('1'); // 测试产品25的需求数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的需求数。
r(count($calc->getResult())) && p('') && e('5'); // 测试分组数。
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('126'); // 测试产品1的需求数。
r($calc->getResult(array('product' => '5'))) && p('0:value') && e('99'); // 测试产品5的需求数。
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4的需求数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的需求数。
@@ -18,5 +18,6 @@ cid=1
*/
r(count($calc->getResult())) && p('') && e('18'); // 测试分组数
r($calc->getResult(array('product' => '2,4,5'))) && p('0:value;1:value') && e('1;1'); // 测试产品1有效需求数
r($calc->getResult(array('product' => '999,1000'))) && p('') && e('0'); // 测试不存在产品的有效需求数
r($calc->getResult(array('product' => '999,1000'))) && p('') && e('0'); // 测试不存在产品的有效需求数
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('story')->config('story_close')->gen(5000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('story')->config('story_stage_closedreason', $useCommon = true, $levels = 4)->gen(3000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -16,8 +16,11 @@ cid=1
pid=1
*/
r(count($calc->getResult())) && p('') && e('371'); // 测试按产品的年度关闭需求分组数。
r(count($calc->getResult())) && p('') && e('25'); // 测试按产品的年度关闭需求分组数。
r($calc->getResult(array('product' => '16', 'year' => '2019'))) && p('0:value') && e('110'); // 测试2019年产品16关闭的需求规模数。
r($calc->getResult(array('product' => '78', 'year' => '2020'))) && p('0:value') && e('55'); // 测试2020年产品78关闭的需求规模数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品的需求规模数。
r($calc->getResult(array('product' => '7', 'year' => '2012'))) && p('0:value') && e('180'); // 测试2012年产品7关闭的需求规模数。
r($calc->getResult(array('product' => '7', 'year' => '2015'))) && p('0:value') && e('208'); // 测试2015年产品7关闭的需求规模数。
r($calc->getResult(array('product' => '9', 'year' => '2011'))) && p('0:value') && e('276'); // 测试2011年产品9关闭的需求规模数。
r($calc->getResult(array('product' => '9', 'year' => '2012'))) && p('0:value') && e('216'); // 测试2012年产品9关闭的需求规模数。
r($calc->getResult(array('product' => '8', 'year' => '2012'))) && p('0:value') && e('0'); // 测试已删除产品关闭的需求规模数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品的需求规模数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->gen(200);
zdTable('story')->config('story_close')->gen(5000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('story')->config('story_stage_closedreason', $useCommon = true, $levels = 4)->gen(2000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -16,8 +16,11 @@ cid=1
pid=1
*/
r(count($calc->getResult())) && p('') && e('371'); // 测试按产品的年度完成需求分组数。
r(count($calc->getResult())) && p('') && e('20'); // 测试按产品的年度完成需求分组数。
r($calc->getResult(array('product' => '16', 'year' => '2019'))) && p('0:value') && e('18'); // 测试2019年产品16关闭的需求规模数。
r($calc->getResult(array('product' => '78', 'year' => '2020'))) && p('0:value') && e('9'); // 测试2020年产品78关闭的需求规模数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品的需求规模数。
r($calc->getResult(array('product' => '3', 'year' => '2016'))) && p('0:value') && e('0'); // 测试2016年产品3关闭的需求规模数。
r($calc->getResult(array('product' => '3', 'year' => '2017'))) && p('0:value') && e('10'); // 测试2017年产品3关闭的需求规模数。
r($calc->getResult(array('product' => '5', 'year' => '2016'))) && p('0:value') && e('54'); // 测试2016年产品5关闭的需求规模数。
r($calc->getResult(array('product' => '5', 'year' => '2017'))) && p('0:value') && e('36'); // 测试2017年产品5关闭的需求规模数。
r($calc->getResult(array('product' => '4', 'year' => '2017'))) && p('0:value') && e('0'); // 测试已删除产品4关闭的需求规模数。
r($calc->getResult(array('product' => '999', 'year' => '2021'))) && p('') && e('0'); // 测试不存在的产品的需求规模数。
@@ -3,8 +3,8 @@
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/calc.class.php';
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(100);
zdTable('story')->config('story', $useCommon = true, $levels = 4)->gen(1000);
zdTable('product')->config('product', $useCommon = true, $levels = 4)->gen(10);
zdTable('story')->config('story_stage_closedreason', $useCommon = true, $levels = 4)->gen(2000);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
@@ -16,8 +16,9 @@ cid=1
pid=1
*/
r(count($calc->getResult())) && p('') && e('50'); // 测试按产品的需求分组数。
r(count($calc->getResult())) && p('') && e('5'); // 测试按产品的需求分组数。
r($calc->getResult(array('product' => '16'))) && p('0:value') && e('0'); // 测试删除产品16的需求规模数。
r($calc->getResult(array('product' => '78'))) && p('0:value') && e('32'); // 测试产品78的需求规模数。
r($calc->getResult(array('product' => '1'))) && p('0:value') && e('560'); // 测试产品1的需求规模数。
r($calc->getResult(array('product' => '3'))) && p('0:value') && e('680'); // 测试产品3的需求规模数。
r($calc->getResult(array('product' => '4'))) && p('0:value') && e('0'); // 测试已删除产品4的需求规模数。
r($calc->getResult(array('product' => '999'))) && p('') && e('0'); // 测试不存在的产品的需求规模数。
+3 -5
View File
@@ -5,11 +5,9 @@ version: "1.0"
fields:
- field: id
range: 1-10000
- field: status
range: active{4},resolved{4},closed{4}
- field: resolution
range: bydesign{4},duplicate{4},external{4},fixed{4},notrepro{4},postponed{4},tostory{4},willnotfixi{4}
- field: product
range: 1-10{2}
- field: deleted
range: 0{2},1{2}
range: 0{1},1{1}
...
@@ -0,0 +1,24 @@
---
title: zt_bug
author: qixinzhi
version: "1.0"
fields:
- field: id
range: 1-10000
- field: product
range: 1-10{48}
- field: openedDate
range: "20100101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: resolvedDate
range: "20110101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: status
range: active{1},resolved{1},closed{1}
- field: resolution
range: bydesign{3},duplicate{3},external{3},fixed{3},notrepro{3},postponed{3},tostory{3},willnotfixi{3}
- field: deleted
range: 0{24},1{24}
...
+4 -4
View File
@@ -6,15 +6,15 @@ fields:
- field: id
range: 1-10000
- field: product
range: 1-100{10}
range: 1-10{2}
- field: openedDate
range: "20100101 000000-20210101 230000:2D"
range: "20100101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: closedDate
range: "20110101 000000-20210101 230000:3D"
range: "20110101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: deleted
range: 0{2},1{2}
range: 0{1},1{1}
...
+2 -2
View File
@@ -4,8 +4,8 @@ author: qixinzhi
version: "1.0"
fields:
- field: id
range: 1-100
range: 1-10
- field: deleted
range: 0{2},1{2}
range: 0{1},1{1}
...
+16
View File
@@ -0,0 +1,16 @@
---
title: zt_story
author: qixinzhi
version: "1.0"
fields:
- field: id
range: 1-10000
- field: product
range: 1-10{2}
- field: createdDate
range: "20100101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: deleted
range: 0{1},1{1}
...
+3 -3
View File
@@ -6,11 +6,11 @@ fields:
- field: id
range: 1-10000
- field: product
range: 1-100{10}
range: 1-10{2}
- field: createdDate
range: "20100101 000000-20210101 230000:2D"
range: "20100101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: deleted
range: 0{2},1{2}
range: 0{1},1{1}
...
+10 -6
View File
@@ -6,21 +6,25 @@ fields:
- field: id
range: 1-10000
- field: product
range: 1-100{10}
range: 1-50{40}
- field: openedDate
range: "20100101 000000-20210101 230000:2D"
range: "20100101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: closedDate
range: "20110101 000000-20210101 230000:3D"
range: "20110101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: estimate
range: 1-10{10}
- field: stage
range: wait{4},planned{4},projected{4},developing{4},developed{4},testing{4},tested{4},verified{4},released{4},closed{4}
range: wait{1},planned{1},projected{1},developing{1},developed{1},testing{1},tested{1},verified{1},released{1},closed{1}
- field: closedReason
range: bydesign{4},cancel{4},done{4},duplicate{4},postponed{4},subdivided{4},willnotdo{4}
range: bydesign{1},cancel{1},done{1},duplicate{1},postponed{1},subdivided{1},willnotdo{1}
- field: status
range: changing{1},active{1},draft{1},reviewing{1},closed{1}
- field: type
range: requirement{20},story{20}
- field: deleted
range: 0{2},1{2}
range: 0{10},1{10}
...
@@ -0,0 +1,28 @@
---
title: zt_story
author: qixinzhi
version: "1.0"
fields:
- field: id
range: 1-10000
- field: product
range: 1-10{140}
- field: openedDate
range: "20100101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: closedDate
range: "20110101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: estimate
range: 1-10{10}
- field: stage
range: wait{1},planned{1},projected{1},developing{1},developed{1},testing{1},tested{1},verified{1},released{1},closed{1}
- field: closedReason
range: bydesign{10},cancel{10},done{10},duplicate{10},postponed{10},subdivided{10},willnotdo{10}
- field: type
range: story
- field: deleted
range: 0{70},1{70}
...
+24
View File
@@ -0,0 +1,24 @@
---
title: zt_story
author: qixinzhi
version: "1.0"
fields:
- field: id
range: 1-10000
- field: product
range: 1-10{10}
- field: openedDate
range: "20100101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: closedDate
range: "20110101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: status
range: changing{1},active{1},draft{1},reviewing{1},closed{1}
- field: type
range: story
- field: deleted
range: 0{5},1{5}
...
@@ -0,0 +1,26 @@
---
title: zt_story
author: qixinzhi
version: "1.0"
fields:
- field: id
range: 1-10000
- field: product
range: 1-10{70}
- field: openedDate
range: "20100101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: closedDate
range: "20110101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: closedReason
range: bydesign{1},cancel{1},done{1},duplicate{1},postponed{1},subdivided{1},willnotdo{1}
- field: status
range: changing{7},active{7},draft{7},reviewing{7},closed{7}
- field: type
range: story
- field: deleted
range: 0{35},1{35}
...
+24
View File
@@ -0,0 +1,24 @@
---
title: zt_story
author: qixinzhi
version: "1.0"
fields:
- field: id
range: 1-10000
- field: product
range: 1-10{40}
- field: openedDate
range: "20100101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: closedDate
range: "20110101 000000-20210101 230000:10D"
type: timestamp
format: YYYY-MM-DD hh:mm:ss
- field: estimate
range: 1-10{10}
- field: type
range: requirement{10},story{10}
- field: deleted
range: 0{20},1{20}
...