diff --git a/module/bug/model.php b/module/bug/model.php
index 80850637da..30993d7042 100644
--- a/module/bug/model.php
+++ b/module/bug/model.php
@@ -3191,9 +3191,19 @@ class bugModel extends model
$class .= ' c-user';
$title = "title='" . zget($users, $bug->resolvedBy) . "'";
break;
+ case 'openedBy':
+ $class .= ' c-user';
+ $title = "title='" . zget($users, $bug->openedBy) . "'";
+ break;
case 'project':
$title = "title='" . zget($projectPairs, $bug->project, '') . "'";
break;
+ case 'plan':
+ $title = "title='" . zget($plans, $bug->plan) . "'";
+ break;
+ case 'execution':
+ $title = "title='" . zget($executions, $bug->execution) . "'";
+ break;
case 'resolvedBuild':
$class .= ' text-ellipsis';
$title = "title='" . $bug->resolvedBuild . "'";
diff --git a/module/common/lang/menu.php b/module/common/lang/menu.php
index 67e1345892..f4da4b6005 100644
--- a/module/common/lang/menu.php
+++ b/module/common/lang/menu.php
@@ -320,7 +320,7 @@ $lang->execution->menu->task = array('link' => "{$lang->task->common}|execut
$lang->execution->menu->kanban = array('link' => "$lang->executionKanban|execution|taskkanban|executionID=%s");
$lang->execution->menu->burn = array('link' => "$lang->burn|execution|burn|executionID=%s");
$lang->execution->menu->view = array('link' => "$lang->view|execution|grouptask|executionID=%s", 'alias' => 'grouptask,tree,taskeffort,gantt,calendar,relation,maintainrelation');
-$lang->execution->menu->story = array('link' => "$lang->SRCommon|execution|story|executionID=%s", 'subModule' => 'story', 'alias' => 'batchcreate,linkstory,storykanban');
+$lang->execution->menu->story = array('link' => "$lang->SRCommon|execution|story|executionID=%s", 'subModule' => 'story', 'alias' => 'batchcreate,linkstory,storykanban,batchtotask');
$lang->execution->menu->qa = array('link' => "{$lang->qa->common}|execution|bug|executionID=%s", 'subModule' => 'bug,testcase,testtask,testreport', 'alias' => 'qa,bug,testcase,testtask,testreport');
$lang->execution->menu->devops = array('link' => "{$lang->repo->common}|repo|browse|repoID=0&branchID=&objectID=%s", 'subModule' => 'repo');
$lang->execution->menu->doc = array('link' => "{$lang->doc->common}|doc|tableContents|type=execution&objectID=%s", 'subModule' => 'doc');
diff --git a/module/execution/config.php b/module/execution/config.php
index 46880f681f..fc2869b395 100644
--- a/module/execution/config.php
+++ b/module/execution/config.php
@@ -188,14 +188,14 @@ $config->execution->datatable->fieldList['id']['fixed'] = 'left';
$config->execution->datatable->fieldList['id']['width'] = '70';
$config->execution->datatable->fieldList['id']['required'] = 'yes';
-$config->execution->datatable->fieldList['name']['title'] = 'name';
+$config->execution->datatable->fieldList['name']['title'] = 'execName';
$config->execution->datatable->fieldList['name']['fixed'] = 'left';
$config->execution->datatable->fieldList['name']['width'] = 'auto';
$config->execution->datatable->fieldList['name']['required'] = 'yes';
if(!isset($config->setCode) or $config->setCode == 1)
{
- $config->execution->datatable->fieldList['code']['title'] = 'code';
+ $config->execution->datatable->fieldList['code']['title'] = 'execCode';
$config->execution->datatable->fieldList['code']['fixed'] = 'no';
$config->execution->datatable->fieldList['code']['width'] = '95';
$config->execution->datatable->fieldList['code']['required'] = 'no';
@@ -211,7 +211,7 @@ $config->execution->datatable->fieldList['PM']['fixed'] = 'no';
$config->execution->datatable->fieldList['PM']['width'] = '70';
$config->execution->datatable->fieldList['PM']['required'] = 'no';
-$config->execution->datatable->fieldList['status']['title'] = 'status';
+$config->execution->datatable->fieldList['status']['title'] = 'execStatus';
$config->execution->datatable->fieldList['status']['fixed'] = 'no';
$config->execution->datatable->fieldList['status']['width'] = '100';
$config->execution->datatable->fieldList['status']['required'] = 'no';
diff --git a/module/execution/control.php b/module/execution/control.php
index 733cadbe29..d5f2dc2394 100644
--- a/module/execution/control.php
+++ b/module/execution/control.php
@@ -1058,7 +1058,7 @@ class execution extends control
$this->view->builds = $this->build->getBuildPairs($productID);
$this->view->branchOption = $branchOption;
$this->view->branchTagOption = $branchTagOption;
- $this->view->plans = $this->loadModel('productplan')->getPairs($productID);
+ $this->view->plans = $this->loadModel('productplan')->getPairs($productID ? $productID : array_keys($products));
$this->view->stories = $storyList;
$this->view->tasks = $taskList;
$this->view->projectPairs = $this->loadModel('project')->getPairsByProgram();
@@ -1384,6 +1384,9 @@ class execution extends control
$this->loadModel('kanban');
$this->app->loadClass('date');
+ $minDate = !helper::isZeroDate($execution->openedDate) ? $execution->openedDate : $execution->begin;
+ $maxDate = !helper::isZeroDate($execution->closedDate) ? $execution->closedDate : helper::today();
+
if(!empty($_POST))
{
$begin = htmlspecialchars($this->post->begin, ENT_QUOTES);
@@ -1424,6 +1427,8 @@ class execution extends control
$this->view->chartData = $chartData;
$this->view->begin = $begin;
$this->view->end = $end;
+ $this->view->minDate = $minDate;
+ $this->view->maxDate = $maxDate;
$this->display();
}
@@ -2290,9 +2295,7 @@ class execution extends control
{
$this->app->loadClass('date');
- $begin = date('Y-m-d', strtotime('-13 days'));
- $begin = (helper::isZeroDate($execution->begin) or helper::diffDate($begin, $execution->begin) > 0) ? $begin : $execution->begin;
- $end = helper::today();
+ list($begin, $end) = $this->execution->getBeginEnd4CFD($execution);
$dateList = date::getDateList($begin, $end, 'Y-m-d', 'noweekend');
$chartData = $this->execution->buildCFDData($executionID, $dateList, 'task');
if(isset($chartData['line'])) $chartData['line'] = array_reverse($chartData['line']);
diff --git a/module/execution/css/all.css b/module/execution/css/all.css
index 3d4796798e..c111722e41 100644
--- a/module/execution/css/all.css
+++ b/module/execution/css/all.css
@@ -28,6 +28,7 @@ td.flex span.project-type-label {min-width: 40px;}
.has-child > span {margin-right: 5px;}
.c-name > .text-ellipsis {text-overflow: clip;}
.c-code, .c-project {overflow: hidden; white-space: nowrap;}
+th.c-status {text-align: center}
.c-project{text-overflow: unset !important;}
canvas {height: 28px;}
diff --git a/module/execution/js/cfd.js b/module/execution/js/cfd.js
index a6b429fe3d..7317d41ca4 100644
--- a/module/execution/js/cfd.js
+++ b/module/execution/js/cfd.js
@@ -137,7 +137,7 @@ $(function()
location.href = createLink('execution', 'cfd', 'executionID=' + executionID + '&type=' + type + '&withWeekend=' + withWeekend + '&begin=' + begin + '&end=' + end);
});
- $("#end, #begin").datetimepicker('setEndDate', today);
- $("#end, #begin").datetimepicker('setStartDate', executionBegin);
+ $("#end, #begin").datetimepicker('setEndDate', maxDate);
+ $("#end, #begin").datetimepicker('setStartDate', minDate);
$('.datetimepicker-days table tfoot').append('
cookie->storyProductParam);?>
cookie->storyBranchParam));?>
id);?>
+project);?>
execution->confirmUnlinkStory)?>
lang->error->notempty, $this->lang->task->type))?>
+lang->error->notempty, $this->lang->task->type));?>
+lang->error->notempty, $this->lang->story->convertRelations));?>
+lang->story->float, $this->lang->story->convertRelations));?>
lang->error->notempty, $this->lang->workingHour))?>
execution->confirmStoryToTask);?>
@@ -318,7 +322,7 @@
story->batchToTask;?>
diff --git a/module/my/view/execution.html.php b/module/my/view/execution.html.php
index 101cd0ea50..c7516e8a12 100644
--- a/module/my/view/execution.html.php
+++ b/module/my/view/execution.html.php
@@ -39,7 +39,7 @@
execution->begin;?> |
execution->end;?> |
-
statusAB;?> |
+
statusAB;?> |
team->role;?> |
team->join;?> |
my->hours;?> |
@@ -53,13 +53,13 @@
| id));?> |
- systemMode == 'new'):?>
+ systemMode == 'new'):?>
type === 'stage') echo "{$lang->project->stage} ";
if($execution->type === 'sprint') echo "{$lang->executionCommon} ";
if($execution->type === 'kanban') echo "{$lang->execution->kanban} ";
?>
-
+
name, '', "title='$execution->name'");?>
|
systemMode == 'new'):?>
@@ -69,7 +69,7 @@
begin;?> |
end;?> |
-
+ |
delay)):?>
execution->delayed;?>
diff --git a/module/port/lang/de.php b/module/port/lang/de.php
new file mode 100644
index 0000000000..f61d721f20
--- /dev/null
+++ b/module/port/lang/de.php
@@ -0,0 +1,23 @@
+port = new stdclass();
+
+$lang->port->reservedWord['id'] = 'ID';
+$lang->port->reservedWord['type'] = 'Type';
+$lang->port->reservedWord['project'] = 'Project';
+$lang->port->reservedWord['execution'] = 'Execution';
+$lang->port->reservedWord['product'] = 'Project';
+$lang->port->reservedWord['code'] = 'CODE';
+$lang->port->reservedWord['name'] = 'Name';
+$lang->port->reservedWord['title'] = 'Title';
+
+$lang->port->importCase = 'Import EXCEL';
+$lang->port->importNotice = 'Notice: Importing data is risky! Make sure to complete the following steps in sequence before merging.';
+$lang->port->noRequire = 'Row %s has“%s ”which is a required field and it should not be blank.';
+$lang->port->exportTemplate = 'Export Template';
+$lang->port->import = 'Import';
+$lang->port->id = 'ID';
+
+$lang->port->new = 'New';
+
+$lang->port->num = 'Count:';
+$lang->port->children = 'Child';
diff --git a/module/port/lang/en.php b/module/port/lang/en.php
new file mode 100644
index 0000000000..f61d721f20
--- /dev/null
+++ b/module/port/lang/en.php
@@ -0,0 +1,23 @@
+port = new stdclass();
+
+$lang->port->reservedWord['id'] = 'ID';
+$lang->port->reservedWord['type'] = 'Type';
+$lang->port->reservedWord['project'] = 'Project';
+$lang->port->reservedWord['execution'] = 'Execution';
+$lang->port->reservedWord['product'] = 'Project';
+$lang->port->reservedWord['code'] = 'CODE';
+$lang->port->reservedWord['name'] = 'Name';
+$lang->port->reservedWord['title'] = 'Title';
+
+$lang->port->importCase = 'Import EXCEL';
+$lang->port->importNotice = 'Notice: Importing data is risky! Make sure to complete the following steps in sequence before merging.';
+$lang->port->noRequire = 'Row %s has“%s ”which is a required field and it should not be blank.';
+$lang->port->exportTemplate = 'Export Template';
+$lang->port->import = 'Import';
+$lang->port->id = 'ID';
+
+$lang->port->new = 'New';
+
+$lang->port->num = 'Count:';
+$lang->port->children = 'Child';
diff --git a/module/port/lang/fr.php b/module/port/lang/fr.php
new file mode 100644
index 0000000000..f61d721f20
--- /dev/null
+++ b/module/port/lang/fr.php
@@ -0,0 +1,23 @@
+port = new stdclass();
+
+$lang->port->reservedWord['id'] = 'ID';
+$lang->port->reservedWord['type'] = 'Type';
+$lang->port->reservedWord['project'] = 'Project';
+$lang->port->reservedWord['execution'] = 'Execution';
+$lang->port->reservedWord['product'] = 'Project';
+$lang->port->reservedWord['code'] = 'CODE';
+$lang->port->reservedWord['name'] = 'Name';
+$lang->port->reservedWord['title'] = 'Title';
+
+$lang->port->importCase = 'Import EXCEL';
+$lang->port->importNotice = 'Notice: Importing data is risky! Make sure to complete the following steps in sequence before merging.';
+$lang->port->noRequire = 'Row %s has“%s ”which is a required field and it should not be blank.';
+$lang->port->exportTemplate = 'Export Template';
+$lang->port->import = 'Import';
+$lang->port->id = 'ID';
+
+$lang->port->new = 'New';
+
+$lang->port->num = 'Count:';
+$lang->port->children = 'Child';
diff --git a/module/port/lang/zh-cn.php b/module/port/lang/zh-cn.php
index f74f8947ed..5fb74999b9 100644
--- a/module/port/lang/zh-cn.php
+++ b/module/port/lang/zh-cn.php
@@ -9,7 +9,6 @@ $lang->port->reservedWord['product'] = '所属产品';
$lang->port->reservedWord['code'] = '代号';
$lang->port->reservedWord['name'] = '名称';
$lang->port->reservedWord['title'] = '标题';
-$lang->port->reservedWord['asdawdadw'] = '测试字段';
$lang->port->importCase = '导入EXCEL';
$lang->port->importNotice = '请先导出模板,按照模板格式填写数据后再导入。';
diff --git a/module/program/css/browse.css b/module/program/css/browse.css
index 096b146d90..5838ce1a59 100644
--- a/module/program/css/browse.css
+++ b/module/program/css/browse.css
@@ -16,3 +16,4 @@ tbody.sortable > tr > td.sort-handler {color: #3c4353 !important;}
div.checkbox-primary + span.table-nest-icon {margin-left:0px !important;}
#checkAll + label.hover:after {border-width: 0px;}
+.c-budget {padding-right:16px !important;}
diff --git a/module/program/view/browsebylist.html.php b/module/program/view/browsebylist.html.php
index 44da6a7f16..5684629bfa 100644
--- a/module/program/view/browsebylist.html.php
+++ b/module/program/view/browsebylist.html.php
@@ -80,7 +80,7 @@
|
loadModel('project')->getBudgetWithUnit($program->budget);?>
- budget != 0 ? zget($lang->project->currencySymbol, $program->budgetUnit) . ' ' . $programBudget : $lang->project->future;?> |
+ budget != 0 ? zget($lang->project->currencySymbol, $program->budgetUnit) . ' ' . $programBudget : $lang->project->future;?> |
begin;?> |
end == LONG_TIME ? $lang->program->longTime : $program->end;?> |
diff --git a/module/project/control.php b/module/project/control.php
index bac7826271..e33392021a 100644
--- a/module/project/control.php
+++ b/module/project/control.php
@@ -1183,7 +1183,7 @@ class project extends control
$this->view->branchOption = $branchOption;
$this->view->branchTagOption = $branchTagOption;
$this->view->executions = $executions;
- $this->view->plans = $this->loadModel('productplan')->getPairs($productID);
+ $this->view->plans = $this->loadModel('productplan')->getPairs($productID ? $productID : array_keys($products));
$this->view->stories = $storyList;
$this->view->tasks = $taskList;
$this->view->projectPairs = $this->project->getPairsByProgram();
diff --git a/module/project/model.php b/module/project/model.php
index 2c70e44587..6a74a66720 100644
--- a/module/project/model.php
+++ b/module/project/model.php
@@ -2029,7 +2029,7 @@ class projectModel extends model
echo $project->end;
break;
case 'status':
- echo " " . zget($this->lang->project->statusList, $project->status) . "";
+ echo " " . zget($this->lang->project->statusList, $project->status) . "";
break;
case 'budget':
echo $budgetTitle;
diff --git a/module/project/view/execution.html.php b/module/project/view/execution.html.php
index 22f4130f1d..dcc40d6fd8 100644
--- a/module/project/view/execution.html.php
+++ b/module/project/view/execution.html.php
@@ -72,7 +72,7 @@
nameAB;?>
| execution->owner;?> |
- project->status;?> |
+ project->status;?> |
project->progress;?> |
programplan->begin;?> |
programplan->end;?> |
diff --git a/module/release/view/linkstory.html.php b/module/release/view/linkstory.html.php
index aa0e2b177f..d376bb94f5 100644
--- a/module/release/view/linkstory.html.php
+++ b/module/release/view/linkstory.html.php
@@ -32,7 +32,7 @@
openedByAB;?> |
assignedToAB;?> |
story->estimateAB;?> |
- statusAB;?> |
+ statusAB;?> |
story->stageAB;?> |
@@ -50,14 +50,14 @@
pri;?>' title='story->priList, $story->pri)?>'>story->priList, $story->pri)?> |
parent > 0) echo "{$lang->story->childrenAB}";
+ if($story->parent > 0) echo "{$lang->story->childrenAB}";
echo html::a($this->createLink('story', 'view', "storyID=$story->id", '', true), $story->title, '', "data-toggle='modal' data-type='iframe' data-width='90%'");
?>
|
openedBy);?> |
assignedTo);?> |
estimate . $config->hourUnit;?> |
-
processStatus('story', $story);?> |
+
processStatus('story', $story);?> |
story->stageList, $story->stage);?> |
diff --git a/module/release/view/view.html.php b/module/release/view/view.html.php
index 4d2c773382..801b54a2fc 100644
--- a/module/release/view/view.html.php
+++ b/module/release/view/view.html.php
@@ -75,7 +75,7 @@
story->title);?> |
openedByAB);?> |
story->estimateAB);?> |
-
statusAB);?> |
+
statusAB);?> |
story->stageAB);?> |
actions?> |
@@ -96,13 +96,13 @@
pri;?>' title='story->priList, $story->pri, $story->pri);?>'>story->priList, $story->pri, $story->pri);?> |
parent > 0) echo "{$lang->story->childrenAB}";
+ if($story->parent > 0) echo "{$lang->story->childrenAB}";
echo html::a($storyLink,$story->title, '', "class='preview'");
?>
|
openedBy);?> |
estimate . $config->hourUnit;?> |
-
+ |
processStatus('story', $story);?>
|
story->stageList[$story->stage];?> |
@@ -196,7 +196,7 @@
openedBy);?> |
openedDate, 5, 11)?> |
resolvedBy);?> |
-
resolvedDate, 5, 11)?> |
+
resolvedDate) ? '' : substr($bug->resolvedDate, 5, 11);?> |
lang->story->successToTask;
- $tasks = $this->story->batchToTask($executionID, $this->session->project);
-
- if(dao::isError())
- {
- $response['result'] = 'fail';
- $response['message'] = dao::getError();
- return $this->send($response);
- }
+ $tasks = $this->story->batchToTask($executionID, $projectID);
+ if(dao::isError()) return print(js::error(dao::getError()));
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'idList' => $tasks));
- $response['locate'] = $this->createLink('execution', 'task', "executionID=$executionID");
- return $this->send($response);
+ return print(js::locate($this->createLink('execution', 'task', "executionID=$executionID"), 'parent'));
}
+
+ if(!$this->post->storyIdList) return print(js::locate($this->session->storyList, 'parent'));
+
+ $stories = $this->story->getByList($_POST['storyIdList']);
+ $storyGroup = array();
+ foreach($stories as $story)
+ {
+ if(strpos('draft,closed', $story->status) !== false) continue;
+ if(isset($storyGroup[$story->module])) continue;
+ $storyGroup[$story->module] = $this->story->getExecutionStoryPairs($executionID, 0, 'all', $story->module, 'short', 'active');
+ }
+
+ $this->view->title = $this->lang->story->batchToTask;
+ $this->view->executionID = $executionID;
+ $this->view->syncFields = empty($_POST['fields']) ? array() : $_POST['fields'];
+ $this->view->hourPointValue = empty($_POST['hourPointValue']) ? 0 : $_POST['hourPointValue'];
+ $this->view->taskType = empty($_POST['type']) ? '' : $_POST['type'];
+ $this->view->stories = $stories;
+ $this->view->storyGroup = $storyGroup;
+ $this->view->modules = $this->loadModel('tree')->getTaskOptionMenu($executionID, 0, 0, 'allModule');
+ $this->view->members = $this->loadModel('user')->getTeamMemberPairs($executionID, 'execution', 'nodeleted');
+ $this->view->storyTasks = $this->loadModel('task')->getStoryTaskCounts(array_keys($stories), $executionID);
+
+ $this->display();
}
/**
diff --git a/module/story/css/batchtotask.css b/module/story/css/batchtotask.css
new file mode 100644
index 0000000000..2d99100615
--- /dev/null
+++ b/module/story/css/batchtotask.css
@@ -0,0 +1,22 @@
+.chosen-container[id^="story"] {width: 200px; max-width: 150px;}
+select[id^="story"] + .picker-single {width: 130px; max-width: 130px;}
+#mainContent .main-header h2 {max-width: 300px;}
+
+#batchToTaskForm .input-group,
+#batchToTaskForm .input-group .form-control {position: static;}
+#batchToTaskForm .input-group .colorpicker {z-index: 2;}
+#batchToTaskForm .input-group .colorpicker.open {z-index: 5;}
+.main-header .pull-left {max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
+
+.chosen-results > li.has-task,
+.chosen-results > li.has-new-task {position: relative; color: #388E3C;}
+.chosen-results > li.has-task.highlighted,
+.chosen-results > li.has-new-task.highlighted {color: #fff;}
+
+.c-id {width: 30px;}
+.c-name, .c-desc {width: 150px;}
+.c-story {width: 200px;}
+.c-assigned {width: 130px;}
+.c-date {width: 120px;}
+.c-pri {width: 80px;}
+.c-actions {width: 60px;}
diff --git a/module/story/js/batchtotask.js b/module/story/js/batchtotask.js
new file mode 100755
index 0000000000..5548e54b13
--- /dev/null
+++ b/module/story/js/batchtotask.js
@@ -0,0 +1,304 @@
+$(document).on('change', "[name^='estStarted'], [name^='deadline']", function()
+{
+ toggleCheck($(this));
+});
+
+/**
+ * Set story related.
+ *
+ * @param int $num
+ * @access public
+ * @return void
+ */
+function setStoryRelated(num)
+{
+ setPreview(num);
+}
+
+/**
+ * Toggle checkbox.
+ *
+ * @param object $obj
+ * @access public
+ * @return void
+ */
+function toggleCheck(obj)
+{
+ var $this = $(obj);
+ var date = $this.val();
+ var $ditto = $this.closest('div').find("input[type='checkBox']");
+ if(date == '')
+ {
+ $ditto.attr('checked', true);
+ $ditto.closest('.input-group-addon').show();
+ }
+ else
+ {
+ $ditto.removeAttr('checked');
+ $ditto.closest('.input-group-addon').hide();
+ }
+}
+
+/**
+ * Set stories.
+ *
+ * @param int $moduleID
+ * @param int $executionID
+ * @param int $num
+ * @access public
+ * @return void
+ */
+function setStories(moduleID, executionID, num)
+{
+ var link = createLink('story', 'ajaxGetExecutionStories', 'executionID=' + executionID + '&productID=0&branch=all&moduleID=' + moduleID + '&storyID=0&num=' + num + '&type=short');
+ $.get(link, function(stories)
+ {
+ var storyID = $('#story' + num).val();
+ if(!stories) stories = '';
+ $('#story' + num).replaceWith(stories);
+ if(num != 0 && (moduleID == 0 || moduleID == 'ditto')) $('#story' + num).append("");
+ $('#story' + num).val(storyID);
+
+ var chosenWidth = $("#story" + num + "_chosen").css('max-width');
+ $("#story" + num + "_chosen").remove();
+ $("#story" + num).next('.picker').remove();
+ $("#story" + num).chosen();
+ $("#story" + num + "_chosen").width(chosenWidth).css('max-width', chosenWidth);
+ });
+}
+
+/**
+ * Copy story title.
+ *
+ * @param int $num
+ * @access public
+ * @return void
+ */
+function copyStoryTitle(num)
+{
+ var $story = $('#story' + num);
+ var storyTitle = $story.find('option:selected').text();
+ var storyValue = $story.find('option:selected').val();
+ var begin = parseInt($story.closest('tr').children('.c-id').text()) - 2;
+
+ if(storyValue === 'ditto')
+ {
+ for(var i = begin; i >= 0; i--)
+ {
+ var selectedValue = $('#tableBody tbody > tr').eq(i).find('select[name^="story"]').val();
+ var selectedTitle = $('#tableBody tbody > tr').eq(i).find('select[name^="story"]').find('option:selected').text();
+ if(selectedValue !== 'ditto')
+ {
+ storyTitle = selectedTitle;
+ break;
+ }
+ }
+ }
+
+ var startPosition = storyTitle.indexOf(':') + 1;
+ var endPosition = storyTitle.lastIndexOf('[');
+ storyTitle = storyTitle.substr(startPosition, endPosition - startPosition);
+
+ $('#name\\[' + num + '\\]').val(storyTitle);
+}
+
+/**
+ * Set preview.
+ *
+ * @param int $num
+ * @access public
+ * @return void
+ */
+function setPreview(num)
+{
+ var storyID = $('#story' + num).val();
+ if(storyID != 0 && storyID != 'ditto')
+ {
+ storyLink = createLink('story', 'view', "storyID=" + storyID, '', true);
+ $('#preview' + num).removeAttr('disabled');
+ $('#preview' + num).modalTrigger({type:'iframe'});
+ $('#preview' + num).css('pointer-events', 'auto');
+ $('#preview' + num).attr('href', storyLink);
+ }
+ else
+ {
+ storyLink = '#';
+ $('#preview' + num).attr('disabled', true);
+ $('#preview' + num).css('pointer-events', 'none');
+ $('#preview' + num).attr('href', storyLink);
+ }
+}
+
+/**
+ * Mark story task.
+ *
+ * @access public
+ * @return void
+ */
+function markStoryTask()
+{
+ $('select[name^="story"]').each(function()
+ {
+ var $select = $(this);
+ $select.find('option').each(function()
+ {
+ var $option = $(this);
+ var value = $option.attr('value');
+ var tasksCount = storyTasks[value];
+ $option.attr('data-data', value).toggleClass('has-task', !!(tasksCount && tasksCount !== '0'));
+ });
+ $select.trigger("chosen:updated");
+ });
+
+ var getStoriesHasTask = function()
+ {
+ var storiesHasTask = {};
+ $('#tableBody tbody>tr').each(function()
+ {
+ var $tr = $(this);
+ if ($tr.find('input[name^="name"]').val())
+ {
+ storiesHasTask[$tr.find('select[name^="story"]').val()] = true;
+ }
+ });
+ return storiesHasTask;
+ };
+
+ $('#batchToTaskForm').on('chosen:showing_dropdown', 'select[name^="story"],.chosen-with-drop', function()
+ {
+ var storiesHasTask = getStoriesHasTask();
+ var $container = $(this).closest('td').find('.chosen-container');
+ setTimeout(function()
+ {
+ $container.find('.chosen-results>li').each(function()
+ {
+ var $li = $(this);
+ $li.toggleClass('has-new-task', !!storiesHasTask[$li.data('data')]);
+ });
+ }, 100);
+ });
+}
+
+$(document).on('chosen:showing_dropdown', 'select[name^="story"],.chosen-with-drop', function()
+{
+ var select = $(this).closest('td').find('select');
+ if($(select).val() == 'ditto')
+ {
+ var index = $(select).closest('td').index();
+ var row = $(select).closest('tr').index();
+ var table = $(select).closest('tr').parent();
+ var value = '';
+ for(i = row - 1; i >= 0; i--)
+ {
+ value = $(table).find('tr').eq(i).find('td').eq(index).find('select').val();
+ if(value != 'ditto') break;
+ }
+ $(select).val(value);
+ $(select).trigger("chosen:updated");
+ $(select).trigger("change");
+ }
+})
+
+$(document).on('mousedown', 'select', function()
+{
+ if($(this).val() == 'ditto')
+ {
+ var index = $(this).closest('td').index();
+ var row = $(this).closest('tr').index();
+ var table = $(this).closest('tr').parent();
+ var value = '';
+ for(i = row - 1; i >= 0; i--)
+ {
+ value = $(table).find('tr').eq(i).find('td').eq(index).find('select').val();
+ if(value != 'ditto') break;
+ }
+ $(this).val(value);
+ }
+})
+
+$(function()
+{
+ $('.chosen-container[id^=module]').width(chosenWidth);
+ $('.chosen-container[id^=module]').css('max-width', chosenWidth);
+
+ var chosenWidth = $('#story1_chosen').width();
+ $('.chosen-container[id^=story]').width(chosenWidth);
+ $('.chosen-container[id^=story]').css('max-width', chosenWidth);
+
+ markStoryTask();
+
+ $(document).keydown(function(event)
+ {
+ if(event.ctrlKey && event.keyCode == 38)
+ {
+ event.stopPropagation();
+ event.preventDefault();
+ selectFocusJump('up');
+ }
+ else if(event.ctrlKey && event.keyCode == 40)
+ {
+ event.stopPropagation();
+ event.preventDefault();
+ selectFocusJump('down');
+ }
+ else if(event.keyCode == 38)
+ {
+ inputFocusJump('up');
+ }
+ else if(event.keyCode == 40)
+ {
+ inputFocusJump('down');
+ }
+ });
+});
+
+/**
+ * Add row.
+ *
+ * @param object $obj
+ * @access public
+ * @return void
+ */
+function addRow(obj)
+{
+ var row = $('#addRow').html().replace(/%i%/g, rowIndex + 1);
+ $(' | ' + row + '
').insertAfter($(obj).closest('tr'));
+
+ var $beginRow = $row = $(obj).closest('tr').next();
+
+ $row.find(".form-date").datepicker();
+ $row.find("input[name^=color]").colorPicker();
+ $row.find('div[id$=_chosen]').remove();
+ $row.find('.picker').remove();
+ $row.find('.chosen').chosen();
+
+ var begin = parseInt($(obj).parent().siblings('.c-id').text()) + 1;
+ var count = $('#tableBody tbody > tr').length;
+ for(var i = begin; i <= count; i++)
+ {
+ $beginRow.children('.c-id').text(i);
+ $beginRow = $beginRow.next();
+ }
+ rowIndex ++;
+}
+
+/**
+ * Delete row.
+ *
+ * @param object $obj
+ * @access public
+ * @return void
+ */
+function deleteRow(obj)
+{
+ var $beginRow = $(obj).closest('tr').next();
+ var begin = parseInt($(obj).parent().siblings('.c-id').text());
+ var count = $('#tableBody tbody > tr').length;
+ for(var i = begin; i <= count; i++)
+ {
+ $beginRow.children('.c-id').text(i);
+ $beginRow = $beginRow.next();
+ }
+
+ $(obj).closest('tr').remove();
+}
diff --git a/module/story/lang/de.php b/module/story/lang/de.php
index a4a1583a6c..0aa71b39bf 100644
--- a/module/story/lang/de.php
+++ b/module/story/lang/de.php
@@ -84,9 +84,10 @@ $lang->story->reportAction = "Story Report";
$lang->story->skipStory = '%s is a parent story. It cannot be closed.';
$lang->story->closedStory = 'Story %s is closed and will not be closed.';
-$lang->story->batchToTaskTips = "This action will create a task with the same name as the selected {$lang->SRCommon} and link {$lang->SRCommon} to the task. The closed {$lang->SRCommon} will not be converted into tasks.";
+$lang->story->batchToTaskTips = "The closed {$lang->SRCommon} will not be converted into tasks.";
$lang->story->successToTask = "Converted to task.";
$lang->story->storyRound = '%s time estimation';
+$lang->story->float = "『%s』should be positive number, decimals included.";
$lang->story->id = 'ID';
$lang->story->parent = 'Parent';
diff --git a/module/story/lang/en.php b/module/story/lang/en.php
index ad443af1b3..dfa303141f 100644
--- a/module/story/lang/en.php
+++ b/module/story/lang/en.php
@@ -84,9 +84,10 @@ $lang->story->reportAction = "Report";
$lang->story->skipStory = '%s is a parent story. It cannot be closed.';
$lang->story->closedStory = 'Story %s is closed and will not be closed.';
-$lang->story->batchToTaskTips = "This action will create a task with the same name as the selected {$lang->SRCommon} and link {$lang->SRCommon} to the task. The closed {$lang->SRCommon} will not be converted into tasks.";
+$lang->story->batchToTaskTips = "The closed {$lang->SRCommon} will not be converted into tasks.";
$lang->story->successToTask = "Converted to task.";
$lang->story->storyRound = '%s time estimation';
+$lang->story->float = "『%s』should have positive number, or decimals.";
$lang->story->id = 'ID';
$lang->story->parent = 'Parent';
diff --git a/module/story/lang/fr.php b/module/story/lang/fr.php
index ef77ed0716..f4b2e3c1a0 100644
--- a/module/story/lang/fr.php
+++ b/module/story/lang/fr.php
@@ -84,9 +84,10 @@ $lang->story->reportAction = "Rapport de Story";
$lang->story->skipStory = '%s is a parent story. It cannot be closed.';
$lang->story->closedStory = 'Story %s is closed and will not be closed.';
-$lang->story->batchToTaskTips = "This action will create a task with the same name as the selected {$lang->SRCommon} and link {$lang->SRCommon} to the task. The closed {$lang->SRCommon} will not be converted into tasks.";
+$lang->story->batchToTaskTips = "The closed {$lang->SRCommon} will not be converted into tasks.";
$lang->story->successToTask = "Converted to task.";
$lang->story->storyRound = '%s time estimation';
+$lang->story->float = "『 %s 』doit avoir des nombres positifs ou décimaux.";
$lang->story->id = 'ID';
$lang->story->parent = 'Parent';
diff --git a/module/story/lang/zh-cn.php b/module/story/lang/zh-cn.php
index 8643c48c88..cdec11db27 100644
--- a/module/story/lang/zh-cn.php
+++ b/module/story/lang/zh-cn.php
@@ -84,9 +84,10 @@ $lang->story->reportAction = "统计报表";
$lang->story->skipStory = '需求:%s 为父需求,将不会被关闭。';
$lang->story->closedStory = '需求:%s 已关闭,将不会被关闭。';
-$lang->story->batchToTaskTips = "此操作会创建与所选{$lang->SRCommon}同名的任务,并将{$lang->SRCommon}关联到任务中,已关闭的需求不会转为任务。";
+$lang->story->batchToTaskTips = "已关闭的需求不会转为任务。";
$lang->story->successToTask = '批量转任务成功';
$lang->story->storyRound = '第 %s 轮估算';
+$lang->story->float = "『%s』应当是正数,可以是小数。";
$lang->story->id = '编号';
$lang->story->parent = '父需求';
diff --git a/module/story/model.php b/module/story/model.php
index 4e873e7ab7..bc342f887b 100644
--- a/module/story/model.php
+++ b/module/story/model.php
@@ -2020,72 +2020,159 @@ class storyModel extends model
{
/* load Module and get the data from the post and get the current time. */
$this->loadModel('action');
- $data = fixer::input('post')->get();
- $now = helper::now();
+ $this->loadModel('task');
- /* Judgment of required items. */
- if(empty($data->type))
- {
- dao::$errors['type'] = sprintf($this->lang->error->notempty, $this->lang->task->type);
- }
+ $now = helper::now();
+ $account = $this->app->user->account;
+ $tasks = fixer::input('post')
+ ->remove('syncFields')
+ ->get();
- if(isset($data->hourPointValue) and empty($data->hourPointValue))
- {
- dao::$errors['hourPointValue'] = sprintf($this->lang->error->notempty, $this->lang->story->convertRelations);
- }
- elseif(isset($data->hourPointValue) and !is_numeric($data->hourPointValue))
- {
- dao::$errors['hourPointValue'] = sprintf($this->lang->error->float, $this->lang->story->convertRelations);
- }
- if(dao::isError()) return false;
+ if(!empty($_POST['syncFields'])) $stories = empty($tasks->story) ? array() : $this->getByList($tasks->story);
/* Create tasks. */
- $tasks = array();
- $stories = empty($data->storyIdList) ? array() : $this->getByList($data->storyIdList);
- foreach($stories as $story)
+ $preStory = 0;
+ $storyIDs = array();
+ $taskNames = array();
+ foreach($tasks->story as $key => $storyID)
{
- if(strpos('draft,closed', $story->status) !== false) continue;
+ $tasks->name[$key] = trim($tasks->name[$key]);
+ if(empty($tasks->name[$key])) continue;
+ if($tasks->type[$key] == 'affair') continue;
+ if($tasks->type[$key] == 'ditto' and isset($tasks->type[$key - 1]) and $tasks->type[$key - 1] == 'affair') continue;
- $task = new stdclass();
- $task->execution = $executionID;
- $task->project = $projectID ? $projectID : 0;
- $task->name = $story->title;
- $task->story = $story->id;
- $task->type = $data->type;
- $task->estimate = isset($data->hourPointValue) ? ($story->estimate * $data->hourPointValue) : $story->estimate;
- $task->left = $task->estimate;
- $task->openedBy = $this->app->user->account;
- $task->openedDate = $now;
- $task->storyVersion = $story->version;
+ if($storyID == 'ditto') $storyID = $preStory;
+ $preStory = $storyID;
- if(isset($data->fields))
+ if(!isset($tasks->story[$key - 1]) and $key > 1 and !empty($tasks->name[$key - 1]))
{
- foreach($data->fields as $field)
- {
- $task->$field = $story->$field;
-
- if($field == 'assignedTo') $task->assignedDate = $now;
- if($field == 'spec')
- {
- unset($task->$field);
- $task->desc = $story->$field;
- }
- }
+ $storyIDs[] = 0;
+ $taskNames[] = $tasks->name[$key - 1];
}
+ $inNames = in_array($tasks->name[$key], $taskNames);
+ if(!$inNames or ($inNames && !in_array($storyID, $storyIDs)))
+ {
+ $storyIDs[] = $storyID;
+ $taskNames[] = $tasks->name[$key];
+ }
+ else
+ {
+ dao::$errors['message'][] = sprintf($this->lang->duplicate, $this->lang->task->common) . ' ' . $tasks->name[$key];
+ return false;
+ }
+ }
+
+ $story = 0;
+ $module = 0;
+ $type = '';
+ $assignedTo = '';
+ $estStarted = '0000-00-00';
+ $deadline = '0000-00-00';
+ $data = array();
+ $requiredFields = "," . $this->config->task->create->requiredFields . ",";
+ foreach($tasks->name as $i => $task)
+ {
+ $module = (!isset($tasks->module[$i]) or $tasks->module[$i] == 'ditto') ? $module : $tasks->module[$i];
+ $story = (!isset($tasks->story[$i]) or $tasks->story[$i] == 'ditto') ? $story : $tasks->story[$i];
+ $type = (!isset($tasks->type[$i]) or $tasks->type[$i] == 'ditto') ? $type : $tasks->type[$i];
+ $assignedTo = (!isset($tasks->assignedTo[$i]) or $tasks->assignedTo[$i] == 'ditto') ? $assignedTo : $tasks->assignedTo[$i];
+ $estStarted = (!isset($tasks->estStarted[$i]) or isset($tasks->estStartedDitto[$i])) ? $estStarted : $tasks->estStarted[$i];
+ $deadline = (!isset($tasks->deadline[$i]) or isset($tasks->deadlineDitto[$i])) ? $deadline : $tasks->deadline[$i];
+
+ if(empty($tasks->name[$i])) continue;
+
+ $data[$i] = new stdclass();
+ $data[$i]->story = (int)$story;
+ $data[$i]->type = $type;
+ $data[$i]->module = (int)$module;
+ $data[$i]->assignedTo = $assignedTo;
+ $data[$i]->color = $tasks->color[$i];
+ $data[$i]->name = $tasks->name[$i];
+ $data[$i]->pri = $tasks->pri[$i];
+ $data[$i]->estimate = $tasks->estimate[$i];
+ $data[$i]->left = $tasks->estimate[$i];
+ $data[$i]->project = $this->config->systemMode == 'new' ? $projectID : 0;
+ $data[$i]->execution = $executionID;
+ $data[$i]->estStarted = $estStarted;
+ $data[$i]->deadline = $deadline;
+ $data[$i]->status = 'wait';
+ $data[$i]->openedBy = $account;
+ $data[$i]->openedDate = $now;
+ $data[$i]->vision = 'rnd';
+ if($story)
+ {
+ $data[$i]->storyVersion = $stories[$story]->version;
+ if(strpos(",{$_POST['syncFields']},", ',spec,') !== false) $data[$i]->desc = $stories[$story]->spec;
+ if(strpos(",{$_POST['syncFields']},", 'mailto') !== false) $data[$i]->mailto = $stories[$story]->mailto;
+ }
+
+ if($assignedTo) $data[$i]->assignedDate = $now;
+ if(strpos($requiredFields, ',estStarted,') !== false and empty($estStarted)) $data[$i]->estStarted = '';
+ if(strpos($requiredFields, ',deadline,') !== false and empty($deadline)) $data[$i]->deadline = '';
+ }
+
+ /* check data. */
+ foreach($data as $i => $task)
+ {
+ if(!helper::isZeroDate($task->deadline) and $task->deadline < $task->estStarted)
+ {
+ dao::$errors['message'][] = $this->lang->task->error->deadlineSmall;
+ return false;
+ }
+
+ if($task->estimate and !preg_match("/^[0-9]+(.[0-9]{1,3})?$/", $task->estimate))
+ {
+ dao::$errors['message'][] = $this->lang->task->error->estimateNumber;
+ return false;
+ }
+
+ foreach(explode(',', $requiredFields) as $field)
+ {
+ $field = trim($field);
+ if(empty($field)) continue;
+
+ if(!isset($task->$field)) continue;
+ if(!empty($task->$field)) continue;
+ if($field == 'estimate' and strlen(trim($task->estimate)) != 0) continue;
+
+ dao::$errors['message'][] = sprintf($this->lang->error->notempty, $this->lang->task->$field);
+ return false;
+ }
+ if($task->estimate) $task->estimate = (float)$task->estimate;
+ }
+
+ $taskIdList = array();
+ foreach($data as $i => $task)
+ {
+ $task->version = 1;
$this->dao->insert(TABLE_TASK)->data($task)
->autoCheck()
->checkIF($task->estimate != '', 'estimate', 'float')
->exec();
if(dao::isError()) return false;
- $taskID = $this->dao->lastInsertID();
- $tasks[] = $taskID;
+
+ $taskID = $this->dao->lastInsertID();
+ $taskIdList[] = $taskID;
+
+ $taskSpec = new stdClass();
+ $taskSpec->task = $taskID;
+ $taskSpec->version = $task->version;
+ $taskSpec->name = $task->name;
+ $taskSpec->estStarted = $task->estStarted;
+ $taskSpec->deadline = $task->deadline;
+
+ $this->dao->insert(TABLE_TASKSPEC)->data($taskSpec)->autoCheck()->exec();
+ if(dao::isError()) return false;
+
+ if($task->story) $this->setStage($task->story);
+
$this->action->create('task', $taskID, 'Opened', '');
}
$this->loadModel('kanban')->updateLane($executionID, 'task');
- return $tasks;
+ return $taskIdList;
}
/**
@@ -4422,6 +4509,11 @@ class storyModel extends model
{
$title = $story->feedbackBy;
}
+ elseif($id =='version')
+ {
+ $title = $story->version;
+ $class = 'text-center';
+ }
elseif($id == 'notifyEmail')
{
$title = $story->notifyEmail;
diff --git a/module/story/view/batchtotask.html.php b/module/story/view/batchtotask.html.php
new file mode 100755
index 0000000000..62046a9820
--- /dev/null
+++ b/module/story/view/batchtotask.html.php
@@ -0,0 +1,202 @@
+
+ * @package story
+ * @version $Id$
+ * @link https://www.zentao.net
+ */
+?>
+
+
+task->ditto);?>
+
+
+
+task->create->requiredFields) as $field)
+{
+ if($field) $requiredFields[$field] = '';
+}
+?>
+
+
+
story->batchToTask;?>
+
+
+
+
+
+
diff --git a/module/task/js/batchcreate.js b/module/task/js/batchcreate.js
index 334ec01eeb..770503fde8 100755
--- a/module/task/js/batchcreate.js
+++ b/module/task/js/batchcreate.js
@@ -128,7 +128,8 @@ function setStoryRelated(num)
*/
function setPreview(num)
{
- var storyID = $('#story' + num).val();
+ var storyID = $('#story' + num).val();
+ var storyLink = '#';
if(storyID != 0 && storyID != 'ditto')
{
var link = createLink('story', 'ajaxGetInfo', 'storyID=' + storyID);
@@ -148,6 +149,7 @@ function setPreview(num)
var concat = storyLink.indexOf('?') >= 0 ? '&' : '?';
storyLink = storyLink + concat + 'onlybody=yes';
}
+
$('#preview' + num).removeAttr('disabled');
$('#preview' + num).modalTrigger({type:'iframe'});
$('#preview' + num).css('pointer-events', 'auto');
@@ -155,7 +157,6 @@ function setPreview(num)
}
else
{
- storyLink = '#';
$('#preview' + num).attr('disabled', true);
$('#preview' + num).css('pointer-events', 'none');
$('#preview' + num).attr('href', storyLink);
diff --git a/module/task/model.php b/module/task/model.php
index 6566508e29..e5edc31911 100644
--- a/module/task/model.php
+++ b/module/task/model.php
@@ -3804,7 +3804,7 @@ class taskModel extends model
$list = "
";
$list .= '| ';
if($task->parent > 0) $list .= '' . $this->lang->task->childrenAB . ' ';
- $list .= html::a(helper::createLink('task', 'view', "id=$task->id"), $task->name, '', "data-app='project'");
+ $list .= common::hasPriv('task', 'view') ? html::a(helper::createLink('task', 'view', "id=$task->id"), $task->name, '', "style='color: $task->color'", "data-app='project'") : "$task->name";
$list .= ' | ';
$list .= '' . zget($users, $task->assignedTo, '') . ' | ';
$list .= "" . $this->processStatus('task', $task) . ' | ';
diff --git a/module/task/view/batchcreate.html.php b/module/task/view/batchcreate.html.php
index 45e08a1aa3..ba22047966 100755
--- a/module/task/view/batchcreate.html.php
+++ b/module/task/view/batchcreate.html.php
@@ -118,7 +118,7 @@ $colspan = count($visibleFields) + 3;
|
- id)'")?>
+ id, $i)'")?>
|
lifetime != 'ops' and $execution->attribute != 'request' and $execution->attribute != 'review'):?>
diff --git a/module/user/control.php b/module/user/control.php
index e09326c219..e7f9f11abb 100755
--- a/module/user/control.php
+++ b/module/user/control.php
@@ -1068,15 +1068,14 @@ class user extends control
if($_POST)
{
- if($needCreateFile) return print(js::reload('parent'));
+ if($needCreateFile) return $this->send(array('result' => 'success', 'locate' => 'reload'));
$result = $this->user->resetPassword();
- if(dao::isError()) return print(js::error(dao::getError()));
- if(!$result) return print(js::alert($this->lang->user->resetFail));
+ if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
+ if(!$result) return $this->send(array('result' => 'fail', 'message' => $this->lang->user->resetFail));
- echo js::alert($this->lang->user->resetSuccess);
$referer = helper::safe64Encode($this->createLink('index', 'index'));
- return print(js::locate(inlink('logout', 'referer=' . $referer), 'parent'));
+ return $this->send(array('result' => 'success', 'message' => $this->lang->user->resetSuccess, 'locate' => $this->createLink('user', 'logout', 'referer=' . $referer)));
}
/* Remove the real path for security reason. */
@@ -1174,6 +1173,7 @@ class user extends control
$this->view->title = $this->lang->user->resetPWD;
$this->view->expired = $expired;
$this->view->user = empty($user) ? '' : $user;
+ $this->view->rand = $this->user->updateSessionRandom();
$this->display();
}
diff --git a/module/user/css/common.css b/module/user/css/common.css
index b55a793882..6a20da013c 100644
--- a/module/user/css/common.css
+++ b/module/user/css/common.css
@@ -3,3 +3,5 @@
.w-enVerifyPassword {width: 150px !important;}
.c-id {width: 70px;}
.c-hours {width: 110px;}
+
+#mainContent table > tbody > tr > td > div.text-danger.help-text {word-break: break-all;}
diff --git a/module/user/css/reset.css b/module/user/css/reset.css
index 788d51bfb7..775fe00af2 100644
--- a/module/user/css/reset.css
+++ b/module/user/css/reset.css
@@ -1,2 +1,3 @@
.alert-info > h5 > span {color: red;}
.btn-back {margin-left: 25px;}
+.table tbody > tr > td div.text-danger.help-text {word-break: break-all;}
diff --git a/module/user/css/resetpassword.css b/module/user/css/resetpassword.css
index 6a798688b0..1ee01498c6 100644
--- a/module/user/css/resetpassword.css
+++ b/module/user/css/resetpassword.css
@@ -13,3 +13,4 @@ body {background: #1183fb linear-gradient(-90deg, #0a48d1 0%, #1183fb 100%); bac
#resetPanel .form-group .input-group.required:after {top: 6px;}
#resetPanel .form-actions > .btn-wide {min-width: 45%;}
#resetPanel .form-actions > a.btn-wide {margin-right: 0px;}
+#resetForm .form-group div.text-danger.help-text {word-break: break-all;}
diff --git a/module/user/js/create.js b/module/user/js/create.js
index b8c30bacb3..32c6596e9a 100644
--- a/module/user/js/create.js
+++ b/module/user/js/create.js
@@ -92,11 +92,12 @@ $(function()
$('#password2').change(function(){password2Encrypted = false});
$('#submit').click(function()
{
- if(!password1Encrypted && !password2Encrypted)
+ if(!password1Encrypted || !password2Encrypted)
{
var password1 = $('#password1').val();
var password2 = $('#password2').val();
var passwordStrength = computePasswordStrength(password1);
+ if(!password1Encrypted) $("#passwordLength").val(password1.length);
if($("form input[name=passwordStrength]").length == 0) $('#submit').after("");
$("form input[name=passwordStrength]").val(passwordStrength);
diff --git a/module/user/js/edit.js b/module/user/js/edit.js
index 664049ff89..6b673efc4e 100644
--- a/module/user/js/edit.js
+++ b/module/user/js/edit.js
@@ -6,11 +6,12 @@ $(function()
$('#password2').change(function(){password2Encrypted = false});
$('#submit').click(function()
{
- if(!password1Encrypted && !password2Encrypted)
+ if(!password1Encrypted || !password2Encrypted)
{
var password1 = $('#password1').val().trim();
var password2 = $('#password2').val().trim();
var passwordStrength = computePasswordStrength(password1);
+ if(!password1Encrypted) $("#passwordLength").val(password1.length);
if($("form input[name=passwordStrength]").length == 0) $('#submit').after("");
$("form input[name=passwordStrength]").val(passwordStrength);
diff --git a/module/user/js/reset.js b/module/user/js/reset.js
index 2a28fa0a50..ccf8593186 100644
--- a/module/user/js/reset.js
+++ b/module/user/js/reset.js
@@ -1,10 +1,27 @@
$(document).ready(function()
{
+ var password1Encrypted = false
+ var password2Encrypted = false
+ $('#password1').change(function(){password1Encrypted = false});
+ $('#password2').change(function(){password2Encrypted = false});
$('form #submit').click(function()
{
- var password = $('#password1').val().trim();
- var passwordStrength = computePasswordStrength(password);
+ if(!password1Encrypted || !password2Encrypted)
+ {
+ var password1 = $('#password1').val().trim();
+ var password2 = $('#password2').val().trim();
+ var passwordStrength = computePasswordStrength(password1);
- $('form').prepend("");
- });
+ if($("form input[name=passwordStrength]").length == 0) $('#submit').after("");
+ $("form input[name=passwordStrength]").val(passwordStrength);
+
+ var rand = $('input#verifyRand').val();
+ if(password1 && !password1Encrypted) $('#password1').val(md5(password1) + rand);
+ if(password2 && !password2Encrypted) $('#password2').val(md5(password2) + rand);
+ password1Encrypted = true;
+ password2Encrypted = true;
+ $('form').prepend("");
+ $('form').prepend("");
+ }
+ })
});
diff --git a/module/user/js/resetpassword.js b/module/user/js/resetpassword.js
index f691afa07c..9f328f6445 100644
--- a/module/user/js/resetpassword.js
+++ b/module/user/js/resetpassword.js
@@ -10,13 +10,27 @@ $(function()
}, 1000);
}
- $('#password1').attr('id', 'password');
-
+ var password1Encrypted = false
+ var password2Encrypted = false
+ $('#password1').change(function(){password1Encrypted = false});
+ $('#password2').change(function(){password2Encrypted = false});
$('#submit').click(function()
{
- var password1 = $('#password').val();
- var passwordStrength = computePasswordStrength(password1);
+ if(!password1Encrypted || !password2Encrypted)
+ {
+ var password1 = $('#password1').val().trim();
+ var password2 = $('#password2').val().trim();
+ var passwordStrength = computePasswordStrength(password1);
+ if(!password1Encrypted) $("#passwordLength").val(password1.length);
- $("form input[id=passwordStrength]").val(passwordStrength);
+ if($("form input[name=passwordStrength]").length == 0) $('#submit').after("");
+ $("form input[name=passwordStrength]").val(passwordStrength);
+
+ var rand = $('input#verifyRand').val();
+ if(password1 && !password1Encrypted) $('#password1').val(md5(password1) + rand);
+ if(password2 && !password2Encrypted) $('#password2').val(md5(password2) + rand);
+ password1Encrypted = true;
+ password2Encrypted = true;
+ }
})
})
diff --git a/module/user/lang/de.php b/module/user/lang/de.php
index 33808bfb72..e079a7d3c4 100644
--- a/module/user/lang/de.php
+++ b/module/user/lang/de.php
@@ -224,9 +224,14 @@ $lang->user->placeholder->loginAccount = 'Enter your account';
$lang->user->placeholder->loginUrl = 'Enter your ZenTao address';
$lang->user->placeholder->email = 'Enter your email';
+$lang->user->placeholder->passwordStrength[0] = '≥6 letters.';
$lang->user->placeholder->passwordStrength[1] = 'Buchstaben und Ziffern. Mindestens 6 Zeichen';
$lang->user->placeholder->passwordStrength[2] = 'Buchstaben, Ziffern und Sonderzeichen. Mindestens 10 Zeichen';
+$lang->user->placeholder->passwordStrengthCheck[0] = 'The password should be ≥ 6 letters.';
+$lang->user->placeholder->passwordStrengthCheck[1] = 'The password should be ≥ 6 letters, combination of uppercase, lowercase letters and numbers.';
+$lang->user->placeholder->passwordStrengthCheck[2] = 'The password should be ≥ 10 letters, combination of uppercase, lowercase letters, numbers, and special symbols.';
+
$lang->user->error = new stdclass();
$lang->user->error->account = "ID %s,Konto muss Buchstaben, Unterstriche oder Ziffern enthalten. Mindestens 3 Zeichen.";
$lang->user->error->accountDupl = "ID %s,Konto wurde genutzt.";
diff --git a/module/user/lang/en.php b/module/user/lang/en.php
index 0f314ec1c6..a9d604bb62 100644
--- a/module/user/lang/en.php
+++ b/module/user/lang/en.php
@@ -224,9 +224,14 @@ $lang->user->placeholder->loginAccount = 'Enter your account';
$lang->user->placeholder->loginUrl = 'Enter your ZenTao address';
$lang->user->placeholder->email = 'Enter your email';
+$lang->user->placeholder->passwordStrength[0] = '≥6 letters.';
$lang->user->placeholder->passwordStrength[1] = '>= 6 letters and numbers';
$lang->user->placeholder->passwordStrength[2] = '>= 10 letters, numbers and special characters';
+$lang->user->placeholder->passwordStrengthCheck[0] = 'The password should be ≥ 6 letters.';
+$lang->user->placeholder->passwordStrengthCheck[1] = 'The password should be ≥ 6 letters, combination of uppercase, lowercase letters and numbers.';
+$lang->user->placeholder->passwordStrengthCheck[2] = 'The password should be ≥ 10 letters, combination of uppercase, lowercase letters, numbers, and special symbols.';
+
$lang->user->error = new stdclass();
$lang->user->error->account = "ID %s,account must be >= 3 letters, underline or numbers";
$lang->user->error->accountDupl = "ID %s,account is used.";
diff --git a/module/user/lang/fr.php b/module/user/lang/fr.php
index 622a42e2b3..354bfa0972 100644
--- a/module/user/lang/fr.php
+++ b/module/user/lang/fr.php
@@ -224,9 +224,14 @@ $lang->user->placeholder->loginAccount = 'Enter your account';
$lang->user->placeholder->loginUrl = 'Enter your ZenTao address';
$lang->user->placeholder->email = 'Enter your email';
+$lang->user->placeholder->passwordStrength[0] = 'Le mot de passe doit ≥ 6 caractè res.';
$lang->user->placeholder->passwordStrength[1] = '>= 6 lettres et chiffres';
$lang->user->placeholder->passwordStrength[2] = '>= 10 lettres, chiffres et caractères spéciaux';
+$lang->user->placeholder->passwordStrengthCheck[0] = 'Le mot de passe doit ≥ 6 caractères.';
+$lang->user->placeholder->passwordStrengthCheck[1] = 'Le mot de passe doit ≥ 6 caractères, combinaison de lettres majuscules, minuscules et de chiffres.';
+$lang->user->placeholder->passwordStrengthCheck[2] = 'Le mot de passe doit ≥ 10 caractères, combinaison de lettres majuscules, minuscules, de chiffres et de symboles spéciaux.';
+
$lang->user->error = new stdclass();
$lang->user->error->account = "ID %s,compte doit être >= 3 lettres, souligné ou chiffres";
$lang->user->error->accountDupl = "ID %s,compte déjà utilisé par quelqu'un d'autre.";
diff --git a/module/user/lang/zh-cn.php b/module/user/lang/zh-cn.php
index 37cafcb434..1670d77090 100644
--- a/module/user/lang/zh-cn.php
+++ b/module/user/lang/zh-cn.php
@@ -224,8 +224,13 @@ $lang->user->placeholder->loginAccount = '请输入用户名';
$lang->user->placeholder->loginUrl = '请输入禅道系统网址';
$lang->user->placeholder->email = '请输入邮箱';
-$lang->user->placeholder->passwordStrength[1] = '6位以上,包含大小写字母,数字。';
-$lang->user->placeholder->passwordStrength[2] = '10位以上,包含大小写字母,数字,特殊字符。';
+$lang->user->placeholder->passwordStrength[0] = '密码必须6位及以上。';
+$lang->user->placeholder->passwordStrength[1] = '6位及以上,包含大小写字母,数字。';
+$lang->user->placeholder->passwordStrength[2] = '10位及以上,包含大小写字母,数字,特殊字符。';
+
+$lang->user->placeholder->passwordStrengthCheck[0] = '密码须6位及以上。';
+$lang->user->placeholder->passwordStrengthCheck[1] = '密码必须6位及以上,且包含大小写字母、数字。';
+$lang->user->placeholder->passwordStrengthCheck[2] = '密码必须10位及以上,且包含大小写字母、数字、特殊符号。';
$lang->user->error = new stdclass();
$lang->user->error->account = "【ID %s】的用户名应该为:三位以上的英文、数字或下划线的组合";
diff --git a/module/user/model.php b/module/user/model.php
index 404f016840..4e366ef854 100644
--- a/module/user/model.php
+++ b/module/user/model.php
@@ -320,7 +320,7 @@ class userModel extends model
->setIF($this->post->password1 == false, 'password', '')
->setIF($this->post->email != false, 'email', trim($this->post->email))
->join('visions', ',')
- ->remove('new, group, password1, password2, verifyPassword, passwordStrength')
+ ->remove('new, group, password1, password2, verifyPassword, passwordStrength,passwordLength')
->get();
if(empty($_POST['verifyPassword']) or $this->post->verifyPassword != md5($this->app->user->password . $this->session->rand))
@@ -544,7 +544,7 @@ class userModel extends model
->setIF($this->post->password1 != false, 'password', substr($this->post->password1, 0, 32))
->setIF($this->post->email != false, 'email', trim($this->post->email))
->join('visions', ',')
- ->remove('new, password1, password2, groups,verifyPassword, passwordStrength')
+ ->remove('new, password1, password2, groups,verifyPassword, passwordStrength,passwordLength')
->get();
if(empty($_POST['verifyPassword']) or $this->post->verifyPassword != md5($this->app->user->password . $this->session->rand))
@@ -786,7 +786,7 @@ class userModel extends model
$user = fixer::input('post')
->setIF($this->post->password1 != false, 'password', substr($this->post->password1, 0, 32))
- ->remove('account, password1, password2, originalPassword, passwordStrength')
+ ->remove('account, password1, password2, originalPassword, passwordStrength,passwordLength')
->get();
if(empty($_POST['originalPassword']) or $this->post->originalPassword != md5($this->app->user->password . $this->session->rand))
@@ -800,6 +800,7 @@ class userModel extends model
$this->app->user->modifyPassword = false;
if(!dao::isError())
{
+ if(!empty($this->app->user->modifyPasswordReason)) $this->app->user->modifyPasswordReason = '';
$this->loadModel('score')->create('user', 'changePassword', $this->computePasswordStrength($this->post->password1));
}
}
@@ -818,7 +819,7 @@ class userModel extends model
$user = $this->getById($this->post->account);
if(!$user) return false;
- $password = md5($this->post->password1);
+ $password = substr($this->post->password1, 0, 32);
$this->dao->update(TABLE_USER)->set('password')->eq($password)->autoCheck()->where('account')->eq($this->post->account)->exec();
return !dao::isError();
}
@@ -833,17 +834,28 @@ class userModel extends model
{
$_POST['password1'] = trim($_POST['password1']);
$_POST['password2'] = trim($_POST['password2']);
- if(!$canNoPassword and empty($_POST['password1'])) dao::$errors['password'][] = sprintf($this->lang->error->notempty, $this->lang->user->password);
+ if(!$canNoPassword and empty($_POST['password1'])) dao::$errors['password1'][] = sprintf($this->lang->error->notempty, $this->lang->user->password) . '
';
if($this->post->password1 != false)
{
- if($this->post->password1 != $this->post->password2) dao::$errors['password'][] = $this->lang->error->passwordsame;
- if(!validater::checkReg($this->post->password1, '|(.){6,}|')) dao::$errors['password'][] = $this->lang->error->passwordrule;
+ if(isset($this->config->safe->mode) and ($this->post->passwordStrength < $this->config->safe->mode)) dao::$errors['password1'][] = zget($this->lang->user->placeholder->passwordStrengthCheck, $this->config->safe->mode, $this->lang->user->weakPassword) . '
';
+
+ if(isset($_POST['passwordLength']) and $this->post->passwordLength < 6 and empty(dao::$errors['password1'])) dao::$errors['password1'][] = zget($this->lang->user->placeholder->passwordStrengthCheck, 0, $this->lang->user->weakPassword) . '
';
+
+ if($this->post->password1 != $this->post->password2) dao::$errors['password1'][] = $this->lang->error->passwordsame . '
';
- if(isset($this->config->safe->mode) and ($this->post->passwordStrength < $this->config->safe->mode)) dao::$errors['password'] = zget($this->lang->user->placeholder->passwordStrength, $this->config->safe->mode, $this->lang->user->weakPassword);
if(!empty($this->config->safe->changeWeak))
{
if(!isset($this->config->safe->weak)) $this->app->loadConfig('admin');
- if(strpos(",{$this->config->safe->weak},", ",{$this->post->password1},") !== false) dao::$errors['password1'][] = sprintf($this->lang->user->errorWeak, $this->config->safe->weak);
+
+ if(strpos(",{$this->config->safe->weak},", ",{$this->post->password1},") !== false) dao::$errors['password1'] = sprintf($this->lang->user->errorWeak, $this->config->safe->weak);
+
+ $weaks = array();
+ foreach(explode(',', $this->config->safe->weak) as $weak)
+ {
+ $weak = md5(trim($weak));
+ $weaks[$weak] = $weak;
+ }
+ if(isset($weaks[substr($this->post->password1, 0, 32)])) dao::$errors['password1'] = sprintf($this->lang->user->errorWeak, $this->config->safe->weak);
}
}
return !dao::isError();
@@ -1656,7 +1668,6 @@ class userModel extends model
$strength = 0;
$length = strlen($password);
- $uniqueChars = '';
$complexity = array();
$chars = str_split($password);
foreach($chars as $letter)
@@ -1664,7 +1675,7 @@ class userModel extends model
$asc = ord($letter);
if($asc >= 48 && $asc <= 57)
{
- $complexity[2] = 2;
+ $complexity[0] = 1;
}
elseif($asc >= 65 && $asc <= 90)
{
@@ -1672,20 +1683,17 @@ class userModel extends model
}
elseif($asc >= 97 && $asc <= 122)
{
- $complexity[0] = 1;
+ $complexity[2] = 4;
}
else
{
- $complexity[3] = 3;
+ $complexity[3] = 8;
}
- if(strpos($uniqueChars, $letter) === false) $uniqueChars .= $letter;
}
- if(strlen($uniqueChars) > 4)$strength += strlen($uniqueChars) - 4;
- $strength += array_sum($complexity) + (2 * (count($complexity) - 1));
- if($length < 6 and $strength >= 10) $strength = 9;
+ $sumComplexity = array_sum($complexity);
- $strength = $strength > 29 ? 29 : $strength;
- $strength = floor($strength / 10);
+ if(($sumComplexity == 7 or $sumComplexity == 15) and $length >= 6) $strength = 1;
+ if($sumComplexity == 15 and $length >= 10) $strength = 2;
return $strength;
}
diff --git a/module/user/view/create.html.php b/module/user/view/create.html.php
index 667e7aaf23..44f22cf2c7 100644
--- a/module/user/view/create.html.php
+++ b/module/user/view/create.html.php
@@ -13,7 +13,7 @@
-safe->mode)) $lang->user->placeholder->password1 = $lang->user->placeholder->passwordStrength[$config->safe->mode]?>
+user->placeholder->password1 = zget($lang->user->placeholder->passwordStrength, $config->safe->mode, '');?>
user->placeholder);?>
1;
|
config->vision);?>
+
createLink('company', 'browse'), $lang->goback, '', "class='btn btn-wide'")?>
|
diff --git a/module/user/view/edit.html.php b/module/user/view/edit.html.php
index 21012bdcb5..8306b1f4c1 100644
--- a/module/user/view/edit.html.php
+++ b/module/user/view/edit.html.php
@@ -71,7 +71,7 @@
- safe->mode) ? $lang->user->placeholder->passwordStrength[$config->safe->mode] : '') . "'");?>
+ user->placeholder->passwordStrength, $config->safe->mode, '') . "'");?>
|
@@ -117,6 +117,7 @@
|
+
|
diff --git a/module/user/view/reset.html.php b/module/user/view/reset.html.php
index dc180f7c6e..79189a990f 100644
--- a/module/user/view/reset.html.php
+++ b/module/user/view/reset.html.php
@@ -11,6 +11,7 @@
*/
?>
+
@@ -34,7 +35,7 @@
user->resetPassword?>
-
+
diff --git a/test/data/zt_config.sql b/test/data/zt_config.sql
index 0719d3142c..1c994dfebe 100644
--- a/test/data/zt_config.sql
+++ b/test/data/zt_config.sql
@@ -8,7 +8,7 @@ INSERT INTO `zt_config` (`id`, `vision`, `owner`, `module`, `section`, `key`, `v
(6, 'rnd', 'system', 'project', '', 'unitList', 'CNY,USD'),
(7, 'rnd', 'system', 'project', '', 'defaultCurrency', 'CNY'),
(8, 'rnd', 'system', 'story', '', 'reviewRules', 'allpass'),
-(10, 'rnd', 'system', 'common', 'global', 'version', '17.0.beta1'),
+(10, '', 'system', 'common', 'global', 'version', '17.4'),
(11, 'rnd', 'system', 'common', 'global', 'sn', 'c8aa3269e181f2b9258ce96625de1497'),
(12, 'rnd', 'system', 'common', 'global', 'flow', 'full'),
(13, 'rnd', 'system', 'common', 'safe', 'mode', '1'),
diff --git a/test/lib/db.class.php b/test/lib/db.class.php
index 09b502f4eb..c319649560 100644
--- a/test/lib/db.class.php
+++ b/test/lib/db.class.php
@@ -81,6 +81,8 @@ class db
$dbUsed = $this->getUsedDbList();
$lastDB = 0;
if(!empty($dbUsed)) $lastDB = max($dbUsed);
+
+ /* If all db is used. */
if($lastDB == $this->config->test->dbNum)
{
shell_exec("> $this->dbLogFile");
@@ -139,7 +141,7 @@ class db
*/
function initDB()
{
- for($i = 1; $i < 11; $i++)
+ for($i = 1; $i <= $this->config->test->dbNum; $i++)
{
$this->dao->query('DROP DATABASE ' . $this->config->test->dbPrefix . $i);
$this->dao->query('CREATE DATABASE ' . $this->config->test->dbPrefix . $i);
diff --git a/test/model/action/create.php b/test/model/action/create.php
index 9bf65ea0f4..92bfb754ad 100755
--- a/test/model/action/create.php
+++ b/test/model/action/create.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -34,4 +35,4 @@ r($action->createTest($objectTypeList[3], $objectIDList[0], $actionTypeList[3]))
r($action->createTest($objectTypeList[4], $objectIDList[0], $actionTypeList[4], $comment)) && p('objectType,objectId,action,comment') && e('story,,comments,测试备注'); // 测试创建story 1 comment动态
r($action->createTest($objectTypeList[4], $objectIDList[0], $actionTypeList[4])) && p() && e(''); // 测试创建story 1 comment动态 不填写备注
r($action->createTest($objectTypeList[2], $objectIDList[0], $actionTypeList[5], '', '', $actor)) && p() && e('0'); // 测试创建游客 logout动态
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/action/gettrashes.php b/test/model/action/gettrashes.php
index c1ca62efd1..8e7daeda1d 100755
--- a/test/model/action/gettrashes.php
+++ b/test/model/action/gettrashes.php
@@ -10,10 +10,12 @@ title=测试 actionModel->getTrashes();
cid=1
pid=1
-查询type all id desc排序的回收站信息 >> testsuite,,这是测试套件名称87;story,,软件需求48
-查询type all id desc排序的回收站信息 >> story,,软件需求48;testsuite,,这是测试套件名称87
-查询type hidden id asc排序的回收站信息 >> testcase,,这个是测试用例9
-查询type hidden id asc排序的回收站信息 >> testcase,,这个是测试用例9
+查询objectType all type all id desc排序的回收站信息 >> testsuite,,这是测试套件名称87;story,,软件需求48
+查询objectType all type all id desc排序的回收站信息 >> story,,软件需求48;testsuite,,这是测试套件名称87
+查询objectType all type hidden id asc排序的回收站信息 >> testcase,,这个是测试用例9
+查询objectType all type hidden id asc排序的回收站信息 >> testcase,,这个是测试用例9
+查询objectType story type all id asc排序的回收站信息 >> story,,软件需求48
+查询objectType testcase hidden id asc排序的回收站信息 >> testcase,,这个是测试用例9
*/
@@ -29,4 +31,4 @@ r($action->getTrashesTest($objectTypeList[0], $typeList[0], $orderBy[1], $pager)
r($action->getTrashesTest($objectTypeList[0], $typeList[1], $orderBy[0], $pager)) && p('0:objectType,objectId,objectName') && e('testcase,,这个是测试用例9'); // 查询objectType all type hidden id asc排序的回收站信息
r($action->getTrashesTest($objectTypeList[0], $typeList[1], $orderBy[1], $pager)) && p('0:objectType,objectId,objectName') && e('testcase,,这个是测试用例9'); // 查询objectType all type hidden id asc排序的回收站信息
r($action->getTrashesTest($objectTypeList[1], $typeList[0], $orderBy[0], $pager)) && p('0:objectType,objectId,objectName') && e('story,,软件需求48'); // 查询objectType story type all id asc排序的回收站信息
-r($action->getTrashesTest($objectTypeList[2], $typeList[1], $orderBy[0], $pager)) && p('0:objectType,objectId,objectName') && e('testcase,,这个是测试用例9'); // 查询objectType testcase hidden id asc排序的回收站信息
+r($action->getTrashesTest($objectTypeList[2], $typeList[1], $orderBy[0], $pager)) && p('0:objectType,objectId,objectName') && e('testcase,,这个是测试用例9'); // 查询objectType testcase hidden id asc排序的回收站信息
\ No newline at end of file
diff --git a/test/model/action/gettrashobjecttypes.php b/test/model/action/gettrashobjecttypes.php
old mode 100644
new mode 100755
index 59d4982b27..8bb9aed695
--- a/test/model/action/gettrashobjecttypes.php
+++ b/test/model/action/gettrashobjecttypes.php
@@ -10,6 +10,9 @@ title=测试 actionModel->getTrashObjectTypes();
cid=1
pid=1
+查询type all 的对象类型列表 >> story
+查询type all 的对象类型列表 >> testcase
+
*/
$typeList = array('all', 'hidden');
@@ -17,4 +20,4 @@ $typeList = array('all', 'hidden');
$action = new actionTest();
r($action->getTrashObjectTypesTest($typeList[0])) && p('story:objectType') && e('story'); // 查询type all 的对象类型列表
-r($action->getTrashObjectTypesTest($typeList[1])) && p('testcase:objectType') && e('testcase'); // 查询type all 的对象类型列表
+r($action->getTrashObjectTypesTest($typeList[1])) && p('testcase:objectType') && e('testcase'); // 查询type all 的对象类型列表
\ No newline at end of file
diff --git a/test/model/action/hideall.php b/test/model/action/hideall.php
index 8e6313ce5d..8a2aa28000 100755
--- a/test/model/action/hideall.php
+++ b/test/model/action/hideall.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -17,4 +18,4 @@ pid=1
$action = new actionTest();
r($action->hideAllTest()) && p('0:extra;1:extra;2:extra') && e('2;2;2'); // 隐藏回收站全部信息
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/action/hideone.php b/test/model/action/hideone.php
index aed9d946d7..e0d4fa338f 100755
--- a/test/model/action/hideone.php
+++ b/test/model/action/hideone.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -24,4 +25,4 @@ r($action->hideOneTest($actionIDList[0])) && p('extra') && e('2'); // 隐藏acti
r($action->hideOneTest($actionIDList[1])) && p('extra') && e('2'); // 隐藏action 87
r($action->hideOneTest($actionIDList[2])) && p('extra') && e('2'); // 隐藏已隐藏action 9
r($action->hideOneTest($actionIDList[3])) && p('extra') && e('1'); // 隐藏非删除action 1
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/action/loghistory.php b/test/model/action/loghistory.php
index ae7665a2fe..4191c8fd2e 100755
--- a/test/model/action/loghistory.php
+++ b/test/model/action/loghistory.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -34,4 +35,4 @@ r($action->logHistoryTest($actionIDList[1], $changes2)) && p('0:field,old,new')
r($action->logHistoryTest($actionIDList[2], $changes3)) && p('0:field,old,new') && e('name,name1,name2'); // 测试新增actionID 10003 历史记录
r($action->logHistoryTest($actionIDList[3], $changes4)) && p('0:field,old,new') && e('code,code1,code2'); // 测试新增actionID 10004 历史记录
r($action->logHistoryTest($actionIDList[4], $changes5)) && p('0:field,old,new') && e('assignedTo,test2,test1'); // 测试新增actionID 10005 历史记录
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/action/read.php b/test/model/action/read.php
index 821a8f6bfb..8c968bf5aa 100755
--- a/test/model/action/read.php
+++ b/test/model/action/read.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -28,4 +29,4 @@ r($action->readTest($objectType[1], $objectID[1])) && p('0:objectType,objectID,r
r($action->readTest($objectType[2], $objectID[2])) && p('0:objectType,objectID,read') && e('productplan,3,1'); // 测试对action 3 进行阅读操作
r($action->readTest($objectType[3], $objectID[3])) && p('0:objectType,objectID,read') && e('release,4,1'); // 测试对action 4 进行阅读操作
r($action->readTest($objectType[4], $objectID[4])) && p('0:objectType,objectID,read') && e('project,5,1'); // 测试对action 5 进行阅读操作
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/action/undelete.php b/test/model/action/undelete.php
index eee51b42b0..c90b7e251d 100755
--- a/test/model/action/undelete.php
+++ b/test/model/action/undelete.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -24,4 +25,4 @@ r($action->undeleteTest($actionIDList[0])) && p('extra') && e('0'); // 测试还
r($action->undeleteTest($actionIDList[1])) && p('extra') && e('0'); // 测试还原action 87
r($action->undeleteTest($actionIDList[2])) && p('extra') && e('0'); // 测试还原action 9
r($action->undeleteTest($actionIDList[3])) && p('extra') && e('1'); // 测试还原未删除action 1
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/action/updatecomment.php b/test/model/action/updatecomment.php
index 26316266b0..7f3e8d1325 100755
--- a/test/model/action/updatecomment.php
+++ b/test/model/action/updatecomment.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -27,4 +28,4 @@ r($action->updateCommentTest($actionIDList[1], $commentList[1])) && p('comment')
r($action->updateCommentTest($actionIDList[2], $commentList[2])) && p('comment') && e('备注3'); // 测试更新action 3的备注
r($action->updateCommentTest($actionIDList[3], $commentList[3])) && p('comment') && e('备注4'); // 测试更新action 4的备注
r($action->updateCommentTest($actionIDList[4], $commentList[4])) && p('comment') && e('备注5'); // 测试更新action 5的备注
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/api/create.php b/test/model/api/create.php
old mode 100644
new mode 100755
index 0c5abf7402..ab436b1ada
--- a/test/model/api/create.php
+++ b/test/model/api/create.php
@@ -10,6 +10,11 @@ title=测试 apiModel->create();
cid=1
pid=1
+测试创建api >> 910
+测试没有lib创建api >> 『API Library』should not be blank.
+测试没有title创建api >> 『Name』should not be blank.
+测试没有path创建api >> 『Request Path』should not be blank.
+
*/
$api = new apiTest();
@@ -46,4 +51,4 @@ $emptyPathApi['path'] = '';
r($api->createTest($normalApi)) && p('lib') && e('910'); //测试创建api
r($api->createTest($emptyLibApi)) && p('lib:0') && e('『API Library』should not be blank.'); //测试没有lib创建api
r($api->createTest($emptyTitleApi)) && p('title:0') && e('『Name』should not be blank.'); //测试没有title创建api
-r($api->createTest($emptyPathApi)) && p('path:0') && e('『Request Path』should not be blank.'); //测试没有path创建api
+r($api->createTest($emptyPathApi)) && p('path:0') && e('『Request Path』should not be blank.'); //测试没有path创建api
\ No newline at end of file
diff --git a/test/model/api/createstruct.php b/test/model/api/createstruct.php
old mode 100644
new mode 100755
index b87296eb06..09ab461963
--- a/test/model/api/createstruct.php
+++ b/test/model/api/createstruct.php
@@ -10,6 +10,9 @@ title=测试 apiModel->createStruct();
cid=1
pid=1
+创建数据结构 >> struct
+创建没有结构名的数据结构 >> 『Name』should not be blank.
+
*/
global $tester;
@@ -32,4 +35,4 @@ $normalStruct->addedBy = $tester->app->user->account;
$normalStruct->addedDate = helper::now();
r($api->createStructTest($normalStruct)) && p('name') && e('struct'); //创建数据结构
-r($api->createStructTest($emptyNameStruct)) && p('name:0') && e('『Name』should not be blank.'); //创建没有结构名的数据结构
+r($api->createStructTest($emptyNameStruct)) && p('name:0') && e('『Name』should not be blank.'); //创建没有结构名的数据结构
\ No newline at end of file
diff --git a/test/model/api/deleterelease.php b/test/model/api/deleterelease.php
old mode 100644
new mode 100755
index 3a55f87ba1..90b7b98fd1
--- a/test/model/api/deleterelease.php
+++ b/test/model/api/deleterelease.php
@@ -10,6 +10,8 @@ title=测试 apiModel->deleteRelease();
cid=1
pid=1
+删除一个创建的发布 >> 0
+
*/
global $tester;
@@ -24,4 +26,4 @@ $normalRelease->addedDate = helper::now();
$release = $api->publishLibTest($normalRelease, false);
-r($api->deleteReleaseTest($release->id, $release->lib)) && p('') && e('0'); //删除一个创建的发布
+r($api->deleteReleaseTest($release->id, $release->lib)) && p('') && e('0'); //删除一个创建的发布
\ No newline at end of file
diff --git a/test/model/api/getapilistbyrelease.php b/test/model/api/getapilistbyrelease.php
old mode 100644
new mode 100755
index 55f80d724c..a32334ed96
--- a/test/model/api/getapilistbyrelease.php
+++ b/test/model/api/getapilistbyrelease.php
@@ -10,6 +10,8 @@ title=测试 apiModel->getApiListByRelease();
cid=1
pid=1
+创建api后创建发布,使用发布查找api >> 910
+
*/
global $tester;
@@ -44,4 +46,4 @@ $normalRelease->addedDate = helper::now();
$apiInfo = $api->createTest($normalApi, false);
$release = $api->publishLibTest($normalRelease, false);
-r($api->getApiListByReleaseTest($release)) && p('0:lib') && e('910'); //创建api后创建发布,使用发布查找api
+r($api->getApiListByReleaseTest($release)) && p('0:lib') && e('910'); //创建api后创建发布,使用发布查找api
\ No newline at end of file
diff --git a/test/model/api/getlibbyid.php b/test/model/api/getlibbyid.php
old mode 100644
new mode 100755
index c884024d4a..15f9ba5aeb
--- a/test/model/api/getlibbyid.php
+++ b/test/model/api/getlibbyid.php
@@ -10,6 +10,8 @@ title=测试 apiModel->getLibById();
cid=1
pid=1
+获取刚创建的api >> 910
+
*/
$api = new apiTest();
@@ -35,4 +37,4 @@ $data = array(
$normalApi = $data;
$apiInfo = $api->createTest($normalApi, false);
-r($api->getLibByIdTest($apiInfo->id)) && p('lib') && e('910'); //获取刚创建的api
+r($api->getLibByIdTest($apiInfo->id)) && p('lib') && e('910'); //获取刚创建的api
\ No newline at end of file
diff --git a/test/model/api/getlistbymoduleid.php b/test/model/api/getlistbymoduleid.php
old mode 100644
new mode 100755
index d463eaa29a..2ab0ac94e1
--- a/test/model/api/getlistbymoduleid.php
+++ b/test/model/api/getlistbymoduleid.php
@@ -10,6 +10,11 @@ title=测试 apiModel->getListByModuleId();
cid=1
pid=1
+通过正常的libID、moduleID、releaseID查询api信息 >> 获取token
+通过正常的libID、moduleID,不传releaseID,查询api信息 >> 获取我的个人信息
+通过正常的libID,不传moduleID、releaseID查询api信息 >> 获取token
+通过不存在的libID,moduleID,releaseID查询api信息 >> 0
+
*/
$api = new apiTest();
@@ -17,4 +22,4 @@ $api = new apiTest();
r($api->getListByModuleIdTest(1, 1, 1)) && p('title') && e('获取token'); //通过正常的libID、moduleID、releaseID查询api信息
r($api->getListByModuleIdTest(1, 1, 0)) && p('title') && e('获取我的个人信息'); //通过正常的libID、moduleID,不传releaseID,查询api信息
r($api->getListByModuleIdTest(1, 0, 0)) && p('title') && e('获取token'); //通过正常的libID,不传moduleID、releaseID查询api信息
-r($api->getListByModuleIdTest(0, 0, 0)) && p('title') && e('0'); //通过不存在的libID,moduleID,releaseID查询api信息
+r($api->getListByModuleIdTest(0, 0, 0)) && p('title') && e('0'); //通过不存在的libID,moduleID,releaseID查询api信息
\ No newline at end of file
diff --git a/test/model/api/getrelease.php b/test/model/api/getrelease.php
old mode 100644
new mode 100755
index a8728da6a8..00ddb36271
--- a/test/model/api/getrelease.php
+++ b/test/model/api/getrelease.php
@@ -10,6 +10,8 @@ title=测试 apiModel->getRelease();
cid=1
pid=1
+获取刚创建的发布 >> Version1
+
*/
global $tester;
@@ -23,4 +25,4 @@ $normalRelease->addedBy = $tester->app->user->account;
$normalRelease->addedDate = helper::now();
$release = $api->publishLibTest($normalRelease, false);
-r($api->getReleaseTest($release->lib)) && p('version') && e('Version1'); //获取刚创建的发布
+r($api->getReleaseTest($release->lib)) && p('version') && e('Version1'); //获取刚创建的发布
\ No newline at end of file
diff --git a/test/model/api/getreleaselistbyapi.php b/test/model/api/getreleaselistbyapi.php
old mode 100644
new mode 100755
index d9a542a37c..503d3397a5
--- a/test/model/api/getreleaselistbyapi.php
+++ b/test/model/api/getreleaselistbyapi.php
@@ -10,6 +10,8 @@ title=测试 apiModel->getReleaseListByApi();
cid=1
pid=1
+获取刚插入的发布信息 >> 910
+
*/
global $tester;
@@ -23,4 +25,4 @@ $normalRelease->addedBy = $tester->app->user->account;
$normalRelease->addedDate = helper::now();
$release = $api->publishLibTest($normalRelease, false);
-r($api->getReleaseListByApiTest($release->lib, $release->id)) && p("{$release->id}:lib") && e('910'); //获取刚插入的发布信息
+r($api->getReleaseListByApiTest($release->lib, $release->id)) && p("{$release->id}:lib") && e('910'); //获取刚插入的发布信息
\ No newline at end of file
diff --git a/test/model/api/getstructbyid.php b/test/model/api/getstructbyid.php
old mode 100644
new mode 100755
index 503b36e58e..6b8fbed502
--- a/test/model/api/getstructbyid.php
+++ b/test/model/api/getstructbyid.php
@@ -10,6 +10,8 @@ title=测试 apiModel->getStructByID();
cid=1
pid=1
+获取刚创建的数据结构 >> struct
+
*/
global $tester;
@@ -24,4 +26,4 @@ $normalStruct->addedBy = $tester->app->user->account;
$normalStruct->addedDate = helper::now();
$struct = $api->createStructTest($normalStruct, false);
-r($api->getStructByIDTest($struct->id)) && p('name') && e('struct'); //获取刚创建的数据结构
+r($api->getStructByIDTest($struct->id)) && p('name') && e('struct'); //获取刚创建的数据结构
\ No newline at end of file
diff --git a/test/model/api/getstructlistbylibid.php b/test/model/api/getstructlistbylibid.php
old mode 100644
new mode 100755
index 33cbd31084..866aa46bf3
--- a/test/model/api/getstructlistbylibid.php
+++ b/test/model/api/getstructlistbylibid.php
@@ -10,6 +10,8 @@ title=测试 apiModel->getStructListByLibID();
cid=1
pid=1
+用libID获取刚插入的数据结构 >> 910
+
*/
global $tester;
@@ -26,4 +28,4 @@ $normalStruct->addedDate = helper::now();
$struct = $api->createStructTest($normalStruct, false);
-r($api->getStructListByLibIDTest($normalStruct->lib)) && p('0:lib') && e('910'); //用libID获取刚插入的数据结构
+r($api->getStructListByLibIDTest($normalStruct->lib)) && p('0:lib') && e('910'); //用libID获取刚插入的数据结构
\ No newline at end of file
diff --git a/test/model/api/getstructlistbyrelease.php b/test/model/api/getstructlistbyrelease.php
old mode 100644
new mode 100755
index 8099c03982..1c3b5e0ce5
--- a/test/model/api/getstructlistbyrelease.php
+++ b/test/model/api/getstructlistbyrelease.php
@@ -10,6 +10,8 @@ title=测试 apiModel->getStructListByRelease();
cid=1
pid=1
+创建api后创建发布,使用发布查找api >> 910
+
*/
global $tester;
@@ -45,4 +47,4 @@ $apiInfo = $api->createTest($normalApi, false);
$release = $api->publishLibTest($normalRelease, false);
r($api->getStructListByReleaseTest($release->lib)) && p('') && e('');
-//r($api->getApiListByReleaseTest($release)) && p('0:lib') && e('910'); //创建api后创建发布,使用发布查找api
+//r($api->getApiListByReleaseTest($release)) && p('0:lib') && e('910'); //创建api后创建发布,使用发布查找api
\ No newline at end of file
diff --git a/test/model/api/publishlib.php b/test/model/api/publishlib.php
old mode 100644
new mode 100755
index e6b0060132..77438e0888
--- a/test/model/api/publishlib.php
+++ b/test/model/api/publishlib.php
@@ -10,6 +10,9 @@ title=测试 apiModel->publishLib();
cid=1
pid=1
+没有版本名的发布 >> 『Version』should not be blank.
+正常的发布 >> Version1
+
*/
global $tester;
@@ -30,4 +33,4 @@ $normalRelease->addedBy = $tester->app->user->account;
$normalRelease->addedDate = helper::now();
r($api->publishLibTest($emptyBuildRelease)) && p('version:0') && e('『Version』should not be blank.'); //没有版本名的发布
-r($api->publishLibTest($normalRelease)) && p('version') && e('Version1'); //正常的发布
+r($api->publishLibTest($normalRelease)) && p('version') && e('Version1'); //正常的发布
\ No newline at end of file
diff --git a/test/model/api/update.php b/test/model/api/update.php
old mode 100644
new mode 100755
index 052c0cf149..4ebba341ba
--- a/test/model/api/update.php
+++ b/test/model/api/update.php
@@ -10,6 +10,8 @@ title=测试 apiModel->update();
cid=1
pid=1
+修改一个刚创建的api >> edittestapi
+
*/
$api = new apiTest();
@@ -50,10 +52,9 @@ $editData = array(
'responseExample' => ''
);
-
$normalApi = $data;
$editApi = $editData;
$apiInfo = $api->createTest($normalApi, false);
-r($api->updateTest($apiInfo->id, $editApi)) && p('0:new') && e('edittestapi'); //修改一个刚创建的api
+r($api->updateTest($apiInfo->id, $editApi)) && p('0:new') && e('edittestapi'); //修改一个刚创建的api
\ No newline at end of file
diff --git a/test/model/api/updatestruct.php b/test/model/api/updatestruct.php
old mode 100644
new mode 100755
index 74e0af5fdd..28cf08cae9
--- a/test/model/api/updatestruct.php
+++ b/test/model/api/updatestruct.php
@@ -10,6 +10,9 @@ title=测试 apiModel->updateStruct();
cid=1
pid=1
+正常的修改 >> editStruct
+没有名称的修改 >> 『Name』should not be blank.
+
*/
global $tester;
@@ -37,4 +40,4 @@ $emptyNameEditStruct['name'] = '';
$struct = $api->createStructTest($normalStruct, false);
r($api->updateStructTest($struct->id, $normalEditStruct, false)) && p('0:new') && e('editStruct'); //正常的修改
-r($api->updateStructTest($struct->id, $emptyNameEditStruct)) && p('name:0') && e('『Name』should not be blank.'); //没有名称的修改
+r($api->updateStructTest($struct->id, $emptyNameEditStruct)) && p('name:0') && e('『Name』should not be blank.'); //没有名称的修改
\ No newline at end of file
diff --git a/test/model/block/getqastatisticparams.php b/test/model/block/getqastatisticparams.php
index e3567adbb4..9920ccfac1 100755
--- a/test/model/block/getqastatisticparams.php
+++ b/test/model/block/getqastatisticparams.php
@@ -10,11 +10,12 @@ title=测试 blockModel->getQaStatisticParams();
cid=1
pid=1
-
+测试name >> 类型
+测试control >> select
*/
$block = new blockTest();
r($block->getQaStatisticParamsTest()) && p('type:name') && e('类型'); //测试name
-r($block->getQaStatisticParamsTest()) && p('type:control') && e('select');//测试control
+r($block->getQaStatisticParamsTest()) && p('type:control') && e('select');//测试control
\ No newline at end of file
diff --git a/test/model/block/getreleaseparams.php b/test/model/block/getreleaseparams.php
index a88bbaff46..b133bb3eec 100755
--- a/test/model/block/getreleaseparams.php
+++ b/test/model/block/getreleaseparams.php
@@ -10,10 +10,10 @@ title=测试 blockModel->getReleaseParams();
cid=1
pid=1
-
+测试name >> 数量,20,input
*/
$block = new blockTest();
-r($block->getReleaseParamsTest()) && p('name,default,control') && e('数量,20,input'); //测试name
+r($block->getReleaseParamsTest()) && p('name,default,control') && e('数量,20,input'); //测试name
\ No newline at end of file
diff --git a/test/model/block/getscrumlistparams.php b/test/model/block/getscrumlistparams.php
index d6469a1283..b8081539a8 100755
--- a/test/model/block/getscrumlistparams.php
+++ b/test/model/block/getscrumlistparams.php
@@ -10,7 +10,11 @@ title=测试 blockModel->getScrumListParams();
cid=1
pid=1
-
+测试name和select >> 类型,select
+测试options >> 未完成
+测试options >> 进行中
+测试options >> 全部
+测试options >> 我参与
*/
@@ -20,4 +24,4 @@ r($block->getScrumListParamsTest()) && p('name,control') && e('类型,select
r($block->getScrumListParamsTest()) && p('options:undone') && e('未完成'); //测试options
r($block->getScrumListParamsTest()) && p('options:doing') && e('进行中'); //测试options
r($block->getScrumListParamsTest()) && p('options:all') && e('全部'); //测试options
-r($block->getScrumListParamsTest()) && p('options:involved') && e('我参与'); //测试options
+r($block->getScrumListParamsTest()) && p('options:involved') && e('我参与'); //测试options
\ No newline at end of file
diff --git a/test/model/block/getscrumproductparams.php b/test/model/block/getscrumproductparams.php
index c90dc410fc..f02f985abc 100755
--- a/test/model/block/getscrumproductparams.php
+++ b/test/model/block/getscrumproductparams.php
@@ -16,4 +16,4 @@ pid=1
$block = new blockTest();
-r($block->getScrumProductParamsTest()) && p('count:name;count:default;count:control') && e('数量;20;input'); // 测试获取产品区块的参数
+r($block->getScrumProductParamsTest()) && p('count:name;count:default;count:control') && e('数量;20;input'); // 测试获取产品区块的参数
\ No newline at end of file
diff --git a/test/model/block/getscrumroadmapparams.php b/test/model/block/getscrumroadmapparams.php
index ae3b926dad..190b3053a9 100755
--- a/test/model/block/getscrumroadmapparams.php
+++ b/test/model/block/getscrumroadmapparams.php
@@ -16,4 +16,4 @@ pid=1
$block = new blockTest();
-r($block->getScrumRoadMapParamsTest()) && p() && e('0'); // 测试获取产品路线图区块的参数
+r($block->getScrumRoadMapParamsTest()) && p() && e('0'); // 测试获取产品路线图区块的参数
\ No newline at end of file
diff --git a/test/model/block/getscrumtestparams.php b/test/model/block/getscrumtestparams.php
index 6414903188..53a4694f11 100755
--- a/test/model/block/getscrumtestparams.php
+++ b/test/model/block/getscrumtestparams.php
@@ -16,4 +16,4 @@ pid=1
$block = new blockTest();
-r($block->getScrumTestParamsTest()) && p('count:name;type:name') && e('数量;类型'); // 测试获取测试单区块的参数
+r($block->getScrumTestParamsTest()) && p('count:name;type:name') && e('数量;类型'); // 测试获取测试单区块的参数
\ No newline at end of file
diff --git a/test/model/block/getstatisticparams.php b/test/model/block/getstatisticparams.php
index 4e9aa9b7e8..39321b7b36 100755
--- a/test/model/block/getstatisticparams.php
+++ b/test/model/block/getstatisticparams.php
@@ -10,7 +10,7 @@ title=测试 blockModel->getStatisticParams();
cid=1
pid=1
-获取空区块的参数 >> {"count":{"name":"数量","default":20,"control":"input"}}
+获取空区块的参数 >> {"count":{"name":"数量","default":20,"control":"input"}}
获取产品区块的参数 >> {"count":{"name":"数量","default":20,"control":"input"},"type":{"name":"类型","options":{"noclosed":"未关闭","closed":"已关闭","all":"全部","involved":"我参与"},"control":"select"}}
获取项目区块的参数 >> {"count":{"name":"数量","default":20,"control":"input"},"type":{"name":"类型","options":{"undone":"未完成","doing":"进行中","all":"全部","involved":"我参与的"},"control":"select"}}
获取执行区块的参数 >> {"count":{"name":"数量","default":20,"control":"input"},"type":{"name":"类型","options":{"undone":"未完成","doing":"进行中","all":"所有","involved":"我参与"},"control":"select"}}
@@ -31,4 +31,4 @@ r($data[0]) && p() && e('{"count":{"name":"数量","default":20,"control":"input
r($data[1]) && p() && e('{"count":{"name":"数量","default":20,"control":"input"},"type":{"name":"类型","options":{"noclosed":"未关闭","closed":"已关闭","all":"全部","involved":"我参与"},"control":"select"}}'); // 获取产品区块的参数
r($data[2]) && p() && e('{"count":{"name":"数量","default":20,"control":"input"},"type":{"name":"类型","options":{"undone":"未完成","doing":"进行中","all":"全部","involved":"我参与的"},"control":"select"}}'); // 获取项目区块的参数
r($data[3]) && p() && e('{"count":{"name":"数量","default":20,"control":"input"},"type":{"name":"类型","options":{"undone":"未完成","doing":"进行中","all":"所有","involved":"我参与"},"control":"select"}}'); // 获取执行区块的参数
-r($data[4]) && p() && e('{"count":{"name":"数量","default":20,"control":"input"},"type":{"name":"类型","options":{"noclosed":"未关闭","closed":"已关闭","all":"全部","involved":"我参与"},"control":"select"}}'); // 获取测试区块的参数
+r($data[4]) && p() && e('{"count":{"name":"数量","default":20,"control":"input"},"type":{"name":"类型","options":{"noclosed":"未关闭","closed":"已关闭","all":"全部","involved":"我参与"},"control":"select"}}'); // 获取测试区块的参数
\ No newline at end of file
diff --git a/test/model/block/initblock.php b/test/model/block/initblock.php
index f50d76795f..72cbb1c5cf 100755
--- a/test/model/block/initblock.php
+++ b/test/model/block/initblock.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -58,4 +59,4 @@ r($dataList[6]) && p("blockData:module;blockData:type") && e('qa;');
r($dataList[7]) && p("blockInited;blockversion") && e('1;2'); // 获取空区块版本
r($dataList[7]) && p("blockData") && e('0'); // 获取空区块数据
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/block/save.php b/test/model/block/save.php
index 55720fcf11..85c5f36c72 100755
--- a/test/model/block/save.php
+++ b/test/model/block/save.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -10,7 +11,10 @@ title=测试 blockModel->save();
cid=1
pid=1
-
+测试修改block 名称 >> 欢迎test,my,8,welcome
+测试修改block 模块 >> 我的贡献,my,8,dynamic
+测试修改block 区块 >> 项目统计,my,8,projectteam
+测试修改block 变量 >> 未关闭的产品,product,8,statistic
*/
@@ -51,4 +55,4 @@ r($block->saveTest($changeTitle, $blockID[0], $changeTitle->modules))
r($block->saveTest($changeModules, $blockID[0], $changModules->modules)) && p('title,module,grid,block') && e('我的贡献,my,8,dynamic'); // 测试修改block 模块
r($block->saveTest($changeBlock, $blockID[1], $changeBlock->modules, $changeBlock->moduleBlock)) && p('title,module,grid,block') && e('项目统计,my,8,projectteam'); // 测试修改block 区块
r($block->saveTest($changeParams, $blockID[2], $changeParams->modules, $changeParams->moduleBlock, $module)) && p('title,module,grid,block') && e('未关闭的产品,product,8,statistic'); // 测试修改block 变量
-system('./ztest init');
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/branch/activate.php b/test/model/branch/activate.php
index d6712b8da1..a8f2a83c28 100755
--- a/test/model/branch/activate.php
+++ b/test/model/branch/activate.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -29,4 +30,4 @@ r($branch->activateTest($branchID[2])) && p('id,status') && e('6,active'); //
r($branch->activateTest($branchID[3])) && p('id,status') && e('8,active'); // 测试激活分支 8
r($branch->activateTest($branchID[4])) && p('id,status') && e('10,active'); // 测试激活分支 10
r($branch->activateTest($branchID[5])) && p('id,status') && e('1,active'); // 测试激活分支 1
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/branch/batchupdate.php b/test/model/branch/batchupdate.php
index f24301e10d..f9103b18f4 100755
--- a/test/model/branch/batchupdate.php
+++ b/test/model/branch/batchupdate.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -25,4 +26,4 @@ $branch = new branchTest();
r($branch->batchUpdateTest($changeName)) && p('field,old,new') && e('name,分支9,修改分支9的名称'); // 测试批量更新名称
r($branch->batchUpdateTest($changeDesc)) && p('field,old,new') && e('desc,,修改分支9的描述'); // 测试批量更新描述
r($branch->batchUpdateTest($changeStatus)) && p('field,old,new') && e('status,active,closed'); // 测试批量更新状态
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/branch/close.php b/test/model/branch/close.php
index cf8da369d5..88efa4510b 100755
--- a/test/model/branch/close.php
+++ b/test/model/branch/close.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -30,4 +31,4 @@ r($branch->closeTest($branchID[3])) && p('id,status') && e('4,closed'); // 测
r($branch->closeTest($branchID[4])) && p('id,status') && e('5,closed'); // 测试关闭branchID 5
r($branch->closeTest($branchID[5])) && p('id,status') && e('6,closed'); // 测试关闭branchID 6
r($branch->closeTest($branchID[0])) && p('id,status') && e('1,closed'); // 测试重复关闭branchID 1
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/branch/create.php b/test/model/branch/create.php
index a36859b70d..203930993b 100755
--- a/test/model/branch/create.php
+++ b/test/model/branch/create.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -33,4 +34,4 @@ r($branch->createTest($productID, $branch2)) && p('name,desc') && e('新建
r($branch->createTest($productID, $repeatName1)) && p() && e('分支名称已存在'); // 测试新建 重名新建分支1
r($branch->createTest($productID, $repeatName2)) && p() && e('分支名称已存在'); // 测试新建 重名分支1
r($branch->createTest($productID, $emptyName)) && p() && e('『名称』不能为空。'); // 测试新建 名称为空的分支
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/branch/linkbranch4project.php b/test/model/branch/linkbranch4project.php
index bef7c4a536..0dcb9d9cd1 100755
--- a/test/model/branch/linkbranch4project.php
+++ b/test/model/branch/linkbranch4project.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -27,4 +28,4 @@ r($branch->linkBranch4ProjectTest($productID[1])) && p() && e('4'); // 测试关
r($branch->linkBranch4ProjectTest($productID[2])) && p() && e('4'); // 测试关联产品 43 的分支到项目
r($branch->linkBranch4ProjectTest($productID[3])) && p() && e('4'); // 测试关联产品 44 的分支到项目
r($branch->linkBranch4ProjectTest($productID[4])) && p() && e('4'); // 测试关联产品 45 的分支到项目
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/branch/mergebranch.php b/test/model/branch/mergebranch.php
index b51bcfa669..3067c80892 100755
--- a/test/model/branch/mergebranch.php
+++ b/test/model/branch/mergebranch.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -40,4 +41,4 @@ $branch = new branchTest();
r($branch->mergeBranchTest($productID[0], $mergedBranches[0], $mergeBranch1)) && p() && e('2'); // 测试合并分支 1 到 分支 2
r($branch->mergeBranchTest($productID[0], $mergedBranches[1], $mergeBranch2)) && p() && e('2'); // 测试合并分支 2 到 新建分支
r($branch->mergeBranchTest($productID[1], $mergedBranches[2], $mergeBranch3)) && p() && e('12'); // 测试合并分支 3 4 到 主干
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/branch/sort.php b/test/model/branch/sort.php
index d5af203c7c..dfa5a41252 100755
--- a/test/model/branch/sort.php
+++ b/test/model/branch/sort.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -33,4 +34,4 @@ r($branch->sortTest($branches[0], $order)) && p() && e('2,1'); // 测试产品 4
r($branch->sortTest($branches[1], $order)) && p() && e('4,3'); // 测试产品 42 order 排序
r($branch->sortTest($branches[2], $order)) && p() && e('6,5'); // 测试产品 43 order 排序
r($branch->sortTest($branches[3], $order)) && p() && e('8,7'); // 测试产品 44 order 排序
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/branch/unlinkbranch4project.php b/test/model/branch/unlinkbranch4project.php
index dba58b6b02..1afc8d226b 100755
--- a/test/model/branch/unlinkbranch4project.php
+++ b/test/model/branch/unlinkbranch4project.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -24,4 +25,4 @@ r($branch->unlinkBranch4ProjectTest($productIDList[0])) && p() && e('0'); // 测
r($branch->unlinkBranch4ProjectTest($productIDList[1])) && p() && e('0'); // 测试产品 42 转为普通产品接触分支关联
r($branch->unlinkBranch4ProjectTest($productIDList[2])) && p() && e('0'); // 测试产品 43 转为普通产品接触分支关联
r($branch->unlinkBranch4ProjectTest($productIDList[3])) && p() && e('0'); // 测试产品 44 45 转为普通产品接触分支关联
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/branch/update.php b/test/model/branch/update.php
index e75ab4056b..9cb4d38654 100755
--- a/test/model/branch/update.php
+++ b/test/model/branch/update.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -30,4 +31,4 @@ r($branch->updateTest($changeStatus)) && p('0:field,old,new') && e('status,activ
r($branch->updateTest($changeDesc)) && p('0:field,old,new') && e('desc,,修改后的分支1描述'); // 测试修改分支描述
r($branch->updateTest($emptyName)) && p('name:0') && e('『名称』不能为空。'); // 测试修改分支名称
r($branch->updateTest($repeatName)) && p('name:0') && e('分支名称已存在'); // 测试修改分支名称
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/activate.php b/test/model/bug/activate.php
index 9c308f403c..6240cced21 100755
--- a/test/model/bug/activate.php
+++ b/test/model/bug/activate.php
@@ -2,6 +2,7 @@
switchDB();
/**
@@ -9,16 +10,15 @@ title=bugModel->activate();
cid=1
pid=1
-测试激活状态为active的bug1 >> activatedCount,0,1
-测试激活状态为active的bug2 >> activatedCount,0,1
+测试激活状态为active的bug1 >> activatedCount,0,1
+测试激活状态为active的bug2 >> activatedCount,0,1
测试激活状态为resolved的bug51 >> assignedTo,dev1,admin;activatedCount,0,1
测试激活状态为resolved的bug52 >> assignedTo,dev1,admin;activatedCount,0,1
-测试激活状态为closed的bug81 >> assignedTo,test1,admin;activatedCount,0,1
-测试激活状态为closed的bug82 >> assignedTo,test1,admin;activatedCount,0,1
+测试激活状态为closed的bug81 >> assignedTo,test1,admin;activatedCount,0,1
+测试激活状态为closed的bug82 >> assignedTo,test1,admin;activatedCount,0,1
*/
-
$bugIDList = array('1', '2', '51', '52', '81', '82');
$bug=new bugTest();
@@ -28,4 +28,4 @@ r($bug->activateObject($bugIDList[2])) && p('0:field,old,new;2:field,old,new') &
r($bug->activateObject($bugIDList[3])) && p('0:field,old,new;2:field,old,new') && e('assignedTo,dev1,admin;activatedCount,0,1'); // 测试激活状态为resolved的bug52
r($bug->activateObject($bugIDList[4])) && p('0:field,old,new;2:field,old,new') && e('assignedTo,test1,admin;activatedCount,0,1'); // 测试激活状态为closed的bug81
r($bug->activateObject($bugIDList[5])) && p('0:field,old,new;2:field,old,new') && e('assignedTo,test1,admin;activatedCount,0,1'); // 测试激活状态为closed的bug82
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/assign.php b/test/model/bug/assign.php
index 4dec264826..16806378cc 100755
--- a/test/model/bug/assign.php
+++ b/test/model/bug/assign.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -10,12 +11,12 @@ title=bugModel->assign();
cid=1
pid=1
-指派bugID为1的bug >> assignedTo,admin,user92
-指派bugID为2的bug >> assignedTo,admin,user93
-指派bugID为3的bug >> assignedTo,admin,user94
-指派bugID为4的bug >> assignedTo,admin,user95
-指派bugID为51的bug >> assignedTo,dev1,user96
-指派bugid为81的bug >> assignedTo,test1,user97
+指派bugID为1的bug >> assignedTo,admin,user92
+指派bugID为2的bug >> assignedTo,admin,user93
+指派bugID为3的bug >> assignedTo,admin,user94
+指派bugID为4的bug >> assignedTo,admin,user95
+指派bugID为51的bug >> assignedTo,dev1,user96
+指派bugID为81的bug >> assignedTo,test1,user97
指派人不发生变化的bug >> 0
*/
@@ -37,4 +38,4 @@ r($bug->assignTest($bugIDlist[3],$bug4)) && p('0:field,old,new') && e('assigned
r($bug->assignTest($bugIDlist[4],$bug51)) && p('0:field,old,new') && e('assignedTo,dev1,user96'); // 指派bugID为51的bug
r($bug->assignTest($bugIDlist[5],$bug81)) && p('0:field,old,new') && e('assignedTo,test1,user97'); // 指派bugID为81的bug
r($bug->assignTest($bugIDlist[5],$bug81)) && p() && e('0'); // 指派人不发生变化的bug
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/batchactivate.php b/test/model/bug/batchactivate.php
index 089982a587..847020e83c 100755
--- a/test/model/bug/batchactivate.php
+++ b/test/model/bug/batchactivate.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -18,4 +19,4 @@ $bugIDList = array('1' => '1', '52' => '53', '82' => '82');
$bug = new bugTest();
r($bug->batchActivateObject($bugIDList)) && p('53:status;82:status') && e('active;active'); // 测试批量激活bug
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/batchchangebranch.php b/test/model/bug/batchchangebranch.php
index 212cddc86d..29a6c1687b 100755
--- a/test/model/bug/batchchangebranch.php
+++ b/test/model/bug/batchchangebranch.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -11,17 +12,17 @@ cid=1
pid=1
修改分支为主干 未发生变化 >> 0
-修改分支为分支11 >> branch,0,11
-修改分支为分支12 >> branch,11,12
+修改分支为分支11 >> branch,0,11
+修改分支为分支12 >> branch,11,12
修改分支为主干 未发生变化 >> 0
-修改分支为分支9 >> branch,0,9
-修改分支为分支10 >> branch,9,10
+修改分支为分支9 >> branch,0,9
+修改分支为分支10 >> branch,9,10
修改分支为主干 未发生变化 >> 0
-修改分支为分支7 >> branch,0,7
-修改分支为分支8 >> branch,7,8
+修改分支为分支7 >> branch,0,7
+修改分支为分支8 >> branch,7,8
修改分支为主干 未发生变化 >> 0
-修改分支为分支37 >> branch,0,37
-修改分支为分支38 >> branch,37,38
+修改分支为分支37 >> branch,0,37
+修改分支为分支38 >> branch,37,38
*/
@@ -35,7 +36,6 @@ $branchList2 = array('0', '9', '10');
$branchList3 = array('0', '7', '8');
$branchList4 = array('0', '37', '38');
-
$bug = new bugTest();
r($bug->batchChangeBranchTest($bugIDList1, $branchList1[0], $bugIDList1[0])) && p() && e('0'); // 修改分支为主干 未发生变化
r($bug->batchChangeBranchTest($bugIDList1, $branchList1[1], $bugIDList1[1])) && p('0:field,old,new') && e('branch,0,11'); // 修改分支为分支11
@@ -49,4 +49,4 @@ r($bug->batchChangeBranchTest($bugIDList3, $branchList3[2], $bugIDList3[2])) &&
r($bug->batchChangeBranchTest($bugIDList4, $branchList4[0], $bugIDList4[0])) && p() && e('0'); // 修改分支为主干 未发生变化
r($bug->batchChangeBranchTest($bugIDList4, $branchList4[1], $bugIDList4[1])) && p('0:field,old,new') && e('branch,0,37'); // 修改分支为分支37
r($bug->batchChangeBranchTest($bugIDList4, $branchList4[2], $bugIDList4[2])) && p('0:field,old,new') && e('branch,37,38'); // 修改分支为分支38
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/batchchangemodule.php b/test/model/bug/batchchangemodule.php
index ee16b9ded9..c7f816942d 100755
--- a/test/model/bug/batchchangemodule.php
+++ b/test/model/bug/batchchangemodule.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -10,29 +11,29 @@ title=测试bugModel->batchChangeModule();
cid=1
pid=1
-修改bug1 2模块为0 >> module,1821,0
-修改bug1 2模块为8 >> module,0,8
-修改bug1 2模块为9 >> module,8,9
-修改bug1 2模块为10 >> module,9,10
-修改bug1 2模块为11 >> module,10,11
+修改bug1 2模块为0 >> module,1821,0
+修改bug1 2模块为8 >> module,0,8
+修改bug1 2模块为9 >> module,8,9
+修改bug1 2模块为10 >> module,9,10
+修改bug1 2模块为11 >> module,10,11
修改bug1 2模块为11 未发生变化 >> 0
-修改bug1 3模块为0 >> module,11,0
-修改bug1 3模块为8 >> module,0,8
-修改bug1 3模块为9 >> module,8,9
-修改bug1 3模块为10 >> module,9,10
-修改bug1 3模块为11 >> module,10,11
+修改bug1 3模块为0 >> module,11,0
+修改bug1 3模块为8 >> module,0,8
+修改bug1 3模块为9 >> module,8,9
+修改bug1 3模块为10 >> module,9,10
+修改bug1 3模块为11 >> module,10,11
修改bug1 3模块为11 未发生变化 >> 0
-修改bug1 4模块为0 >> module,11,0
-修改bug1 4模块为8 >> module,0,8
-修改bug1 4模块为9 >> module,8,9
-修改bug1 4模块为10 >> module,9,10
-修改bug1 4模块为11 >> module,10,11
+修改bug1 4模块为0 >> module,11,0
+修改bug1 4模块为8 >> module,0,8
+修改bug1 4模块为9 >> module,8,9
+修改bug1 4模块为10 >> module,9,10
+修改bug1 4模块为11 >> module,10,11
修改bug1 4模块为11 未发生变化 >> 0
-修改bug2 3模块为0 >> module,11,0
-修改bug2 3模块为8 >> module,0,8
-修改bug2 3模块为9 >> module,8,9
-修改bug2 3模块为10 >> module,9,10
-修改bug2 3模块为11 >> module,10,11
+修改bug2 3模块为0 >> module,11,0
+修改bug2 3模块为8 >> module,0,8
+修改bug2 3模块为9 >> module,8,9
+修改bug2 3模块为10 >> module,9,10
+修改bug2 3模块为11 >> module,10,11
修改bug2 3模块为11 未发生变化 >> 0
*/
@@ -44,7 +45,6 @@ $bugIDList4 = array('2', '3');
$moduleList = array('0', '8', '9', '10', '11');
-
$bug = new bugTest();
r($bug->batchChangeModuleTest($bugIDList1, $moduleList[0], $bugIDList1[0])) && p('0:field,old,new') && e('module,1821,0');// 修改bug1 2模块为0
r($bug->batchChangeModuleTest($bugIDList1, $moduleList[1], $bugIDList1[1])) && p('0:field,old,new') && e('module,0,8'); // 修改bug1 2模块为8
@@ -70,4 +70,4 @@ r($bug->batchChangeModuleTest($bugIDList4, $moduleList[2], $bugIDList4[0])) && p
r($bug->batchChangeModuleTest($bugIDList4, $moduleList[3], $bugIDList4[1])) && p('0:field,old,new') && e('module,9,10'); // 修改bug2 3模块为10
r($bug->batchChangeModuleTest($bugIDList4, $moduleList[4], $bugIDList4[0])) && p('0:field,old,new') && e('module,10,11'); // 修改bug2 3模块为11
r($bug->batchChangeModuleTest($bugIDList4, $moduleList[4], $bugIDList4[1])) && p() && e('0'); // 修改bug2 3模块为11 未发生变化
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/batchchangeplan.php b/test/model/bug/batchchangeplan.php
index c4e8a13038..788d3c71fd 100755
--- a/test/model/bug/batchchangeplan.php
+++ b/test/model/bug/batchchangeplan.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -11,17 +12,17 @@ cid=1
pid=1
修改计划为0 未发生变化 >> 0
-修改计划为计划1 >> plan,0,1
-修改计划为计划2 >> plan,1,2
+修改计划为计划1 >> plan,0,1
+修改计划为计划2 >> plan,1,2
修改计划为0 未发生变化 >> 0
-修改计划为计划1 >> plan,0,1
-修改计划为计划2 >> plan,1,2
+修改计划为计划1 >> plan,0,1
+修改计划为计划2 >> plan,1,2
修改计划为0 未发生变化 >> 0
-修改计划为计划1 >> plan,0,1
-修改计划为计划2 >> plan,1,2
+修改计划为计划1 >> plan,0,1
+修改计划为计划2 >> plan,1,2
修改计划为0 未发生变化 >> 0
-修改计划为计划1 >> plan,0,1
-修改计划为计划2 >> plan,1,2
+修改计划为计划1 >> plan,0,1
+修改计划为计划2 >> plan,1,2
*/
@@ -32,7 +33,6 @@ $bugIDList4 = array('175', '176', '177');
$planList = array('0', '1', '2');
-
$bug = new bugTest();
r($bug->batchChangePlanTest($bugIDList1, $planList[0], $bugIDList1[0])) && p() && e('0'); // 修改计划为0 未发生变化
r($bug->batchChangePlanTest($bugIDList1, $planList[1], $bugIDList1[1])) && p('0:field,old,new') && e('plan,0,1'); // 修改计划为计划1
@@ -46,4 +46,4 @@ r($bug->batchChangePlanTest($bugIDList3, $planList[2], $bugIDList3[2])) && p('0:
r($bug->batchChangePlanTest($bugIDList4, $planList[0], $bugIDList4[0])) && p() && e('0'); // 修改计划为0 未发生变化
r($bug->batchChangePlanTest($bugIDList4, $planList[1], $bugIDList4[1])) && p('0:field,old,new') && e('plan,0,1'); // 修改计划为计划1
r($bug->batchChangePlanTest($bugIDList4, $planList[2], $bugIDList4[2])) && p('0:field,old,new') && e('plan,1,2'); // 修改计划为计划2
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/batchconfirm.php b/test/model/bug/batchconfirm.php
index ffc7081677..fa89aafd42 100755
--- a/test/model/bug/batchconfirm.php
+++ b/test/model/bug/batchconfirm.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -11,7 +12,8 @@ cid=1
pid=1
批量确认1 3 4 51 81 >> ,1,1,1,1,1
-批量确认2 7 >> ,1,1
+批量确认2 7 >> ,1,1
+
*/
$bugIDlist1 = array('1','3','4','51','81');
@@ -21,4 +23,4 @@ $bugIDlist2 = array('2', '7');
$bug = new bugTest();
r($bug->batchConfirmTest($bugIDlist1)) && p() && e(',1,1,1,1,1'); // 批量确认1 3 4 51 81
r($bug->batchConfirmTest($bugIDlist2)) && p() && e(',1,1'); // 批量确认2 7
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/batchcreate.php b/test/model/bug/batchcreate.php
index affb66104f..cb87c6dd55 100755
--- a/test/model/bug/batchcreate.php
+++ b/test/model/bug/batchcreate.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -10,12 +11,11 @@ title=bugModel->batchCreate();
cid=1
pid=1
-测试正常批量创建bug1 >> 批量bug一,trunk,3,codeerror,3,3,1,101
-测试正常批量创建bug2 >> 批量bug五,trunk,codeerror,3,3,1,101
-测试正常批量创建bug3 >> 批量bug九,1,config,3,3,1,0
-测试短时间内重复批量创建bug >> 0
-测试异常创建bug >> 『影响版本』不能为空。
-
+测试正常批量创建bug1 >> 批量bug一,trunk,3,codeerror,3,3,1,101
+测试正常批量创建bug2 >> 批量bug五,trunk,codeerror,3,3,1,101
+测试正常批量创建bug3 >> 批量bug九,1,config,3,3,1,0
+测试短时间内重复批量创建bug >> 0
+测试异常创建bug >> 『影响版本』不能为空。
*/
@@ -30,7 +30,6 @@ $normal_create1 = array('title' => $title, 'types' => $type, 'openedBuilds' => $
$title = array('批量bug四','批量bug五','批量bug六');
$normal_create2 = array('title' => $title, 'types' => $type, 'openedBuilds' => $openedBuild, 'severity' => $severity);
-
$title = array('批量bug七','批量bug八','批量bug九');
$normal_create3 = array('title' => $title, 'types' => $type, 'openedBuilds' => $openedBuild, 'severity' => $severity);
@@ -45,4 +44,4 @@ r($bug->batchCreateObject($productID, $normal_create3)) && p('2:title,openedBu
r($bug->batchCreateObject($productID, $normal_create1)) && p() && e('0'); // 测试短时间内重复批量创建bug
r($bug->batchCreateObject($productID, $exception_create)) && p('message:0') && e("『影响版本』不能为空。"); // 测试异常创建bug
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/batchresolve.php b/test/model/bug/batchresolve.php
index a31426bd32..06bdbcff07 100755
--- a/test/model/bug/batchresolve.php
+++ b/test/model/bug/batchresolve.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -10,15 +11,15 @@ title=测试bugModel->batchResolve();
cid=1
pid=1
-解决bug1 2 3,解决方式为bydesign >> resolution,,bydesign;status,active,resolved
-解决bug4 5 6,解决方式为duplicate >> resolution,,duplicate;status,active,resolved
-解决bug7 8 9,解决方式为external >> resolution,,external;status,active,resolved
-解决bug10 11 12,解决方式为fixed >> resolution,,fixed;status,active,resolved
-解决bug13 14 15,解决方式为notrepro >> resolution,,notrepro;status,active,resolved
-解决bug16 17 18,解决方式为postponed >> resolution,,postponed;status,active,resolved
+解决bug1 2 3,解决方式为bydesign >> resolution,,bydesign;status,active,resolved
+解决bug4 5 6,解决方式为duplicate >> resolution,,duplicate;status,active,resolved
+解决bug7 8 9,解决方式为external >> resolution,,external;status,active,resolved
+解决bug10 11 12,解决方式为fixed >> resolution,,fixed;status,active,resolved
+解决bug13 14 15,解决方式为notrepro >> resolution,,notrepro;status,active,resolved
+解决bug16 17 18,解决方式为postponed >> resolution,,postponed;status,active,resolved
解决bug19 20 21,解决方式为willnotfix >> resolution,,willnotfix;status,active,resolved
-解决bug22 23 24,解决方式为tostory >> resolution,,tostory;status,active,resolved
-解决bug状态为resolve的bug >> 0
+解决bug22 23 24,解决方式为tostory >> resolution,,tostory;status,active,resolved
+解决bug状态为resolve的bug >> 0
*/
@@ -33,7 +34,6 @@ $bugIDList8 = array('22', '23', '24');
$resolutionList = array('bydesign', 'duplicate', 'external', 'fixed', 'notrepro', 'postponed', 'willnotfix', 'tostory');
-
$bug = new bugTest();
r($bug->batchResolveTest($bugIDList1, $resolutionList[0], $bugIDList1[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,bydesign;status,active,resolved'); // 解决bug1 2 3,解决方式为bydesign
r($bug->batchResolveTest($bugIDList2, $resolutionList[1], $bugIDList2[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,duplicate;status,active,resolved'); // 解决bug4 5 6,解决方式为duplicate
@@ -44,4 +44,4 @@ r($bug->batchResolveTest($bugIDList6, $resolutionList[5], $bugIDList6[0])) && p(
r($bug->batchResolveTest($bugIDList7, $resolutionList[6], $bugIDList7[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,willnotfix;status,active,resolved'); // 解决bug19 20 21,解决方式为willnotfix
r($bug->batchResolveTest($bugIDList8, $resolutionList[7], $bugIDList8[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,tostory;status,active,resolved'); // 解决bug22 23 24,解决方式为tostory
r($bug->batchResolveTest($bugIDList8, $resolutionList[7], $bugIDList8[0])) && p('0:field,old,new;3:field,old,new') && e('0'); // 解决bug状态为resolve的bug
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/batchupdate.php b/test/model/bug/batchupdate.php
index d949c30402..e31ee7e282 100755
--- a/test/model/bug/batchupdate.php
+++ b/test/model/bug/batchupdate.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -25,4 +26,4 @@ $bug = new bugTest();
r($bug->batchUpdateObject($bugIDList, $title[$bugIDList[0]], $type[$bugIDList[0]], $bugIDList[0])) && p('0:field,old,new;1:field,old,new') && e('type,codeerror,config;title,BUG1,批量修改bug一'); // 测试批量修改bug1
r($bug->batchUpdateObject($bugIDList, $title[$bugIDList[1]], $type[$bugIDList[1]], $bugIDList[1])) && p('0:field,old,new;1:field,old,new') && e('type,config,install;title,BUG2,批量修改bug二'); // 测试批量修改bug2
r($bug->batchUpdateObject($bugIDList, $title[$bugIDList[2]], $type[$bugIDList[2]], $bugIDList[2])) && p('0:field,old,new;1:field,old,new') && e('type,install,security;title,BUG3,批量修改bug三'); // 测试批量修改bug3
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/checkdelayedbug.php b/test/model/bug/checkdelayedbug.php
index e00159c9aa..67a4d5caa3 100755
--- a/test/model/bug/checkdelayedbug.php
+++ b/test/model/bug/checkdelayedbug.php
@@ -10,9 +10,9 @@ title=bugModel->checkDelayBug();
cid=1
pid=1
-检查deadline在1天前 resolvedDate不存在 状态为未解决的bug是否延期 >> 1
-检查deadline在1天前 resolvedDate不存在 状态为已解决的bug是否延期 >> 1
-检查deadline在1天前 resolvedDate不存在 状态为已关闭的bug是否延期 >> 1
+检查deadline在1天前 resolvedDate不存在 状态为未解决的bug是否延期 >> 1
+检查deadline在1天前 resolvedDate不存在 状态为已解决的bug是否延期 >> 1
+检查deadline在1天前 resolvedDate不存在 状态为已关闭的bug是否延期 >> 1
检查deadline在3天前 resolvedDate在1天前 状态为未解决的bug是否延期 >> 2
检查deadline在3天前 resolvedDate在1天前 状态为已解决的bug是否延期 >> 2
检查deadline在3天前 resolvedDate在1天前 状态为已关闭的bug是否延期 >> 2
@@ -65,4 +65,4 @@ r($bug->checkDelayBugTest($bug4, $statusList[1])) && p('delay') && e('1'); //
r($bug->checkDelayBugTest($bug4, $statusList[2])) && p('delay') && e('1'); // 检查deadline在3天后 resolvedDate在4天后 状态为已关闭的bug是否延期
r($bug->checkDelayBugTest($bug5, $statusList[0])) && p('delay') && e('0'); // 检查deadline在3天后 resolvedDate在4天前 状态为未解决的bug是否延期
r($bug->checkDelayBugTest($bug5, $statusList[1])) && p('delay') && e('0'); // 检查deadline在3天后 resolvedDate在4天前 状态为已解决的bug是否延期
-r($bug->checkDelayBugTest($bug5, $statusList[2])) && p('delay') && e('0'); // 检查deadline在3天后 resolvedDate在4天前 状态为已关闭的bug是否延期
+r($bug->checkDelayBugTest($bug5, $statusList[2])) && p('delay') && e('0'); // 检查deadline在3天后 resolvedDate在4天前 状态为已关闭的bug是否延期
\ No newline at end of file
diff --git a/test/model/bug/checkdelayedbugs.php b/test/model/bug/checkdelayedbugs.php
index f2fd4bc2f1..dc986eea4d 100755
--- a/test/model/bug/checkdelayedbugs.php
+++ b/test/model/bug/checkdelayedbugs.php
@@ -17,8 +17,6 @@ pid=1
检查deadline在resolvedDate前 状态为已关闭的bug是否延期 >> 15,13,11
检查deadline在resolvedDate后 状态为已关闭的bug是否延期 >> 6,4,2
-
-
*/
$productIDList = array('1', '7','18', '20', '28', '33');
@@ -29,4 +27,4 @@ r($bug->checkDelayedBugsTest($productIDList[1])) && p('delay') && e('2,0,0,25');
r($bug->checkDelayedBugsTest($productIDList[2])) && p('delay') && e('16,14,12'); // 检查deadline在resolvedDate前 状态为已解决的bug是否延期
r($bug->checkDelayedBugsTest($productIDList[3])) && p('delay') && e('4,2,0'); // 检查deadline在resolvedDate后 状态为已解决的bug是否延期
r($bug->checkDelayedBugsTest($productIDList[4])) && p('delay') && e('15,13,11'); // 检查deadline在resolvedDate前 状态为已关闭的bug是否延期
-r($bug->checkDelayedBugsTest($productIDList[5])) && p('delay') && e('6,4,2'); // 检查deadline在resolvedDate后 状态为已关闭的bug是否延期
+r($bug->checkDelayedBugsTest($productIDList[5])) && p('delay') && e('6,4,2'); // 检查deadline在resolvedDate后 状态为已关闭的bug是否延期
\ No newline at end of file
diff --git a/test/model/bug/close.php b/test/model/bug/close.php
index 6e46f2c695..8890514375 100755
--- a/test/model/bug/close.php
+++ b/test/model/bug/close.php
@@ -2,6 +2,7 @@
switchDB();
/**
@@ -9,14 +10,14 @@ title=bugModel->close();
cid=1
pid=1
-测试关闭状态为active的bug1 >> assignedTo,admin,closed;status,active,closed
-测试关闭状态为active的bug2 >> assignedTo,admin,closed;status,active,closed
+测试关闭状态为active的bug1 >> assignedTo,admin,closed;status,active,closed
+测试关闭状态为active的bug2 >> assignedTo,admin,closed;status,active,closed
测试关闭状态为resolved的bug51 >> assignedTo,dev1,closed;status,resolved,closed
测试关闭状态为resolved的bug52 >> assignedTo,dev1,closed;status,resolved,closed
-测试关闭状态为closed的bug81 >> assignedTo,dev1,closed;status,active,closed
-测试关闭状态为closed的bug82 >> assignedTo,dev1,closed;status,active,closed
-*/
+测试关闭状态为closed的bug81 >> assignedTo,dev1,closed;status,active,closed
+测试关闭状态为closed的bug82 >> assignedTo,dev1,closed;status,active,closed
+*/
$bugIDList = array('1', '2', '51', '52', '34', '36');
@@ -27,4 +28,4 @@ r($bug->closeObject($bugIDList[2])) && p('0:field,old,new;1:field,old,new') && e
r($bug->closeObject($bugIDList[3])) && p('0:field,old,new;1:field,old,new') && e('assignedTo,dev1,closed;status,resolved,closed'); // 测试关闭状态为resolved的bug52
r($bug->closeObject($bugIDList[4])) && p('0:field,old,new;1:field,old,new') && e('assignedTo,dev1,closed;status,active,closed'); // 测试关闭状态为closed的bug81
r($bug->closeObject($bugIDList[5])) && p('0:field,old,new;1:field,old,new') && e('assignedTo,dev1,closed;status,active,closed'); // 测试关闭状态为closed的bug82
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/confirm.php b/test/model/bug/confirm.php
index 311839d258..ae2dd106f2 100755
--- a/test/model/bug/confirm.php
+++ b/test/model/bug/confirm.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -11,10 +12,10 @@ cid=1
pid=1
确认指派人变化的bug >> assignedTo,admin,user92;confirmed,0,1
-确认类型变化的bug >> type,install,codeerror;confirmed,0,1
-确认已确认的bug >> assignedTo,admin,user95
+确认类型变化的bug >> type,install,codeerror;confirmed,0,1
+确认已确认的bug >> assignedTo,admin,user95
确认优先级变化的bug >> status,resolved,active;pri,3,2
-确认bug >> status,closed,active
+确认bug >> status,closed,active
*/
@@ -32,4 +33,4 @@ r($bug->confirmTest($bugIDlist[1],$bug3)) && p('0:field,old,new;1:field,old,new'
r($bug->confirmTest($bugIDlist[2],$bug4)) && p('0:field,old,new') && e('assignedTo,admin,user95'); // 确认已确认的bug
r($bug->confirmTest($bugIDlist[3],$bug5)) && p('0:field,old,new;1:field,old,new') && e('status,resolved,active;pri,3,2'); // 确认优先级变化的bug
r($bug->confirmTest($bugIDlist[4],$bug8)) && p('0:field,old,new') && e('status,closed,active'); // 确认bug
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/create.php b/test/model/bug/create.php
index b9197ba2ae..b96e967010 100755
--- a/test/model/bug/create.php
+++ b/test/model/bug/create.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -18,10 +19,10 @@ pid=1
测试正常的创建标准规范bug >> active
测试正常的创建测试脚本bug >> admin
测试正常的创建设计缺陷bug >> 3
-测试正常的创建其他bug >> 2021-03-19
-测试不输入名称创建bug >> 『Bug标题』不能为空。
+测试正常的创建其他bug >> 2021-03-19
+测试不输入名称创建bug >> 『Bug标题』不能为空。
测试不输入影响版本创建bug >> 『影响版本』不能为空。
-测试指派人bug >> user92
+测试指派人bug >> user92
*/
@@ -52,4 +53,4 @@ r($bug->createObject($b_notitle)) && p('title:0') && e('『Bug标题
r($bug->createObject($b_nobuild)) && p('openedBuild:0') && e('『影响版本』不能为空。'); // 测试不输入影响版本创建bug
r($bug->createObject($b_assign)) && p('assignedTo') && e('user92'); // 测试指派人bug
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/createbugfromgitlabissue.php b/test/model/bug/createbugfromgitlabissue.php
index c481435603..53b9b16cc1 100755
--- a/test/model/bug/createbugfromgitlabissue.php
+++ b/test/model/bug/createbugfromgitlabissue.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -10,12 +11,12 @@ title=bugModel->createBugFromGitlabIssue ();
cid=1
pid=1
-测试正常的创建来源于gitlab issue的bug的title >> 问题1
+测试正常的创建来源于gitlab issue的bug的title >> 问题1
测试正常的创建来源于gitlab issue的bug的execution >> 101
-测试正常的创建来源于gitlab issue的bug的pri >> 3
-测试正常的创建来源于gitlab issue的bug的severity >> 3
-测试创建没有标题 来源于gitlab issue的异常bug >> 『Bug标题』不能为空。
-测试短时间内重复创建来源于gitlab issue的bug >> 0
+测试正常的创建来源于gitlab issue的bug的pri >> 3
+测试正常的创建来源于gitlab issue的bug的severity >> 3
+测试创建没有标题 来源于gitlab issue的异常bug >> 『Bug标题』不能为空。
+测试短时间内重复创建来源于gitlab issue的bug >> 0
*/
@@ -25,7 +26,6 @@ $bug1 = new stdclass();
$bug1->title = '问题1';
$bug1->execution = $executionID;
-
$bug2 = new stdclass();
$bug2->title = '问题2';
$bug2->execution = $executionID;
@@ -50,4 +50,4 @@ r($bug->createBugFromGitlabIssueTest($bug4, $executionID)) && p('severity')
r($bug->createBugFromGitlabIssueTest($bug5, $executionID)) && p('title:0') && e('『Bug标题』不能为空。'); // 测试创建没有标题 来源于gitlab issue的异常bug
r($bug->createBugFromGitlabIssueTest($bug1, $executionID)) && p('task') && e('0'); // 测试短时间内重复创建来源于gitlab issue的bug
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/extractaccountsfromlist.php b/test/model/bug/extractaccountsfromlist.php
index 802849e893..2f4bd305c7 100755
--- a/test/model/bug/extractaccountsfromlist.php
+++ b/test/model/bug/extractaccountsfromlist.php
@@ -9,17 +9,15 @@ title=bugModel->extractAccountsFromList();
cid=1
pid=1
-测试提取bug1 2 3的用户 >> admin;
-测试提取bug4 5 6的用户 >> admin;
+测试提取bug1 2 3的用户 >> admin;
+测试提取bug4 5 6的用户 >> admin;
测试提取bug51 52 53的用户 >> admin;dev1
测试提取bug54 55 56的用户 >> admin;dev1
测试提取bug81 82 83的用户 >> admin;test1
测试提取bug84 85 86的用户 >> admin;test1
-
*/
-
$bugIDList1 = array('1', '2', '3');
$bugIDList2 = array('4', '5', '6');
$bugIDList3 = array('51', '52', '53');
@@ -33,4 +31,4 @@ r($bug->extractAccountsFromListTest($bugIDList2)) && p('0;1') && e('admin;');
r($bug->extractAccountsFromListTest($bugIDList3)) && p('0;1') && e('admin;dev1'); // 测试提取bug51 52 53的用户
r($bug->extractAccountsFromListTest($bugIDList4)) && p('0;1') && e('admin;dev1'); // 测试提取bug54 55 56的用户
r($bug->extractAccountsFromListTest($bugIDList5)) && p('0;1') && e('admin;test1'); // 测试提取bug81 82 83的用户
-r($bug->extractAccountsFromListTest($bugIDList6)) && p('0;1') && e('admin;test1'); // 测试提取bug84 85 86的用户
+r($bug->extractAccountsFromListTest($bugIDList6)) && p('0;1') && e('admin;test1'); // 测试提取bug84 85 86的用户
\ No newline at end of file
diff --git a/test/model/bug/extractaccountsfromsingle.php b/test/model/bug/extractaccountsfromsingle.php
index 97b1f68a83..7197276995 100755
--- a/test/model/bug/extractaccountsfromsingle.php
+++ b/test/model/bug/extractaccountsfromsingle.php
@@ -30,7 +30,6 @@ pid=1
*/
-
$bugIDList1 = array('1', '2', '3');
$bugIDList2 = array('4', '5', '6');
$bugIDList3 = array('51', '52', '53');
@@ -56,4 +55,4 @@ r($bug->extractAccountsFromSingleTest($bugIDList5[1])) && p('0;1') && e('admin;t
r($bug->extractAccountsFromSingleTest($bugIDList5[2])) && p('0;1') && e('admin;test1'); // 测试提取bug83的用户
r($bug->extractAccountsFromSingleTest($bugIDList6[0])) && p('0;1') && e('admin;test1'); // 测试提取bug84的用户
r($bug->extractAccountsFromSingleTest($bugIDList6[1])) && p('0;1') && e('admin;test1'); // 测试提取bug85的用户
-r($bug->extractAccountsFromSingleTest($bugIDList6[2])) && p('0;1') && e('admin;test1'); // 测试提取bug86的用户
+r($bug->extractAccountsFromSingleTest($bugIDList6[2])) && p('0;1') && e('admin;test1'); // 测试提取bug86的用户
\ No newline at end of file
diff --git a/test/model/bug/formcustomedbugs.php b/test/model/bug/formcustomedbugs.php
index b962f4bb80..0702fa184f 100755
--- a/test/model/bug/formcustomedbugs.php
+++ b/test/model/bug/formcustomedbugs.php
@@ -10,11 +10,11 @@ title=测试bugModel->formCustomedBugs();
cid=1
pid=1
-获取bug 1 2的module story task case execution名称 >> 产品模块1,软件需求2,0,0,迭代1;产品模块2,软件需求6,0,0,迭代1
-获取bug 3 4的module story task case execution名称 >> 产品模块3,软件需求10,0,0,迭代1;产品模块5,软件需求14,0,0,迭代2
-获取bug 5 6的module story task case execution名称 >> 产品模块6,软件需求18,0,0,迭代2;产品模块7,软件需求22,0,0,迭代2
-获取bug 7 8的module story task case execution名称 >> 产品模块11,软件需求26,0,0,迭代3;产品模块12,软件需求30,0,0,迭代3
-获取bug 9 10的module story task case execution名称 >> 产品模块13,软件需求34,0,0,迭代3;0,软件需求38,0,0,迭代4
+获取bug 1 2的module story task case execution名称 >> 产品模块1,软件需求2,0,0,迭代1;产品模块2,软件需求6,0,0,迭代1
+获取bug 3 4的module story task case execution名称 >> 产品模块3,软件需求10,0,0,迭代1;产品模块5,软件需求14,0,0,迭代2
+获取bug 5 6的module story task case execution名称 >> 产品模块6,软件需求18,0,0,迭代2;产品模块7,软件需求22,0,0,迭代2
+获取bug 7 8的module story task case execution名称 >> 产品模块11,软件需求26,0,0,迭代3;产品模块12,软件需求30,0,0,迭代3
+获取bug 9 10的module story task case execution名称 >> 产品模块13,软件需求34,0,0,迭代3;0,软件需求38,0,0,迭代
*/
@@ -29,4 +29,4 @@ r($bug->formCustomedBugsTest($bugIDList1)) && p('1:module,story,task,case,execut
r($bug->formCustomedBugsTest($bugIDList2)) && p('3:module,story,task,case,execution;4:module,story,task,case,execution') && e('产品模块3,软件需求10,0,0,迭代1;产品模块5,软件需求14,0,0,迭代2'); // 获取bug 3 4的module story task case execution名称
r($bug->formCustomedBugsTest($bugIDList3)) && p('5:module,story,task,case,execution;6:module,story,task,case,execution') && e('产品模块6,软件需求18,0,0,迭代2;产品模块7,软件需求22,0,0,迭代2'); // 获取bug 5 6的module story task case execution名称
r($bug->formCustomedBugsTest($bugIDList4)) && p('7:module,story,task,case,execution;8:module,story,task,case,execution') && e('产品模块11,软件需求26,0,0,迭代3;产品模块12,软件需求30,0,0,迭代3'); // 获取bug 7 8的module story task case execution名称
-r($bug->formCustomedBugsTest($bugIDList5)) && p('9:module,story,task,case,execution;10:module,story,task,case,execution') && e('产品模块13,软件需求34,0,0,迭代3;0,软件需求38,0,0,迭代'); // 获取bug 9 10的module story task case execution名称
+r($bug->formCustomedBugsTest($bugIDList5)) && p('9:module,story,task,case,execution;10:module,story,task,case,execution') && e('产品模块13,软件需求34,0,0,迭代3;0,软件需求38,0,0,迭代'); // 获取bug 9 10的module story task case execution名称
\ No newline at end of file
diff --git a/test/model/bug/getactiveandpostponedbugs.php b/test/model/bug/getactiveandpostponedbugs.php
index b42432686b..95f93a4a7e 100755
--- a/test/model/bug/getactiveandpostponedbugs.php
+++ b/test/model/bug/getactiveandpostponedbugs.php
@@ -13,17 +13,15 @@ pid=1
查询产品1 2 3 不存在的产品1000001 execution为101下的bug >> BUG3,BUG2,BUG1
查询产品1 2 3 不存在的产品1000001 execution为102下的bug >> BUG6,BUG5,BUG4
查询产品1 2 3 不存在的产品1000001 execution为103下的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
-查询产品1 3 execution为101下的bug >> BUG3,BUG2,BUG1
-查询产品1 3 execution为102下的bug >> 0
-查询产品1 3 execution为103下的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
-查询产品1 execution为101下的bug >> BUG3,BUG2,BUG1
-查询产品1 execution为102下的bug >> 0
-查询产品1 execution为103下的bug >> 0
-查询不存在的产品1000001 execution为101下的bug >> 0
-查询不存在的产品1000001 execution为102下的bug >> 0
-查询不存在的产品1000001 execution为103下的bug >> 0
-
-
+查询产品1 3 execution为101下的bug >> BUG3,BUG2,BUG1
+查询产品1 3 execution为102下的bug >> 0
+查询产品1 3 execution为103下的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
+查询产品1 execution为101下的bug >> BUG3,BUG2,BUG1
+查询产品1 execution为102下的bug >> 0
+查询产品1 execution为103下的bug >> 0
+查询不存在的产品1000001 execution为101下的bug >> 0
+查询不存在的产品1000001 execution为102下的bug >> 0
+查询不存在的产品1000001 execution为103下的bug >> 0
*/
@@ -43,4 +41,4 @@ r($bug->getActiveAndPostponedBugsTest($productIDList[2], $executionList[1])) &&
r($bug->getActiveAndPostponedBugsTest($productIDList[2], $executionList[2])) && p() && e('0'); // 查询产品1 execution为103下的bug
r($bug->getActiveAndPostponedBugsTest($productIDList[3], $executionList[0])) && p() && e('0'); // 查询不存在的产品1000001 execution为101下的bug
r($bug->getActiveAndPostponedBugsTest($productIDList[3], $executionList[1])) && p() && e('0'); // 查询不存在的产品1000001 execution为102下的bug
-r($bug->getActiveAndPostponedBugsTest($productIDList[3], $executionList[2])) && p() && e('0'); // 查询不存在的产品1000001 execution为103下的bug
+r($bug->getActiveAndPostponedBugsTest($productIDList[3], $executionList[2])) && p() && e('0'); // 查询不存在的产品1000001 execution为103下的bug
\ No newline at end of file
diff --git a/test/model/bug/getactivebugs.php b/test/model/bug/getactivebugs.php
index 107358a95a..6cdfddbb47 100755
--- a/test/model/bug/getactivebugs.php
+++ b/test/model/bug/getactivebugs.php
@@ -10,19 +10,18 @@ title=bugModel->getActiveBugs();
cid=1
pid=1
-查询产品1 2 3 不存在的产品1000001下 且不排除bug的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG2,BUG1
-查询产品1 2 3 不存在的产品1000001下 且排除bug2的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG1
+查询产品1 2 3 不存在的产品1000001下 且不排除bug的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG2,BUG1
+查询产品1 2 3 不存在的产品1000001下 且排除bug2的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG1
查询产品1 2 3 不存在的产品1000001下 且排除bug3 8的bug >> BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG2,BUG1
-查询产品1 3下 且不排除bug的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG2,BUG1
-查询产品1 3下 且排除bug2的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG1
-查询产品1 3下 且排除bug3 8的bug >> BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG2,BUG1
-查询产品1下 且不排除bug的bug >> BUG3,BUG2,BUG1
-查询产品1下 且排除bug2的bug >> BUG3,BUG1
-查询产品1下 且排除bug3 8的bug >> BUG2,BUG1
-查询不存在的产品1000001下 且不排除bug的bug >> 0
-查询不存在的产品1000001下 且排除bug2的bug >> 0
-查询不存在的产品1000001下 且排除bug3 8的bug >> 0
-
+查询产品1 3下 且不排除bug的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG2,BUG1
+查询产品1 3下 且排除bug2的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG1
+查询产品1 3下 且排除bug3 8的bug >> BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG2,BUG1
+查询产品1下 且不排除bug的bug >> BUG3,BUG2,BUG1
+查询产品1下 且排除bug2的bug >> BUG3,BUG1
+查询产品1下 且排除bug3 8的bug >> BUG2,BUG1
+查询不存在的产品1000001下 且不排除bug的bug >> 0
+查询不存在的产品1000001下 且排除bug2的bug >> 0
+查询不存在的产品1000001下 且排除bug3 8的bug >> 0
*/
@@ -42,4 +41,4 @@ r($bug->getActiveBugsTest($productIDList[2], $statusList[1])) && p() && e('BUG3,
r($bug->getActiveBugsTest($productIDList[2], $statusList[2])) && p() && e('BUG2,BUG1'); // 查询产品1下 且排除bug3 8的bug
r($bug->getActiveBugsTest($productIDList[3], $statusList[0])) && p() && e('0'); // 查询不存在的产品1000001下 且不排除bug的bug
r($bug->getActiveBugsTest($productIDList[3], $statusList[1])) && p() && e('0'); // 查询不存在的产品1000001下 且排除bug2的bug
-r($bug->getActiveBugsTest($productIDList[3], $statusList[2])) && p() && e('0'); // 查询不存在的产品1000001下 且排除bug3 8的bug
+r($bug->getActiveBugsTest($productIDList[3], $statusList[2])) && p() && e('0'); // 查询不存在的产品1000001下 且排除bug3 8的bug
\ No newline at end of file
diff --git a/test/model/bug/getallbugs.php b/test/model/bug/getallbugs.php
index 075176cbae..d3c6502ef9 100755
--- a/test/model/bug/getallbugs.php
+++ b/test/model/bug/getallbugs.php
@@ -11,14 +11,14 @@ cid=1
pid=1
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与模块1821, 1825下的bug >> BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下的bug >> 0
-查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
-查询产品1 3与模块1821, 1825下的bug >> BUG1
-查询产品1 3与模块不存在的模块1000001下的bug >> 0
-查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 0
-查询不存在的产品10001 与模块1821, 1825下的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001下的bug >> 0
+查询产品1 2 3 不存在的产品10001 与模块1821, 1825下的bug >> BUG4,BUG1
+查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下的bug >> 0
+查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
+查询产品1 3与模块1821, 1825下的bug >> BUG1
+查询产品1 3与模块不存在的模块1000001下的bug >> 0
+查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 0
+查询不存在的产品10001 与模块1821, 1825下的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001下的bug >> 0
*/
@@ -35,4 +35,4 @@ r($bug->getAllBugsTest($productIDList[1], $moduleIDList[1])) && p('title') && e(
r($bug->getAllBugsTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下的bug
r($bug->getAllBugsTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug
r($bug->getAllBugsTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下的bug
-r($bug->getAllBugsTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下的bug
+r($bug->getAllBugsTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下的bug
\ No newline at end of file
diff --git a/test/model/bug/getallprojectids.php b/test/model/bug/getallprojectids.php
index dd6ff6101d..0ffecd572a 100755
--- a/test/model/bug/getallprojectids.php
+++ b/test/model/bug/getallprojectids.php
@@ -26,4 +26,4 @@ r($bug->getAllProjectIdsTest()) && p("$projectIDList[1]") && e('12'); // 测试p
r($bug->getAllProjectIdsTest()) && p("$projectIDList[2]") && e('13'); // 测试projectId为13的项目
r($bug->getAllProjectIdsTest()) && p("$projectIDList[3]") && e('41'); // 测试projectId为41的项目
r($bug->getAllProjectIdsTest()) && p("$projectIDList[4]") && e('51'); // 测试projectId为51的项目
-r($bug->getAllProjectIdsTest()) && p("$projectIDList[5]") && e('91'); // 测试projectId为91的项目
+r($bug->getAllProjectIdsTest()) && p("$projectIDList[5]") && e('91'); // 测试projectId为91的项目
\ No newline at end of file
diff --git a/test/model/bug/getbuginfofromresult.php b/test/model/bug/getbuginfofromresult.php
index 78a8965cc5..6fb2899b2e 100755
--- a/test/model/bug/getbuginfofromresult.php
+++ b/test/model/bug/getbuginfofromresult.php
@@ -9,23 +9,21 @@ title=bugModel->getBugInfoFromResult();
cid=1
pid=1
-测试获取runID为0 caseID为2的bug >> 这个是测试用例2
-测试获取runID为0 caseID为6的bug >> 这个是测试用例6
-测试获取runID为0 caseID为10的bug >> 这个是测试用例10
-测试获取runID为2 caseID为2的bug >> 这个是测试用例2
-测试获取runID为2 caseID为6的bug >> 这个是测试用例6
-测试获取runID为2 caseID为10的bug >> 这个是测试用例10
-测试获取runID为6 caseID为2的bug >> 这个是测试用例2
-测试获取runID为6 caseID为6的bug >> 这个是测试用例6
-测试获取runID为6 caseID为10的bug >> 这个是测试用例10
-测试获取runID为10 caseID为2的bug >> 这个是测试用例2
-测试获取runID为10 caseID为6的bug >> 这个是测试用例6
+测试获取runID为0 caseID为2的bug >> 这个是测试用例2
+测试获取runID为0 caseID为6的bug >> 这个是测试用例6
+测试获取runID为0 caseID为10的bug >> 这个是测试用例10
+测试获取runID为2 caseID为2的bug >> 这个是测试用例2
+测试获取runID为2 caseID为6的bug >> 这个是测试用例6
+测试获取runID为2 caseID为10的bug >> 这个是测试用例10
+测试获取runID为6 caseID为2的bug >> 这个是测试用例2
+测试获取runID为6 caseID为6的bug >> 这个是测试用例6
+测试获取runID为6 caseID为10的bug >> 这个是测试用例10
+测试获取runID为10 caseID为2的bug >> 这个是测试用例2
+测试获取runID为10 caseID为6的bug >> 这个是测试用例6
测试获取runID为10 caseID为10的bug >> 这个是测试用例10
-
*/
-
$runIDList = array('0', '2', '6', '10');
$caseIDList = array('0', '2', '6', '10');
@@ -42,4 +40,4 @@ r($bug->getBugInfoFromResultTest($runIDList[2], $caseIDList[2])) && p() && e('
r($bug->getBugInfoFromResultTest($runIDList[2], $caseIDList[3])) && p() && e('这个是测试用例10'); // 测试获取runID为6 caseID为10的bug
r($bug->getBugInfoFromResultTest($runIDList[3], $caseIDList[1])) && p() && e('这个是测试用例2'); // 测试获取runID为10 caseID为2的bug
r($bug->getBugInfoFromResultTest($runIDList[3], $caseIDList[2])) && p() && e('这个是测试用例6'); // 测试获取runID为10 caseID为6的bug
-r($bug->getBugInfoFromResultTest($runIDList[3], $caseIDList[3])) && p() && e('这个是测试用例10'); // 测试获取runID为10 caseID为10的bug
+r($bug->getBugInfoFromResultTest($runIDList[3], $caseIDList[3])) && p() && e('这个是测试用例10'); // 测试获取runID为10 caseID为10的bug
\ No newline at end of file
diff --git a/test/model/bug/getbugquery.php b/test/model/bug/getbugquery.php
index cd4d92ccc1..045f15f3df 100755
--- a/test/model/bug/getbugquery.php
+++ b/test/model/bug/getbugquery.php
@@ -37,4 +37,4 @@ r($bug->getBugQueryTest($bugQuery[2])) && p() && e(" `resolvedDate` != '0000-00
r($bug->getBugQueryTest($bugQuery[3])) && p() && e(" `closedDate` != '0000-00-00 00:00:00' AND `closedDate` <= '2022-01-01'"); // 查询 `closedDate` = '2022-01-01' 的bugQuery
r($bug->getBugQueryTest($bugQuery[4])) && p() && e(" `story` IN (2,12,20,21,22,23,24,25,26,27,28,29,32,42,52,62,70,71,72,73,74,75,76,77,78,79,82,92,102,112,120,121,122,123,124,125,126,127,128,129,132,142,152,162,172,182,192,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,302,312,320,321,322,323,324,325,326,327,328,329,332,342,352,362,372,382,392,402,412,420,421,422,423,424,425,426,427,428,429,432,442) AND `story` != 0"); // 查询 `story` LIKE '%abc%' 的bugQuery
r($bug->getBugQueryTest($bugQuery[5])) && p() && e(" `story` NOT IN (2,12,20,21,22,23,24,25,26,27,28,29,32,42,52,62,70,71,72,73,74,75,76,77,78,79,82,92,102,112,120,121,122,123,124,125,126,127,128,129,132,142,152,162,172,182,192,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,302,312,320,321,322,323,324,325,326,327,328,329,332,342,352,362,372,382,392,402,412,420,421,422,423,424,425,426,427,428,429,432,442) AND `story` != 0"); // 查询 `story` NOT LIKE '%abc%' 的bugQuery
-r($bug->getBugQueryTest($bugQuery[6])) && p() && e("`product` = '1' and `project` = '1' and `story` > 'abc' AND `story` != 0"); // 查询 `product` = '1' and `project` = '1' and `story` > 'abc' 的bugQuery
+r($bug->getBugQueryTest($bugQuery[6])) && p() && e("`product` = '1' and `project` = '1' and `story` > 'abc' AND `story` != 0"); // 查询 `product` = '1' and `project` = '1' and `story` > 'abc' 的bugQuery
\ No newline at end of file
diff --git a/test/model/bug/getbugs.php b/test/model/bug/getbugs.php
index 555f068e81..4ba2d539a2 100755
--- a/test/model/bug/getbugs.php
+++ b/test/model/bug/getbugs.php
@@ -10,17 +10,17 @@ title=bugModel->getBugs();
cid=1
pid=1
-查询正常产品 没有分支 查看全部 没有模块的全部bug的标题拼接1 >> BUG3,BUG2,BUG1
+查询正常产品 没有分支 查看全部 没有模块的全部bug的标题拼接1 >> BUG3,BUG2,BUG1
查询正常产品 不存在的分支主干 查看全部 没有模块的全部bug的标题拼接 >> BUG3,BUG2,BUG1
-查询正常产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接 >> BUG3,BUG2,BUG1
-查询正常产品 没有分支 查看全部 模块1821的全部bug的标题拼接 >> BUG1
-查询正常产品 没有分支 查看全部 模块不存在的全部bug的标题拼接 >> BUG3,BUG2,BUG1
-查询多分支产品 没有分支 查看全部 没有模块的全部bug的标题拼接59 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175
-查询多分支产品 主干 查看全部 没有模块的全部bug的标题拼接 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175
-查询多分支产品 分支37 查看全部 没有模块的全部bug的标题拼接 >> 0
-查询多分支产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175
-查询多分支产品 没有分支 查看全部 模块2053的全部bug的标题拼接 >> 0
-查询不存在的产品的全部bug的标题拼接 >> 0
+查询正常产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接 >> BUG3,BUG2,BUG1
+查询正常产品 没有分支 查看全部 模块1821的全部bug的标题拼接 >> BUG1
+查询正常产品 没有分支 查看全部 模块不存在的全部bug的标题拼接 >> BUG3,BUG2,BUG1
+查询多分支产品 没有分支 查看全部 没有模块的全部bug的标题拼接59 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175
+查询多分支产品 主干 查看全部 没有模块的全部bug的标题拼接 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175
+查询多分支产品 分支37 查看全部 没有模块的全部bug的标题拼接 >> 0
+查询多分支产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接 >> BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175
+查询多分支产品 没有分支 查看全部 模块2053的全部bug的标题拼接 >> 0
+查询不存在的产品的全部bug的标题拼接 >> 0
*/
@@ -41,4 +41,4 @@ r($bug->getBugsTest($productIDList[1], $branchList[1], $browseTypeList[0], $modu
r($bug->getBugsTest($productIDList[1], $branchList[2], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('0'); // 查询多分支产品 分支37 查看全部 没有模块的全部bug的标题拼接
r($bug->getBugsTest($productIDList[1], $branchList[0], $browseTypeList[1], $moduleIDList[0])) && p('title') && e('BUG177,bug176,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();175'); // 查询多分支产品 没有分支 查看未关闭 没有模块的全部bug的标题拼接
r($bug->getBugsTest($productIDList[1], $branchList[0], $browseTypeList[0], $moduleIDList[2])) && p('title') && e('0'); // 查询多分支产品 没有分支 查看全部 模块2053的全部bug的标题拼接
-r($bug->getBugsTest($productIDList[2], $branchList[0], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品的全部bug的标题拼接
+r($bug->getBugsTest($productIDList[2], $branchList[0], $browseTypeList[0], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品的全部bug的标题拼接
\ No newline at end of file
diff --git a/test/model/bug/getbyassignedbyme.php b/test/model/bug/getbyassignedbyme.php
index 7c416836ae..ed27bcac62 100755
--- a/test/model/bug/getbyassignedbyme.php
+++ b/test/model/bug/getbyassignedbyme.php
@@ -11,14 +11,14 @@ cid=1
pid=1
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我指派的bug >> 0
-查询产品1 2 3 不存在的产品10001 与模块1821, 1825下由我指派的bug >> 0
-查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下由我指派的bug >> 0
-查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下由我指派的bug >> 0
-查询产品1 3与模块1821, 1825下由我指派的bug >> 0
-查询产品1 3与模块不存在的模块1000001下由我指派的bug >> 0
-查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我指派的bug >> 0
-查询不存在的产品10001 与模块1821, 1825下由我指派的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001下由我指派的bug >> 0
+查询产品1 2 3 不存在的产品10001 与模块1821, 1825下由我指派的bug >> 0
+查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下由我指派的bug >> 0
+查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下由我指派的bug >> 0
+查询产品1 3与模块1821, 1825下由我指派的bug >> 0
+查询产品1 3与模块不存在的模块1000001下由我指派的bug >> 0
+查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我指派的bug >> 0
+查询不存在的产品10001 与模块1821, 1825下由我指派的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001下由我指派的bug >> 0
*/
@@ -35,4 +35,4 @@ r($bug->getByAssignedbymeTest($productIDList[1], $moduleIDList[1])) && p('title'
r($bug->getByAssignedbymeTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下由我指派的bug
r($bug->getByAssignedbymeTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我指派的bug
r($bug->getByAssignedbymeTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下由我指派的bug
-r($bug->getByAssignedbymeTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下由我指派的bug
+r($bug->getByAssignedbymeTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下由我指派的bug
\ No newline at end of file
diff --git a/test/model/bug/getbyassigntome.php b/test/model/bug/getbyassigntome.php
index b726006ef7..2747ff9c35 100755
--- a/test/model/bug/getbyassigntome.php
+++ b/test/model/bug/getbyassigntome.php
@@ -11,14 +11,14 @@ cid=1
pid=1
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与模块1821, 1825下指派给我的bug >> BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下指派给我的bug >> 0
-查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
-查询产品1 3与模块1821, 1825下指派给我的bug >> BUG1
-查询产品1 3与模块不存在的模块1000001下指派给我的bug >> 0
-查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug >> 0
-查询不存在的产品10001 与模块1821, 1825下指派给我的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001下指派给我的bug >> 0
+查询产品1 2 3 不存在的产品10001 与模块1821, 1825下指派给我的bug >> BUG4,BUG1
+查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下指派给我的bug >> 0
+查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
+查询产品1 3与模块1821, 1825下指派给我的bug >> BUG1
+查询产品1 3与模块不存在的模块1000001下指派给我的bug >> 0
+查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug >> 0
+查询不存在的产品10001 与模块1821, 1825下指派给我的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001下指派给我的bug >> 0
*/
@@ -35,4 +35,4 @@ r($bug->getByAssigntomeTest($productIDList[1], $moduleIDList[1])) && p('title')
r($bug->getByAssigntomeTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下指派给我的bug
r($bug->getByAssigntomeTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下指派给我的bug
r($bug->getByAssigntomeTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下指派给我的bug
-r($bug->getByAssigntomeTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下指派给我的bug
+r($bug->getByAssigntomeTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下指派给我的bug
\ No newline at end of file
diff --git a/test/model/bug/getbyassigntonull.php b/test/model/bug/getbyassigntonull.php
index 53b5bee530..a08622c0c1 100755
--- a/test/model/bug/getbyassigntonull.php
+++ b/test/model/bug/getbyassigntonull.php
@@ -11,8 +11,8 @@ cid=1
pid=1
查询产品1 581 58 不存在的产品10001下由我创建的bug >> BUG174,BUG173,BUG172,BUG93,BUG92,BUG91
-查询产品1 58下由我创建的bug >> BUG174,BUG173,BUG172
-查询不存在的产品10001下由我创建的bug >> 0
+查询产品1 58下由我创建的bug >> BUG174,BUG173,BUG172
+查询不存在的产品10001下由我创建的bug >> 0
*/
@@ -22,4 +22,4 @@ $bug=new bugTest();
r($bug->getByAssigntonullTest($productIDList[0])) && p('title') && e('BUG174,BUG173,BUG172,BUG93,BUG92,BUG91'); // 查询产品1 581 58 不存在的产品10001下由我创建的bug
r($bug->getByAssigntonullTest($productIDList[1])) && p('title') && e('BUG174,BUG173,BUG172'); // 查询产品1 58下由我创建的bug
-r($bug->getByAssigntonullTest($productIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001下由我创建的bug
+r($bug->getByAssigntonullTest($productIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001下由我创建的bug
\ No newline at end of file
diff --git a/test/model/bug/getbyid.php b/test/model/bug/getbyid.php
index 159ed6e334..28b4ff1bef 100755
--- a/test/model/bug/getbyid.php
+++ b/test/model/bug/getbyid.php
@@ -10,26 +10,26 @@ title=bugModel->getById();
cid=1
pid=1
-查询id为1的bug的title >> BUG1
-查询id为1的bug的status >> active
-查询id为1的bug的plan >> 1
-查询id为1的bug的module >> 1821
-查询id为1的bug的story >> 2
-查询id为4的bug的title >> BUG4
-查询id为4的bug的status >> active
-查询id为4的bug的plan >> 4
-查询id为4的bug的module >> 1825
-查询id为4的bug的story >> 14
-查询id为7的bug的title >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
-查询id为7的bug的status >> active
-查询id为7的bug的plan >> 7
-查询id为7的bug的module >> 1831
-查询id为7的bug的story >> 26
-查询id为不存在的1000001的bug的title >> 0
+查询id为1的bug的title >> BUG1
+查询id为1的bug的status >> active
+查询id为1的bug的plan >> 1
+查询id为1的bug的module >> 1821
+查询id为1的bug的story >> 2
+查询id为4的bug的title >> BUG4
+查询id为4的bug的status >> active
+查询id为4的bug的plan >> 4
+查询id为4的bug的module >> 1825
+查询id为4的bug的story >> 14
+查询id为7的bug的title >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
+查询id为7的bug的status >> active
+查询id为7的bug的plan >> 7
+查询id为7的bug的module >> 1831
+查询id为7的bug的story >> 26
+查询id为不存在的1000001的bug的title >> 0
查询id为不存在的1000001的bug的status >> 0
-查询id为不存在的1000001的bug的plan >> 0
+查询id为不存在的1000001的bug的plan >> 0
查询id为不存在的1000001的bug的module >> 0
-查询id为不存在的1000001的bug的story >> 0
+查询id为不存在的1000001的bug的story >> 0
*/
@@ -56,4 +56,4 @@ r($bug->getByIdTest($bugIDList[3])) && p('title') && e('0'); // 查询id为不
r($bug->getByIdTest($bugIDList[3])) && p('status') && e('0'); // 查询id为不存在的1000001的bug的status
r($bug->getByIdTest($bugIDList[3])) && p('plan') && e('0'); // 查询id为不存在的1000001的bug的plan
r($bug->getByIdTest($bugIDList[3])) && p('module') && e('0'); // 查询id为不存在的1000001的bug的module
-r($bug->getByIdTest($bugIDList[3])) && p('story') && e('0'); // 查询id为不存在的1000001的bug的story
+r($bug->getByIdTest($bugIDList[3])) && p('story') && e('0'); // 查询id为不存在的1000001的bug的story
\ No newline at end of file
diff --git a/test/model/bug/getbylist.php b/test/model/bug/getbylist.php
index 30b47f87f9..015e8b8bde 100755
--- a/test/model/bug/getbylist.php
+++ b/test/model/bug/getbylist.php
@@ -10,21 +10,18 @@ title=bugModel->getByList();
cid=1
pid=1
-查询id为1的bug title >> BUG1
+查询id为1的bug title >> BUG1
查询id为2的bug status >> active
-查询id为3的bug title >> BUG3
-查询id为1的bug title >> BUG1
-查询id为4的bug title >> BUG4
+查询id为3的bug title >> BUG3
+查询id为1的bug title >> BUG1
+查询id为4的bug title >> BUG4
查询id为4的bug status >> active
-查询id为1的bug title >> BUG1
-查询id为1的bug title >> BUG1
-查询id为2的bug title >> BUG2
+查询id为1的bug title >> BUG1
+查询id为1的bug title >> BUG1
+查询id为2的bug title >> BUG2
查询id为2的bug status >> active
-查询id为7的bug title >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
-查询id为7的bug title >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
-
-
-
+查询id为7的bug title >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
+查询id为7的bug title >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
*/
@@ -44,4 +41,4 @@ r($bug->getByListTest($bugIDList[1], $fieldsList[3])) && p('1:title') && e('BUG
r($bug->getByListTest($bugIDList[2], $fieldsList[0])) && p('2:title') && e('BUG2'); // 查询id为2的bug title
r($bug->getByListTest($bugIDList[2], $fieldsList[1])) && p('2:status') && e('active'); // 查询id为2的bug status
r($bug->getByListTest($bugIDList[2], $fieldsList[2])) && p('7:title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7'); // 查询id为7的bug title
-r($bug->getByListTest($bugIDList[2], $fieldsList[3])) && p('7:title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7'); // 查询id为7的bug title
+r($bug->getByListTest($bugIDList[2], $fieldsList[3])) && p('7:title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7'); // 查询id为7的bug title
\ No newline at end of file
diff --git a/test/model/bug/getbylonglifebugs.php b/test/model/bug/getbylonglifebugs.php
index 669f9be4e6..9732b09eff 100755
--- a/test/model/bug/getbylonglifebugs.php
+++ b/test/model/bug/getbylonglifebugs.php
@@ -11,17 +11,17 @@ cid=1
pid=1
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug >> bug8,BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与模块1821, 1825下长时间未关闭的bug >> BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下长时间未关闭的bug >> 0
-查询产品1 2 3 不存在的产品10001下长时间未关闭的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG2,BUG1
-查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug >> bug8,BUG1
-查询产品1 3与模块1821, 1825下长时间未关闭的bug >> BUG1
-查询产品1 3与模块不存在的模块1000001下长时间未关闭的bug >> 0
-查询产品13 不存在的产品10001下长时间未关闭的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG2,BUG1
-查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug >> 0
-查询不存在的产品10001 与模块1821, 1825下长时间未关闭的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001下长时间未关闭的bug >> 0
-查询不存在的产品10001下长时间未关闭的bug >> 0
+查询产品1 2 3 不存在的产品10001 与模块1821, 1825下长时间未关闭的bug >> BUG4,BUG1
+查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下长时间未关闭的bug >> 0
+查询产品1 2 3 不存在的产品10001下长时间未关闭的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG2,BUG1
+查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug >> bug8,BUG1
+查询产品1 3与模块1821, 1825下长时间未关闭的bug >> BUG1
+查询产品1 3与模块不存在的模块1000001下长时间未关闭的bug >> 0
+查询产品13 不存在的产品10001下长时间未关闭的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG2,BUG1
+查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug >> 0
+查询不存在的产品10001 与模块1821, 1825下长时间未关闭的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001下长时间未关闭的bug >> 0
+查询不存在的产品10001下长时间未关闭的bug >> 0
*/
@@ -41,4 +41,4 @@ r($bug->getByLonglifebugsTest($productIDList[1], $moduleIDList[3])) && p('title'
r($bug->getByLonglifebugsTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下长时间未关闭的bug
r($bug->getByLonglifebugsTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下长时间未关闭的bug
r($bug->getByLonglifebugsTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下长时间未关闭的bug
-r($bug->getByLonglifebugsTest($productIDList[2], $moduleIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001下长时间未关闭的bug
+r($bug->getByLonglifebugsTest($productIDList[2], $moduleIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001下长时间未关闭的bug
\ No newline at end of file
diff --git a/test/model/bug/getbyneedconfirm.php b/test/model/bug/getbyneedconfirm.php
index cb7f247043..5307918cf4 100755
--- a/test/model/bug/getbyneedconfirm.php
+++ b/test/model/bug/getbyneedconfirm.php
@@ -11,14 +11,14 @@ cid=1
pid=1
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下研发需求变更的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与模块1821, 1825下研发需求变更的bug >> BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下研发需求变更的bug >> 0
-查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下研发需求变更的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
-查询产品1 3与模块1821, 1825下研发需求变更的bug >> BUG1
-查询产品1 3与模块不存在的模块1000001下研发需求变更的bug >> 0
-查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下研发需求变更的bug >> 0
-查询不存在的产品10001 与模块1821, 1825下研发需求变更的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001下研发需求变更的bug >> 0
+查询产品1 2 3 不存在的产品10001 与模块1821, 1825下研发需求变更的bug >> BUG4,BUG1
+查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下研发需求变更的bug >> 0
+查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下研发需求变更的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
+查询产品1 3与模块1821, 1825下研发需求变更的bug >> BUG1
+查询产品1 3与模块不存在的模块1000001下研发需求变更的bug >> 0
+查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下研发需求变更的bug >> 0
+查询不存在的产品10001 与模块1821, 1825下研发需求变更的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001下研发需求变更的bug >> 0
*/
@@ -35,4 +35,4 @@ r($bug->getByNeedconfirmTest($productIDList[1], $moduleIDList[1])) && p('title')
r($bug->getByNeedconfirmTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下研发需求变更的bug
r($bug->getByNeedconfirmTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下研发需求变更的bug
r($bug->getByNeedconfirmTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下研发需求变更的bug
-r($bug->getByNeedconfirmTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下研发需求变更的bug
+r($bug->getByNeedconfirmTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下研发需求变更的bug
\ No newline at end of file
diff --git a/test/model/bug/getbyopenedbyme.php b/test/model/bug/getbyopenedbyme.php
index cb03a78624..ea5b16402e 100755
--- a/test/model/bug/getbyopenedbyme.php
+++ b/test/model/bug/getbyopenedbyme.php
@@ -11,14 +11,14 @@ cid=1
pid=1
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与模块1821, 1825下由我创建的bug >> BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下由我创建的bug >> 0
-查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
-查询产品1 3与模块1821, 1825下由我创建的bug >> BUG1
-查询产品1 3与模块不存在的模块1000001下由我创建的bug >> 0
-查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug >> 0
-查询不存在的产品10001 与模块1821, 1825下由我创建的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001下由我创建的bug >> 0
+查询产品1 2 3 不存在的产品10001 与模块1821, 1825下由我创建的bug >> BUG4,BUG1
+查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下由我创建的bug >> 0
+查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
+查询产品1 3与模块1821, 1825下由我创建的bug >> BUG1
+查询产品1 3与模块不存在的模块1000001下由我创建的bug >> 0
+查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug >> 0
+查询不存在的产品10001 与模块1821, 1825下由我创建的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001下由我创建的bug >> 0
*/
@@ -35,4 +35,4 @@ r($bug->getByOpenedbymeTest($productIDList[1], $moduleIDList[1])) && p('title')
r($bug->getByOpenedbymeTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下由我创建的bug
r($bug->getByOpenedbymeTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下由我创建的bug
r($bug->getByOpenedbymeTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下由我创建的bug
-r($bug->getByOpenedbymeTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下由我创建的bug
+r($bug->getByOpenedbymeTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下由我创建的bug
\ No newline at end of file
diff --git a/test/model/bug/getbypostponedbugs.php b/test/model/bug/getbypostponedbugs.php
index 60bcb2a2ea..416f23afe0 100755
--- a/test/model/bug/getbypostponedbugs.php
+++ b/test/model/bug/getbypostponedbugs.php
@@ -11,10 +11,10 @@ cid=1
pid=1
查询产品25 32 48 100001下被延期的bug >> BUG94,BUG75,BUG74,BUG73
-查询产品25下被延期的bug >> BUG75,BUG74,BUG73
-查询产品32下被延期的bug >> BUG94
-查询产品1下被延期的bug >> 0
-查询不存在的产品10001下被延期的bug >> 0
+查询产品25下被延期的bug >> BUG75,BUG74,BUG73
+查询产品32下被延期的bug >> BUG94
+查询产品1下被延期的bug >> 0
+查询不存在的产品10001下被延期的bug >> 0
*/
@@ -26,4 +26,4 @@ r($bug->getByPostponedBugsTest($productIDList[0])) && p('title') && e('BUG94,BUG
r($bug->getByPostponedBugsTest($productIDList[1])) && p('title') && e('BUG75,BUG74,BUG73'); // 查询产品25下被延期的bug
r($bug->getByPostponedBugsTest($productIDList[2])) && p('title') && e('BUG94'); // 查询产品32下被延期的bug
r($bug->getByPostponedBugsTest($productIDList[3])) && p('title') && e('0'); // 查询产品1下被延期的bug
-r($bug->getByPostponedBugsTest($productIDList[4])) && p('title') && e('0'); // 查询不存在的产品10001下被延期的bug
+r($bug->getByPostponedBugsTest($productIDList[4])) && p('title') && e('0'); // 查询不存在的产品10001下被延期的bug
\ No newline at end of file
diff --git a/test/model/bug/getbyresolvedbyme.php b/test/model/bug/getbyresolvedbyme.php
index 222c1c237d..0f228daa56 100755
--- a/test/model/bug/getbyresolvedbyme.php
+++ b/test/model/bug/getbyresolvedbyme.php
@@ -11,9 +11,9 @@ cid=1
pid=1
查询产品1 29 98 不存在的产品10001 下由我解决的bug >> BUG294,BUG293,BUG292,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();87,BUG86,BUG85
-查询产品1 98下由我解决的bug >> BUG294,BUG293,BUG292
-查询产品29下由我解决的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();87,BUG86,BUG85
-查询不存在的产品10001 下由我解决的bug >> 0
+查询产品1 98下由我解决的bug >> BUG294,BUG293,BUG292
+查询产品29下由我解决的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();87,BUG86,BUG85
+查询不存在的产品10001 下由我解决的bug >> 0
*/
@@ -24,4 +24,4 @@ $bug=new bugTest();
r($bug->getByResolvedbymeTest($productIDList[0])) && p('title') && e('BUG294,BUG293,BUG292,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();87,BUG86,BUG85'); // 查询产品1 29 98 不存在的产品10001 下由我解决的bug
r($bug->getByResolvedbymeTest($productIDList[1])) && p('title') && e('BUG294,BUG293,BUG292'); // 查询产品1 98下由我解决的bug
r($bug->getByResolvedbymeTest($productIDList[2])) && p('title') && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();87,BUG86,BUG85'); // 查询产品29下由我解决的bug
-r($bug->getByResolvedbymeTest($productIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001 下由我解决的bug
+r($bug->getByResolvedbymeTest($productIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001 下由我解决的bug
\ No newline at end of file
diff --git a/test/model/bug/getbysonarqubeid.php b/test/model/bug/getbysonarqubeid.php
index e18c0b9e8a..efdcbbe85b 100755
--- a/test/model/bug/getbysonarqubeid.php
+++ b/test/model/bug/getbysonarqubeid.php
@@ -14,10 +14,9 @@ pid=1
*/
-
$sonarqubeIDList = array('0', '2');
$bug=new bugTest();
r($bug->getBySonarqubeIDTest($sonarqubeIDList[0])) && p() && e('0'); //获取sonarqubeID为0的bug issueKey数量
-r($bug->getBySonarqubeIDTest($sonarqubeIDList[1])) && p() && e('1'); //获取sonarqubeID为2的bug issueKey数量
+r($bug->getBySonarqubeIDTest($sonarqubeIDList[1])) && p() && e('1'); //获取sonarqubeID为2的bug issueKey数量
\ No newline at end of file
diff --git a/test/model/bug/getbystatus.php b/test/model/bug/getbystatus.php
index 0073e2aa57..23413c98fd 100755
--- a/test/model/bug/getbystatus.php
+++ b/test/model/bug/getbystatus.php
@@ -10,33 +10,33 @@ title=bugModel->getByStatus();
cid=1
pid=1
-查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug >> bug8,BUG1
+查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug >> bug8,BUG1
查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug >> bug8,BUG1
-查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug >> 0
-查询产品1 3 不存在的产品10001 与模块1821状态为unclosed下未确认的bug >> BUG1
-查询产品1 3 不存在的产品10001 与模块1821状态为unresolved下未确认的bug >> BUG1
-查询产品1 3 不存在的产品10001 与模块1821状态为toclosed下未确认的bug >> 0
-查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为unclosed下未确认的bug >> 0
-查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为unresolved下未确认的bug >> 0
-查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为toclosed下未确认的bug >> 0
-查询产品1 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug >> BUG1
-查询产品1 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug >> BUG1
-查询产品1 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug >> 0
-查询产品1 与模块1821状态为unclosed下未确认的bug >> BUG1
-查询产品1 与模块1821状态为unresolved下未确认的bug >> BUG1
-查询产品1 与模块1821状态为toclosed下未确认的bug >> 0
-查询产品1 与不存在的模块1000001 状态为unclosed下未确认的bug >> 0
-查询产品1 与不存在的模块1000001 状态为unresolved下未确认的bug >> 0
-查询产品1 与不存在的模块1000001 状态为toclosed下未确认的bug >> 0
-查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug >> 0
-查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug >> 0
-查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug >> 0
-查询不存在的产品10001 与模块1821状态为unclosed下未确认的bug >> 0
-查询不存在的产品10001 与模块1821状态为unresolved下未确认的bug >> 0
-查询不存在的产品10001 与模块1821状态为toclosed下未确认的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001 状态为unclosed下未确认的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001 状态为unresolved下未确认的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001 状态为toclosed下未确认的bug >> 0
+查询产品1 3 不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug >> 0
+查询产品1 3 不存在的产品10001 与模块1821状态为unclosed下未确认的bug >> BUG1
+查询产品1 3 不存在的产品10001 与模块1821状态为unresolved下未确认的bug >> BUG1
+查询产品1 3 不存在的产品10001 与模块1821状态为toclosed下未确认的bug >> 0
+查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为unclosed下未确认的bug >> 0
+查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为unresolved下未确认的bug >> 0
+查询产品1 3 不存在的产品10001 与不存在的模块1000001 状态为toclosed下未确认的bug >> 0
+查询产品1 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug >> BUG1
+查询产品1 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug >> BUG1
+查询产品1 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug >> 0
+查询产品1 与模块1821状态为unclosed下未确认的bug >> BUG1
+查询产品1 与模块1821状态为unresolved下未确认的bug >> BUG1
+查询产品1 与模块1821状态为toclosed下未确认的bug >> 0
+查询产品1 与不存在的模块1000001 状态为unclosed下未确认的bug >> 0
+查询产品1 与不存在的模块1000001 状态为unresolved下未确认的bug >> 0
+查询产品1 与不存在的模块1000001 状态为toclosed下未确认的bug >> 0
+查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unclosed下未确认的bug >> 0
+查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为unresolved下未确认的bug >> 0
+查询不存在的产品10001 与模块1821, 1832 不存在的模块1000001 状态为toclosed下未确认的bug >> 0
+查询不存在的产品10001 与模块1821状态为unclosed下未确认的bug >> 0
+查询不存在的产品10001 与模块1821状态为unresolved下未确认的bug >> 0
+查询不存在的产品10001 与模块1821状态为toclosed下未确认的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001 状态为unclosed下未确认的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001 状态为unresolved下未确认的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001 状态为toclosed下未确认的bug >> 0
*/
@@ -72,4 +72,4 @@ r($bug->getByStatusTest($productIDList[2], $moduleIDList[1], $statusList[1])) &&
r($bug->getByStatusTest($productIDList[2], $moduleIDList[1], $statusList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821状态为toclosed下未确认的bug
r($bug->getByStatusTest($productIDList[2], $moduleIDList[2], $statusList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001 状态为unclosed下未确认的bug
r($bug->getByStatusTest($productIDList[2], $moduleIDList[2], $statusList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001 状态为unresolved下未确认的bug
-r($bug->getByStatusTest($productIDList[2], $moduleIDList[2], $statusList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001 状态为toclosed下未确认的bug
+r($bug->getByStatusTest($productIDList[2], $moduleIDList[2], $statusList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001 状态为toclosed下未确认的bug
\ No newline at end of file
diff --git a/test/model/bug/getcasebugs.php b/test/model/bug/getcasebugs.php
index bdb29c6fbe..7dbc916987 100755
--- a/test/model/bug/getcasebugs.php
+++ b/test/model/bug/getcasebugs.php
@@ -9,34 +9,33 @@ title=bugModel->getCaseBugs();
cid=1
pid=1
-测试获取runID为0 caseID为2的bug >> 测试单转Bug1,测试单转Bug11
-测试获取runID为0 caseID为6的bug >> SonarQube_Bug2,SonarQube_Bug12
-测试获取runID为0 caseID为10的bug >> 测试单转Bug3,测试单转Bug13
-测试获取runID为0 caseID不存在的bug >> 0
-测试获取runID为2 caseID为0的bug >> 测试单转Bug1,测试单转Bug11
-测试获取runID为2 caseID为2的bug >> 测试单转Bug1,测试单转Bug11
-测试获取runID为2 caseID为6的bug >> 测试单转Bug1,测试单转Bug11
-测试获取runID为2 caseID为10的bug >> 测试单转Bug1,测试单转Bug11
-测试获取runID为2 caseID不存在的bug >> 测试单转Bug1,测试单转Bug11
-测试获取runID为6 caseID为0的bug >> SonarQube_Bug2,SonarQube_Bug12
-测试获取runID为6 caseID为2的bug >> SonarQube_Bug2,SonarQube_Bug12
-测试获取runID为6 caseID为6的bug >> SonarQube_Bug2,SonarQube_Bug12
-测试获取runID为6 caseID为10的bug >> SonarQube_Bug2,SonarQube_Bug12
-测试获取runID为6 caseID不存在的bug >> SonarQube_Bug2,SonarQube_Bug12
-测试获取runID为10 caseID为0的bug >> 测试单转Bug3,测试单转Bug13
-测试获取runID为10 caseID为2的bug >> 测试单转Bug3,测试单转Bug13
-测试获取runID为10 caseID为6的bug >> 测试单转Bug3,测试单转Bug13
-测试获取runID为10 caseID为10的bug >> 测试单转Bug3,测试单转Bug13
-测试获取runID为10 caseID不存在的bug >> 测试单转Bug3,测试单转Bug13
-测试获取runID为不存在 caseID为0的bug >> 0
-测试获取runID为不存在 caseID为2的bug >> 0
-测试获取runID为不存在 caseID为6的bug >> 0
-测试获取runID为不存在 caseID为10的bug >> 0
-测试获取runID为不存在 caseID不存在的bug >> 0
+测试获取runID为0 caseID为2的bug >> 测试单转Bug1,测试单转Bug11
+测试获取runID为0 caseID为6的bug >> SonarQube_Bug2,SonarQube_Bug12
+测试获取runID为0 caseID为10的bug >> 测试单转Bug3,测试单转Bug13
+测试获取runID为0 caseID不存在的bug >> 0
+测试获取runID为2 caseID为0的bug >> 测试单转Bug1,测试单转Bug11
+测试获取runID为2 caseID为2的bug >> 测试单转Bug1,测试单转Bug11
+测试获取runID为2 caseID为6的bug >> 测试单转Bug1,测试单转Bug11
+测试获取runID为2 caseID为10的bug >> 测试单转Bug1,测试单转Bug11
+测试获取runID为2 caseID不存在的bug >> 测试单转Bug1,测试单转Bug11
+测试获取runID为6 caseID为0的bug >> SonarQube_Bug2,SonarQube_Bug12
+测试获取runID为6 caseID为2的bug >> SonarQube_Bug2,SonarQube_Bug12
+测试获取runID为6 caseID为6的bug >> SonarQube_Bug2,SonarQube_Bug12
+测试获取runID为6 caseID为10的bug >> SonarQube_Bug2,SonarQube_Bug12
+测试获取runID为6 caseID不存在的bug >> SonarQube_Bug2,SonarQube_Bug12
+测试获取runID为10 caseID为0的bug >> 测试单转Bug3,测试单转Bug13
+测试获取runID为10 caseID为2的bug >> 测试单转Bug3,测试单转Bug13
+测试获取runID为10 caseID为6的bug >> 测试单转Bug3,测试单转Bug13
+测试获取runID为10 caseID为10的bug >> 测试单转Bug3,测试单转Bug13
+测试获取runID为10 caseID不存在的bug >> 测试单转Bug3,测试单转Bug13
+测试获取runID为不存在 caseID为0的bug >> 0
+测试获取runID为不存在 caseID为2的bug >> 0
+测试获取runID为不存在 caseID为6的bug >> 0
+测试获取runID为不存在 caseID为10的bug >> 0
+测试获取runID为不存在 caseID不存在的bug >> 0
*/
-
$runIDList = array('0', '2', '6', '10', '1000001');
$caseIDList = array('0', '2', '6', '10', '1000001');
@@ -64,4 +63,4 @@ r($bug->getCaseBugsTest($runIDList[4], $caseIDList[0])) && p() && e('0');
r($bug->getCaseBugsTest($runIDList[4], $caseIDList[1])) && p() && e('0'); // 测试获取runID为不存在 caseID为2的bug
r($bug->getCaseBugsTest($runIDList[4], $caseIDList[2])) && p() && e('0'); // 测试获取runID为不存在 caseID为6的bug
r($bug->getCaseBugsTest($runIDList[4], $caseIDList[3])) && p() && e('0'); // 测试获取runID为不存在 caseID为10的bug
-r($bug->getCaseBugsTest($runIDList[4], $caseIDList[4])) && p() && e('0'); // 测试获取runID为不存在 caseID不存在的bug
+r($bug->getCaseBugsTest($runIDList[4], $caseIDList[4])) && p() && e('0'); // 测试获取runID为不存在 caseID不存在的bug
\ No newline at end of file
diff --git a/test/model/bug/getdataofbugsperactivatedcount.php b/test/model/bug/getdataofbugsperactivatedcount.php
index 3686205170..c23d87159b 100755
--- a/test/model/bug/getdataofbugsperactivatedcount.php
+++ b/test/model/bug/getdataofbugsperactivatedcount.php
@@ -13,6 +13,5 @@ pid=1
*/
-
$bug=new bugTest();
-r($bug->getDataOfBugsPerActivatedCountTest()) && p('0:name,value') && e('激活次数:0,315'); // 获取bug激活次数数据
+r($bug->getDataOfBugsPerActivatedCountTest()) && p('0:name,value') && e('激活次数:0,315'); // 获取bug激活次数数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofbugsperassignedto.php b/test/model/bug/getdataofbugsperassignedto.php
index cc6269e823..eb5df7fd65 100755
--- a/test/model/bug/getdataofbugsperassignedto.php
+++ b/test/model/bug/getdataofbugsperassignedto.php
@@ -9,16 +9,15 @@ title=bugModel->getDataOfBugsPerAssignedTo();
cid=1
pid=1
-获取用户admin数据 >> admin,85
-获取用户dev1数据 >> 开发1,85
-获取用户test1数据 >> 测试1,85
+获取用户admin数据 >> admin,85
+获取用户dev1数据 >> 开发1,85
+获取用户test1数据 >> 测试1,85
获取用户closed数据 >> Closed,20
*/
-
$bug=new bugTest();
r($bug->getDataOfBugsPerAssignedToTest()) && p('admin:name,value') && e('admin,85'); // 获取用户admin数据
r($bug->getDataOfBugsPerAssignedToTest()) && p('dev1:name,value') && e('开发1,85'); // 获取用户dev1数据
r($bug->getDataOfBugsPerAssignedToTest()) && p('test1:name,value') && e('测试1,85'); // 获取用户test1数据
-r($bug->getDataOfBugsPerAssignedToTest()) && p('closed:name,value') && e('Closed,20'); // 获取用户closed数据
+r($bug->getDataOfBugsPerAssignedToTest()) && p('closed:name,value') && e('Closed,20'); // 获取用户closed数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofbugsperbuild.php b/test/model/bug/getdataofbugsperbuild.php
index a5375fc40b..8b8f768f7f 100755
--- a/test/model/bug/getdataofbugsperbuild.php
+++ b/test/model/bug/getdataofbugsperbuild.php
@@ -9,14 +9,13 @@ title=bugModel->getDataOfBugsPerBuild();
cid=1
pid=1
-获取主干bug数 >> 主干,291
-获取bug数 >> ,3
-获取项目版本版本1bug数 >> 项目版本版本1,6
+获取主干bug数 >> 主干,291
+获取bug数 >> ,3
+获取项目版本版本1bug数 >> 迭代版本版本1,6
*/
-
$bug=new bugTest();
r($bug->getDataOfBugsPerBuildTest()) && p('trunk:name,value') && e('主干,291'); // 获取主干bug数
r($bug->getDataOfBugsPerBuildTest()) && p('0:name,value') && e(',3'); // 获取bug数
-r($bug->getDataOfBugsPerBuildTest()) && p('1:name,value') && e('迭代版本版本1,6'); // 获取项目版本版本1bug数
+r($bug->getDataOfBugsPerBuildTest()) && p('1:name,value') && e('迭代版本版本1,6'); // 获取项目版本版本1bug数
\ No newline at end of file
diff --git a/test/model/bug/getdataofbugsperexecution.php b/test/model/bug/getdataofbugsperexecution.php
index c14d156fba..c9deca0b46 100755
--- a/test/model/bug/getdataofbugsperexecution.php
+++ b/test/model/bug/getdataofbugsperexecution.php
@@ -21,7 +21,6 @@ pid=1
*/
-
$bug=new bugTest();
r($bug->getDataOfBugsPerExecutionTest()) && p('101:name,value,title') && e('迭代1,4,迭代1'); // 获取执行101数据
r($bug->getDataOfBugsPerExecutionTest()) && p('102:name,value,title') && e('迭代2,4,迭代2'); // 获取执行102数据
@@ -31,4 +30,4 @@ r($bug->getDataOfBugsPerExecutionTest()) && p('132:name,value,title') && e('阶
r($bug->getDataOfBugsPerExecutionTest()) && p('133:name,value,title') && e('阶段33,3,阶段33'); // 获取执行133数据
r($bug->getDataOfBugsPerExecutionTest()) && p('161:name,value,title') && e('看板61,3,看板61'); // 获取执行161数据
r($bug->getDataOfBugsPerExecutionTest()) && p('162:name,value,title') && e('看板62,3,看板62'); // 获取执行162数据
-r($bug->getDataOfBugsPerExecutionTest()) && p('163:name,value,title') && e('看板63,3,看板63'); // 获取执行163数据
+r($bug->getDataOfBugsPerExecutionTest()) && p('163:name,value,title') && e('看板63,3,看板63'); // 获取执行163数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofbugspermodule.php b/test/model/bug/getdataofbugspermodule.php
index ea96a1736f..63e7f158cf 100755
--- a/test/model/bug/getdataofbugspermodule.php
+++ b/test/model/bug/getdataofbugspermodule.php
@@ -9,7 +9,7 @@ title=bugModel->getDataOfBugsPerModule();
cid=1
pid=1
-获取module0数据 >> /,306
+获取module0数据 >> /,306
获取module1821数据 >> /产品模块1,1
获取module1822数据 >> /产品模块2,1
获取module1823数据 >> /产品模块3,1
@@ -20,10 +20,8 @@ pid=1
获取module1832数据 >> /产品模块12,1
获取module1833数据 >> /产品模块13,1
-
*/
-
$bug=new bugTest();
r($bug->getDataOfBugsPerModuleTest()) && p('0:name,value') && e('/,306'); // 获取module0数据
r($bug->getDataOfBugsPerModuleTest()) && p('1821:name,value') && e('/产品模块1,1'); // 获取module1821数据
@@ -34,4 +32,4 @@ r($bug->getDataOfBugsPerModuleTest()) && p('1826:name,value') && e('/产品模
r($bug->getDataOfBugsPerModuleTest()) && p('1827:name,value') && e('/产品模块7,1'); // 获取module1827数据
r($bug->getDataOfBugsPerModuleTest()) && p('1831:name,value') && e('/产品模块11,1'); // 获取module1831数据
r($bug->getDataOfBugsPerModuleTest()) && p('1832:name,value') && e('/产品模块12,1'); // 获取module1832数据
-r($bug->getDataOfBugsPerModuleTest()) && p('1833:name,value') && e('/产品模块13,1'); // 获取module1833数据
+r($bug->getDataOfBugsPerModuleTest()) && p('1833:name,value') && e('/产品模块13,1'); // 获取module1833数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofbugsperpri.php b/test/model/bug/getdataofbugsperpri.php
index d61b01fed3..e8727c66c3 100755
--- a/test/model/bug/getdataofbugsperpri.php
+++ b/test/model/bug/getdataofbugsperpri.php
@@ -16,9 +16,8 @@ pid=1
*/
-
$bug=new bugTest();
r($bug->getDataOfBugsPerPriTest()) && p('1:name,value') && e('优先级:1,79'); // 获取pri为1的数据
r($bug->getDataOfBugsPerPriTest()) && p('2:name,value') && e('优先级:2,79'); // 获取pri为2的数据
r($bug->getDataOfBugsPerPriTest()) && p('3:name,value') && e('优先级:3,79'); // 获取pri为3的数据
-r($bug->getDataOfBugsPerPriTest()) && p('4:name,value') && e('优先级:4,78'); // 获取pri为4的数据
+r($bug->getDataOfBugsPerPriTest()) && p('4:name,value') && e('优先级:4,78'); // 获取pri为4的数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofbugsperresolution.php b/test/model/bug/getdataofbugsperresolution.php
index 51571b1b54..7b2261341c 100755
--- a/test/model/bug/getdataofbugsperresolution.php
+++ b/test/model/bug/getdataofbugsperresolution.php
@@ -9,18 +9,16 @@ title=bugModel->getDataOfBugsPerResolution();
cid=1
pid=1
-获取状态为fixed的数据 >> 已解决,45
+获取状态为fixed的数据 >> 已解决,45
获取状态为duplicate的数据 >> 重复Bug,30
-获取状态为external的数据 >> 设计如此,18
-获取状态为external的数据 >> 外部原因,18
-获取状态为willnotfix的数 >> 不予解决,18
+获取状态为external的数据 >> 设计如此,18
+获取状态为external的数据 >> 外部原因,18
+获取状态为willnotfix的数据 >> 不予解决,18
获取状态为postponed的数据 >> 延期处理,12
-获取状态为notrepro的数据 >> 无法重现,9
-
+获取状态为notrepro的数据 >> 无法重现,9
*/
-
$bug=new bugTest();
r($bug->getDataOfBugsPerResolutionTest()) && p('fixed:name,value') && e('已解决,45'); // 获取状态为fixed的数据
r($bug->getDataOfBugsPerResolutionTest()) && p('duplicate:name,value') && e('重复Bug,30'); // 获取状态为duplicate的数据
@@ -28,4 +26,4 @@ r($bug->getDataOfBugsPerResolutionTest()) && p('bydesign:name,value') && e('
r($bug->getDataOfBugsPerResolutionTest()) && p('external:name,value') && e('外部原因,18'); // 获取状态为external的数据
r($bug->getDataOfBugsPerResolutionTest()) && p('willnotfix:name,value') && e('不予解决,18'); // 获取状态为willnotfix的数据
r($bug->getDataOfBugsPerResolutionTest()) && p('postponed:name,value') && e('延期处理,12'); // 获取状态为postponed的数据
-r($bug->getDataOfBugsPerResolutionTest()) && p('notrepro:name,value') && e('无法重现,9'); // 获取状态为notrepro的数据
+r($bug->getDataOfBugsPerResolutionTest()) && p('notrepro:name,value') && e('无法重现,9'); // 获取状态为notrepro的数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofbugsperseverity.php b/test/model/bug/getdataofbugsperseverity.php
index d0026761f2..ca1986c193 100755
--- a/test/model/bug/getdataofbugsperseverity.php
+++ b/test/model/bug/getdataofbugsperseverity.php
@@ -16,9 +16,8 @@ pid=1
*/
-
$bug=new bugTest();
r($bug->getDataOfBugsPerSeverityTest()) && p('1:name,value') && e('1,79'); // 获取严重程度1数据
r($bug->getDataOfBugsPerSeverityTest()) && p('2:name,value') && e('2,79'); // 获取严重程度2数据
r($bug->getDataOfBugsPerSeverityTest()) && p('3:name,value') && e('3,79'); // 获取严重程度3数据
-r($bug->getDataOfBugsPerSeverityTest()) && p('4:name,value') && e('4,78'); // 获取严重程度4数据
+r($bug->getDataOfBugsPerSeverityTest()) && p('4:name,value') && e('4,78'); // 获取严重程度4数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofbugsperstatus.php b/test/model/bug/getdataofbugsperstatus.php
index 9333cbc923..0a950c9b57 100755
--- a/test/model/bug/getdataofbugsperstatus.php
+++ b/test/model/bug/getdataofbugsperstatus.php
@@ -9,14 +9,13 @@ title=bugModel->getDataOfBugsPerStatus();
cid=1
pid=1
-获取状态为active的数据 >> 激活,165
+获取状态为active的数据 >> 激活,165
获取状态为resolved的数据 >> 已解决,90
-获取状态为closed的数据 >> 已关闭,60
+获取状态为closed的数据 >> 已关闭,60
*/
-
$bug=new bugTest();
r($bug->getDataOfBugsPerStatusTest()) && p('active:name,value') && e('激活,165'); // 获取状态为active的数据
r($bug->getDataOfBugsPerStatusTest()) && p('resolved:name,value') && e('已解决,90'); // 获取状态为resolved的数据
-r($bug->getDataOfBugsPerStatusTest()) && p('closed:name,value') && e('已关闭,60'); // 获取状态为closed的数据
+r($bug->getDataOfBugsPerStatusTest()) && p('closed:name,value') && e('已关闭,60'); // 获取状态为closed的数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofbugspertype.php b/test/model/bug/getdataofbugspertype.php
index b5093bbf4c..d6ebb357cd 100755
--- a/test/model/bug/getdataofbugspertype.php
+++ b/test/model/bug/getdataofbugspertype.php
@@ -9,19 +9,18 @@ title=bugModel->getDataOfBugsPerType();
cid=1
pid=1
-获取类型为codeerror的数据 >> 代码错误,49
-获取类型为config的数据 >> 配置相关,34
-获取类型为install的数据 >> 安装部署,34
-获取类型为security的数据 >> 安全相关,33
-获取类型为performance的数据 >> 性能问题,33
-获取类型为standard的数据 >> 标准规范,33
-获取类型为automation的数据 >> 测试脚本,33
+获取类型为codeerror的数据 >> 代码错误,49
+获取类型为config的数据 >> 配置相关,34
+获取类型为install的数据 >> 安装部署,34
+获取类型为security的数据 >> 安全相关,33
+获取类型为performance的数据 >> 性能问题,33
+获取类型为standard的数据 >> 标准规范,33
+获取类型为automation的数据 >> 测试脚本,33
获取类型为designdefect的数据 >> 设计缺陷,33
-获取类型为others的数据 >> 其他,33
+获取类型为others的数据 >> 其他,33
*/
-
$bug=new bugTest();
r($bug->getDataOfBugsPerTypeTest()) && p('codeerror:name,value') && e('代码错误,49'); // 获取类型为codeerror的数据
r($bug->getDataOfBugsPerTypeTest()) && p('config:name,value') && e('配置相关,34'); // 获取类型为config的数据
@@ -31,4 +30,4 @@ r($bug->getDataOfBugsPerTypeTest()) && p('performance:name,value') && e('性能
r($bug->getDataOfBugsPerTypeTest()) && p('standard:name,value') && e('标准规范,33'); // 获取类型为standard的数据
r($bug->getDataOfBugsPerTypeTest()) && p('automation:name,value') && e('测试脚本,33'); // 获取类型为automation的数据
r($bug->getDataOfBugsPerTypeTest()) && p('designdefect:name,value') && e('设计缺陷,33'); // 获取类型为designdefect的数据
-r($bug->getDataOfBugsPerTypeTest()) && p('others:name,value') && e('其他,33'); // 获取类型为others的数据
+r($bug->getDataOfBugsPerTypeTest()) && p('others:name,value') && e('其他,33'); // 获取类型为others的数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofclosedbugsperday.php b/test/model/bug/getdataofclosedbugsperday.php
index 731cacc9da..e224d7259f 100755
--- a/test/model/bug/getdataofclosedbugsperday.php
+++ b/test/model/bug/getdataofclosedbugsperday.php
@@ -13,6 +13,5 @@ pid=1
*/
-
$bug=new bugTest();
-r($bug->getDataOfClosedBugsPerDayTest()) && p() && e('0'); // 获取关闭bug的数据
+r($bug->getDataOfClosedBugsPerDayTest()) && p() && e('0'); // 获取关闭bug的数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofclosedbugsperuser.php b/test/model/bug/getdataofclosedbugsperuser.php
index 1b7b21b933..05170358a1 100755
--- a/test/model/bug/getdataofclosedbugsperuser.php
+++ b/test/model/bug/getdataofclosedbugsperuser.php
@@ -13,6 +13,5 @@ pid=1
*/
-
$bug=new bugTest();
-r($bug->getDataOfClosedBugsPerUserTest()) && p('admin:name,value') && e('admin,100'); // 获取admin关闭的数据
+r($bug->getDataOfClosedBugsPerUserTest()) && p('admin:name,value') && e('admin,100'); // 获取admin关闭的数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofopenedbugsperday.php b/test/model/bug/getdataofopenedbugsperday.php
index 3530616d0f..4e6472bb3c 100755
--- a/test/model/bug/getdataofopenedbugsperday.php
+++ b/test/model/bug/getdataofopenedbugsperday.php
@@ -13,6 +13,5 @@ pid=1
*/
-
$bug=new bugTest();
-r($bug->getDataOfOpenedBugsPerDayTest()) && p('0:value') && e('23'); // 获取创建的数据
+r($bug->getDataOfOpenedBugsPerDayTest()) && p('0:value') && e('23'); // 获取创建的数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofopenedbugsperuser.php b/test/model/bug/getdataofopenedbugsperuser.php
index 56149d9049..5eafddf141 100755
--- a/test/model/bug/getdataofopenedbugsperuser.php
+++ b/test/model/bug/getdataofopenedbugsperuser.php
@@ -13,6 +13,5 @@ pid=1
*/
-
$bug=new bugTest();
-r($bug->getDataOfOpenedBugsPerUserTest()) && p('admin:name,value') && e('admin,315'); // 获取admin创建的数据
+r($bug->getDataOfOpenedBugsPerUserTest()) && p('admin:name,value') && e('admin,315'); // 获取admin创建的数据
\ No newline at end of file
diff --git a/test/model/bug/getdataofresolvedbugsperday.php b/test/model/bug/getdataofresolvedbugsperday.php
index 8bd3b7e5ab..0f1d9ba650 100755
--- a/test/model/bug/getdataofresolvedbugsperday.php
+++ b/test/model/bug/getdataofresolvedbugsperday.php
@@ -20,10 +20,8 @@ pid=1
获取解决的bug8 >> 14
获取解决的bug9 >> 14
-
*/
-
$bug=new bugTest();
r($bug->getDataOfResolvedBugsPerDayTest()) && p('0:value') && e('14'); // 获取解决的bug0
r($bug->getDataOfResolvedBugsPerDayTest()) && p('1:value') && e('14'); // 获取解决的bug1
@@ -34,4 +32,4 @@ r($bug->getDataOfResolvedBugsPerDayTest()) && p('5:value') && e('14'); // 获取
r($bug->getDataOfResolvedBugsPerDayTest()) && p('6:value') && e('14'); // 获取解决的bug6
r($bug->getDataOfResolvedBugsPerDayTest()) && p('7:value') && e('14'); // 获取解决的bug7
r($bug->getDataOfResolvedBugsPerDayTest()) && p('8:value') && e('14'); // 获取解决的bug8
-r($bug->getDataOfResolvedBugsPerDayTest()) && p('9:value') && e('14'); // 获取解决的bug9
+r($bug->getDataOfResolvedBugsPerDayTest()) && p('9:value') && e('14'); // 获取解决的bug9
\ No newline at end of file
diff --git a/test/model/bug/getdataofresolvedbugsperuser.php b/test/model/bug/getdataofresolvedbugsperuser.php
index 05ca287d74..526fa8f4c4 100755
--- a/test/model/bug/getdataofresolvedbugsperuser.php
+++ b/test/model/bug/getdataofresolvedbugsperuser.php
@@ -9,12 +9,11 @@ title=bugModel->getDataOfResolvedBugsPerUser();
cid=1
pid=1
-获取admin解决的bug数 >> admin,60
-获取$assignTo解决的bug数 >> $assignedTo,90
+获取admin解决的bug数 >> admin,60
+获取 >> ,90
*/
-
$bug=new bugTest();
r($bug->getDataOfResolvedBugsPerUserTest()) && p('admin:name,value') && e('admin,60'); // 获取admin解决的bug数
-r($bug->getDataOfResolvedBugsPerUserTest()) && p('$assignedTo:name,value') && e('$assignedTo,90'); // 获取$assignTo解决的bug数
+r($bug->getDataOfResolvedBugsPerUserTest()) && p('$assignedTo:name,value') && e('$assignedTo,90'); // 获取$assignTo解决的bug数
\ No newline at end of file
diff --git a/test/model/bug/getexecutionbugs.php b/test/model/bug/getexecutionbugs.php
index 5147c28e72..2ee9a58e18 100755
--- a/test/model/bug/getexecutionbugs.php
+++ b/test/model/bug/getexecutionbugs.php
@@ -9,18 +9,16 @@ title=bugModel->getExecutionBugs();
cid=1
pid=1
-测试获取执行ID为101的bug >> BUG3,BUG2,BUG1
-测试获取执行ID为102的bug >> BUG6,BUG5,BUG4
-测试获取执行ID为103的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
-测试获取执行ID为104的bug >> BUG12,BUG11,BUG10
-测试获取执行ID为105的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15,BUG14,BUG13
-测试获取执行ID为106的bug >> BUG18,BUG17,bug16
+测试获取执行ID为101的bug >> BUG3,BUG2,BUG1
+测试获取执行ID为102的bug >> BUG6,BUG5,BUG4
+测试获取执行ID为103的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
+测试获取执行ID为104的bug >> BUG12,BUG11,BUG10
+测试获取执行ID为105的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15,BUG14,BUG13
+测试获取执行ID为106的bug >> BUG18,BUG17,bug16
测试获取不存在的执行的bug >> 0
-
*/
-
$executionIDList = array('101', '102', '103', '104', '105', '106', '1000001');
$bug=new bugTest();
@@ -30,4 +28,4 @@ r($bug->getExecutionBugsTest($executionIDList[2])) && p() && e('BUG9,bug8,缺陷
r($bug->getExecutionBugsTest($executionIDList[3])) && p() && e('BUG12,BUG11,BUG10'); // 测试获取执行ID为104的bug
r($bug->getExecutionBugsTest($executionIDList[4])) && p() && e('缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15,BUG14,BUG13'); // 测试获取执行ID为105的bug
r($bug->getExecutionBugsTest($executionIDList[5])) && p() && e('BUG18,BUG17,bug16'); // 测试获取执行ID为106的bug
-r($bug->getExecutionBugsTest($executionIDList[6])) && p() && e('0'); // 测试获取不存在的执行的bug
+r($bug->getExecutionBugsTest($executionIDList[6])) && p() && e('0'); // 测试获取不存在的执行的bug
\ No newline at end of file
diff --git a/test/model/bug/getmodulebugs.php b/test/model/bug/getmodulebugs.php
index 7d4b537d4d..4df912c902 100755
--- a/test/model/bug/getmodulebugs.php
+++ b/test/model/bug/getmodulebugs.php
@@ -11,14 +11,14 @@ cid=1
pid=1
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与模块1821, 1825下的bug >> BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下的bug >> 0
-查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
-查询产品1 3与模块1821, 1825下的bug >> BUG1
-查询产品1 3与模块不存在的模块1000001下的bug >> 0
-查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 0
-查询不存在的产品10001 与模块1821, 1825下的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001下的bug >> 0
+查询产品1 2 3 不存在的产品10001 与模块1821, 1825下的bug >> BUG4,BUG1
+查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下的bug >> 0
+查询产品1 3与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG1
+查询产品1 3与模块1821, 1825下的bug >> BUG1
+查询产品1 3与模块不存在的模块1000001下的bug >> 0
+查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug >> 0
+查询不存在的产品10001 与模块1821, 1825下的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001下的bug >> 0
*/
@@ -35,4 +35,4 @@ r($bug->getModuleBugsTest($productIDList[1], $moduleIDList[1])) && p('title') &&
r($bug->getModuleBugsTest($productIDList[1], $moduleIDList[2])) && p('title') && e('0'); // 查询产品1 3与模块不存在的模块1000001下的bug
r($bug->getModuleBugsTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1831 不存在的模块1000001下的bug
r($bug->getModuleBugsTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下的bug
-r($bug->getModuleBugsTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下的bug
+r($bug->getModuleBugsTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下的bug
\ No newline at end of file
diff --git a/test/model/bug/getmoduleowner.php b/test/model/bug/getmoduleowner.php
index 10ce71a06d..46f4f1729a 100755
--- a/test/model/bug/getmoduleowner.php
+++ b/test/model/bug/getmoduleowner.php
@@ -10,17 +10,17 @@ title=bugModel->getModuleOwner();
cid=1
pid=1
-查询模块1821 产品1的owner >> test1
-查询模块1821 产品2的owner >> test2
-查询模块1821 产品3的owner >> test3
+查询模块1821 产品1的owner >> test1
+查询模块1821 产品2的owner >> test2
+查询模块1821 产品3的owner >> test3
查询模块1821 不存在的产品1000001的owner >> 0
-查询模块1821 产品1的owner >> test1
-查询模块1821 产品2的owner >> test2
-查询模块1821 产品3的owner >> test3
+查询模块1821 产品1的owner >> test1
+查询模块1821 产品2的owner >> test2
+查询模块1821 产品3的owner >> test3
查询模块1821 不存在的产品1000001的owner >> 0
-查询模块1821 产品1的owner >> test1
-查询模块1821 产品2的owner >> test2
-查询模块1821 产品3的owner >> test3
+查询模块1821 产品1的owner >> test1
+查询模块1821 产品2的owner >> test2
+查询模块1821 产品3的owner >> test3
查询模块1821 不存在的产品1000001的owner >> 0
*/
@@ -41,4 +41,4 @@ r($bug->getModuleOwnerTest($moduleIDList[1], $productIDList[3])) && p() && e('0'
r($bug->getModuleOwnerTest($moduleIDList[2], $productIDList[0])) && p() && e('test1'); // 查询模块1821 产品1的owner
r($bug->getModuleOwnerTest($moduleIDList[2], $productIDList[1])) && p() && e('test2'); // 查询模块1821 产品2的owner
r($bug->getModuleOwnerTest($moduleIDList[2], $productIDList[2])) && p() && e('test3'); // 查询模块1821 产品3的owner
-r($bug->getModuleOwnerTest($moduleIDList[2], $productIDList[3])) && p() && e('0'); // 查询模块1821 不存在的产品1000001的owner
+r($bug->getModuleOwnerTest($moduleIDList[2], $productIDList[3])) && p() && e('0'); // 查询模块1821 不存在的产品1000001的owner
\ No newline at end of file
diff --git a/test/model/bug/getoverduebugs.php b/test/model/bug/getoverduebugs.php
index e8aaf13ba4..2e12b7ed81 100755
--- a/test/model/bug/getoverduebugs.php
+++ b/test/model/bug/getoverduebugs.php
@@ -11,17 +11,17 @@ cid=1
pid=1
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug >> bug8,BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与模块1821, 1825下过期未解决的bug >> BUG4,BUG1
-查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下过期未解决的bug >> 0
-查询产品1 2 3 不存在的产品10001下过期未解决的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG2,BUG1
-查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug >> bug8,BUG1
-查询产品1 3与模块1821, 1825下过期未解决的bug >> BUG1
-查询产品1 3与模块不存在的模块1000001下过期未解决的bug >> 0
-查询产品13 不存在的产品10001下过期未解决的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG2,BUG1
-查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug >> 0
-查询不存在的产品10001 与模块1821, 1825下过期未解决的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001下过期未解决的bug >> 0
-查询不存在的产品10001下过期未解决的bug >> 0
+查询产品1 2 3 不存在的产品10001 与模块1821, 1825下过期未解决的bug >> BUG4,BUG1
+查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下过期未解决的bug >> 0
+查询产品1 2 3 不存在的产品10001下过期未解决的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG6,BUG5,BUG4,BUG3,BUG2,BUG1
+查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug >> bug8,BUG1
+查询产品1 3与模块1821, 1825下过期未解决的bug >> BUG1
+查询产品1 3与模块不存在的模块1000001下过期未解决的bug >> 0
+查询产品13 不存在的产品10001下过期未解决的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG2,BUG1
+查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug >> 0
+查询不存在的产品10001 与模块1821, 1825下过期未解决的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001下过期未解决的bug >> 0
+查询不存在的产品10001下过期未解决的bug >> 0
*/
@@ -41,4 +41,4 @@ r($bug->getOverdueBugsTest($productIDList[1], $moduleIDList[3])) && p('title') &
r($bug->getOverdueBugsTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下过期未解决的bug
r($bug->getOverdueBugsTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下过期未解决的bug
r($bug->getOverdueBugsTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下过期未解决的bug
-r($bug->getOverdueBugsTest($productIDList[2], $moduleIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001下过期未解决的bug
+r($bug->getOverdueBugsTest($productIDList[2], $moduleIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001下过期未解决的bug
\ No newline at end of file
diff --git a/test/model/bug/getplanbugs.php b/test/model/bug/getplanbugs.php
index e896a9d663..957f72a7aa 100755
--- a/test/model/bug/getplanbugs.php
+++ b/test/model/bug/getplanbugs.php
@@ -10,18 +10,18 @@ title=bugModel->getPlanBugs();
cid=1
pid=1
-查询计划1 状态为all的bug >> BUG3,BUG2,BUG1
-查询计划1 状态为active的bug >> BUG3,BUG2,BUG1
+查询计划1 状态为all的bug >> BUG3,BUG2,BUG1
+查询计划1 状态为active的bug >> BUG3,BUG2,BUG1
查询计划1 状态为resolved的bug >> 0
-查询计划1 状态为closed的bug >> 0
-查询计划4 状态为all的bug >> BUG6,BUG5,BUG4
-查询计划4 状态为active的bug >> BUG6,BUG5,BUG4
+查询计划1 状态为closed的bug >> 0
+查询计划4 状态为all的bug >> BUG6,BUG5,BUG4
+查询计划4 状态为active的bug >> BUG6,BUG5,BUG4
查询计划4 状态为resolved的bug >> 0
-查询计划4 状态为closed的bug >> 0
-查询计划7 状态为all的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
-查询计划7 状态为active的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
+查询计划4 状态为closed的bug >> 0
+查询计划7 状态为all的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
+查询计划7 状态为active的bug >> BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
查询计划7 状态为resolved的bug >> 0
-查询计划7 状态为closed的bug >> 0
+查询计划7 状态为closed的bug >> 0
*/
@@ -41,4 +41,4 @@ r($bug->getPlanBugsTest($planIDList[1], $statusList[3])) && p('title') && e('0')
r($bug->getPlanBugsTest($planIDList[2], $statusList[0])) && p('title') && e('BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7'); // 查询计划7 状态为all的bug
r($bug->getPlanBugsTest($planIDList[2], $statusList[1])) && p('title') && e('BUG9,bug8,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7'); // 查询计划7 状态为active的bug
r($bug->getPlanBugsTest($planIDList[2], $statusList[2])) && p('title') && e('0'); // 查询计划7 状态为resolved的bug
-r($bug->getPlanBugsTest($planIDList[2], $statusList[3])) && p('title') && e('0'); // 查询计划7 状态为closed的bug
+r($bug->getPlanBugsTest($planIDList[2], $statusList[3])) && p('title') && e('0'); // 查询计划7 状态为closed的bug
\ No newline at end of file
diff --git a/test/model/bug/getproductbugpairs.php b/test/model/bug/getproductbugpairs.php
index c5231c70dc..018f1d3059 100755
--- a/test/model/bug/getproductbugpairs.php
+++ b/test/model/bug/getproductbugpairs.php
@@ -9,17 +9,16 @@ title=bugModel->getProductBugPairs();
cid=1
pid=1
-测试获取productID为1的bug >> 3:BUG3,2:BUG2,1:BUG1
-测试获取productID为2的bug >> 6:BUG6,5:BUG5,4:BUG4
-测试获取productID为3的bug >> 9:BUG9,8:bug8,7:缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
-测试获取productID为4的bug >> 12:BUG12,11:BUG11,10:BUG10
-测试获取productID为5的bug >> 15:缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15,14:BUG14,13:BUG13
-测试获取productID为6的bug >> 18:BUG18,17:BUG17,16:bug16
+测试获取productID为1的bug >> 3:BUG3,2:BUG2,1:BUG1
+测试获取productID为2的bug >> 6:BUG6,5:BUG5,4:BUG4
+测试获取productID为3的bug >> 9:BUG9,8:bug8,7:缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7
+测试获取productID为4的bug >> 12:BUG12,11:BUG11,10:BUG10
+测试获取productID为5的bug >> 15:缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15,14:BUG14,13:BUG13
+测试获取productID为6的bug >> 18:BUG18,17:BUG17,16:bug16
测试获取不存在的product的bug >> 0
*/
-
$productIDList = array('1', '2', '3', '4','5', '6', '1000001');
$bug=new bugTest();
@@ -29,4 +28,4 @@ r($bug->getProductBugPairsTest($productIDList[2])) && p() && e('9:BUG9,8:bug8,7:
r($bug->getProductBugPairsTest($productIDList[3])) && p() && e('12:BUG12,11:BUG11,10:BUG10'); // 测试获取productID为4的bug
r($bug->getProductBugPairsTest($productIDList[4])) && p() && e('15:缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15,14:BUG14,13:BUG13'); // 测试获取productID为5的bug
r($bug->getProductBugPairsTest($productIDList[5])) && p() && e('18:BUG18,17:BUG17,16:bug16'); // 测试获取productID为6的bug
-r($bug->getProductBugPairsTest($productIDList[6])) && p() && e('0'); // 测试获取不存在的product的bug
+r($bug->getProductBugPairsTest($productIDList[6])) && p() && e('0'); // 测试获取不存在的product的bug
\ No newline at end of file
diff --git a/test/model/bug/getproductleftbugs.php b/test/model/bug/getproductleftbugs.php
index de8198f0bb..86fcf6805e 100755
--- a/test/model/bug/getproductleftbugs.php
+++ b/test/model/bug/getproductleftbugs.php
@@ -15,12 +15,11 @@ pid=1
测试获取buildID为14 productID为4的bug >> BUG10,BUG11,BUG12,SonarQube_Bug4
测试获取buildID为15 productID为5的bug >> BUG13,BUG14,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15,测试单转Bug5
测试获取buildID为16 productID为6的bug >> bug16,BUG17,BUG18,SonarQube_Bug6
-测试获取不存在的build的bug >> 0
-测试获取不存在的product的bug >> 0
+测试获取不存在的build的bug >> 0
+测试获取不存在的product的bug >> 0
*/
-
$buildIDList = array('11', '12', '13', '14', '15', '16', '1000001');
$productIDList = array('1', '2', '3', '4', '5', '6', '1000001');
@@ -32,4 +31,4 @@ r($bug->getProductLeftBugsTest($buildIDList[3], $productIDList[3])) && p() && e(
r($bug->getProductLeftBugsTest($buildIDList[4], $productIDList[4])) && p() && e('BUG13,BUG14,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15,测试单转Bug5'); // 测试获取buildID为15 productID为5的bug
r($bug->getProductLeftBugsTest($buildIDList[5], $productIDList[5])) && p() && e('bug16,BUG17,BUG18,SonarQube_Bug6'); // 测试获取buildID为16 productID为6的bug
r($bug->getProductLeftBugsTest($buildIDList[6], $productIDList[1])) && p() && e('0'); // 测试获取不存在的build的bug
-r($bug->getProductLeftBugsTest($buildIDList[1], $productIDList[6])) && p() && e('0'); // 测试获取不存在的product的bug
+r($bug->getProductLeftBugsTest($buildIDList[1], $productIDList[6])) && p() && e('0'); // 测试获取不存在的product的bug
\ No newline at end of file
diff --git a/test/model/bug/getproductmemberpairs.php b/test/model/bug/getproductmemberpairs.php
index ef67526ee9..a83443e796 100755
--- a/test/model/bug/getproductmemberpairs.php
+++ b/test/model/bug/getproductmemberpairs.php
@@ -9,18 +9,16 @@ title=bugModel->getProductMemberPairs();
cid=1
pid=1
-测试获取productID为1的bug的团队成员 >> A:admin,P:产品经理92,P:产品经理2,U:测试12
-测试获取productID为2的bug的团队成员 >> P:产品经理93,U:测试3,P:研发主管3,U:测试13
-测试获取productID为3的bug的团队成员 >> P:产品经理94,U:测试4,P:研发主管4,U:测试14
-测试获取productID为4的bug的团队成员 >> P:产品经理95,U:测试5,P:研发主管5,U:测试15
-测试获取productID为5的bug的团队成员 >> P:产品经理96,U:测试6,P:研发主管6,U:测试16
-测试获取productID为6的bug的团队成员 >> P:产品经理97,U:测试7,P:研发主管7,U:测试17
+测试获取productID为1的bug的团队成员 >> A:admin,P:产品经理92,P:产品经理2,U:测试12
+测试获取productID为2的bug的团队成员 >> P:产品经理93,U:测试3,P:研发主管3,U:测试13
+测试获取productID为3的bug的团队成员 >> P:产品经理94,U:测试4,P:研发主管4,U:测试14
+测试获取productID为4的bug的团队成员 >> P:产品经理95,U:测试5,P:研发主管5,U:测试15
+测试获取productID为5的bug的团队成员 >> P:产品经理96,U:测试6,P:研发主管6,U:测试16
+测试获取productID为6的bug的团队成员 >> P:产品经理97,U:测试7,P:研发主管7,U:测试17
测试获取不存在的product的bug的团队成员 >> 0
-
*/
-
$productIDList = array('1', '2', '3', '4','5', '6', '1000001');
$bug=new bugTest();
@@ -30,4 +28,4 @@ r($bug->getProductMemberPairsTest($productIDList[2])) && p() && e('P:产品经
r($bug->getProductMemberPairsTest($productIDList[3])) && p() && e('P:产品经理95,U:测试5,P:研发主管5,U:测试15'); // 测试获取productID为4的bug的团队成员
r($bug->getProductMemberPairsTest($productIDList[4])) && p() && e('P:产品经理96,U:测试6,P:研发主管6,U:测试16'); // 测试获取productID为5的bug的团队成员
r($bug->getProductMemberPairsTest($productIDList[5])) && p() && e('P:产品经理97,U:测试7,P:研发主管7,U:测试17'); // 测试获取productID为6的bug的团队成员
-r($bug->getProductMemberPairsTest($productIDList[6])) && p() && e('0'); // 测试获取不存在的product的bug的团队成员
+r($bug->getProductMemberPairsTest($productIDList[6])) && p() && e('0'); // 测试获取不存在的product的bug的团队成员
\ No newline at end of file
diff --git a/test/model/bug/getprojectbugs.php b/test/model/bug/getprojectbugs.php
index 1e15ac68a2..059eef55f5 100755
--- a/test/model/bug/getprojectbugs.php
+++ b/test/model/bug/getprojectbugs.php
@@ -9,17 +9,16 @@ title=bugModel->getProjectBugs();
cid=1
pid=1
-测试获取项目ID为11的bug >> 测试单转Bug1;BUG3;BUG2
-测试获取项目ID为12的bug >> SonarQube_Bug2;BUG6;BUG5
-测试获取项目ID为13的bug >> 测试单转Bug3;BUG9;bug8
-测试获取项目ID为14的bug >> SonarQube_Bug4;BUG12;BUG11
-测试获取项目ID为15的bug >> 测试单转Bug5;缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15;BUG14
-测试获取项目ID为16的bug >> SonarQube_Bug6;BUG18;BUG17
+测试获取项目ID为11的bug >> 测试单转Bug1;BUG3;BUG2
+测试获取项目ID为12的bug >> SonarQube_Bug2;BUG6;BUG5
+测试获取项目ID为13的bug >> 测试单转Bug3;BUG9;bug8
+测试获取项目ID为14的bug >> SonarQube_Bug4;BUG12;BUG11
+测试获取项目ID为15的bug >> 测试单转Bug5;缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15;BUG14
+测试获取项目ID为16的bug >> SonarQube_Bug6;BUG18;BUG17
测试获取不存在的项目的bug >> 0
*/
-
$projectIDList = array('11', '12', '13', '14', '15', '16', '1000001');
$bug=new bugTest();
@@ -29,4 +28,4 @@ r($bug->getProjectBugsTest($projectIDList[2])) && p('0:title;1:title;2:title') &
r($bug->getProjectBugsTest($projectIDList[3])) && p('0:title;1:title;2:title') && e('SonarQube_Bug4;BUG12;BUG11'); // 测试获取项目ID为14的bug
r($bug->getProjectBugsTest($projectIDList[4])) && p('0:title;1:title;2:title') && e('测试单转Bug5;缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();15;BUG14'); // 测试获取项目ID为15的bug
r($bug->getProjectBugsTest($projectIDList[5])) && p('0:title;1:title;2:title') && e('SonarQube_Bug6;BUG18;BUG17'); // 测试获取项目ID为16的bug
-r($bug->getProjectBugsTest($projectIDList[6])) && p('0:title;1:title;2:title') && e('0'); // 测试获取不存在的项目的bug
+r($bug->getProjectBugsTest($projectIDList[6])) && p('0:title;1:title;2:title') && e('0'); // 测试获取不存在的项目的bug
\ No newline at end of file
diff --git a/test/model/bug/getprojects.php b/test/model/bug/getprojects.php
index d5d899256c..7a7b8eaa5b 100755
--- a/test/model/bug/getprojects.php
+++ b/test/model/bug/getprojects.php
@@ -9,17 +9,16 @@ title=bugModel->getProjects();
cid=1
pid=1
-测试获取productID为1的项目 >> 项目1,项目11
-测试获取productID为2的项目 >> 项目2,项目12
-测试获取productID为3的项目 >> 项目3,项目13
-测试获取productID为4的项目 >> 项目4,项目14
-测试获取productID为5的项目 >> 项目5,项目15
-测试获取productID为6的项目 >> 项目6,项目16
+测试获取productID为1的项目 >> 项目1,项目11
+测试获取productID为2的项目 >> 项目2,项目12
+测试获取productID为3的项目 >> 项目3,项目13
+测试获取productID为4的项目 >> 项目4,项目14
+测试获取productID为5的项目 >> 项目5,项目15
+测试获取productID为6的项目 >> 项目6,项目16
测试获取不存在的product的项目 >> 0
*/
-
$productIDList = array('1', '2', '3', '4','5', '6', '1000001');
$bug=new bugTest();
@@ -29,4 +28,4 @@ r($bug->getProjectsTest($productIDList[2])) && p() && e('项目3,项目13'); //
r($bug->getProjectsTest($productIDList[3])) && p() && e('项目4,项目14'); // 测试获取productID为4的项目
r($bug->getProjectsTest($productIDList[4])) && p() && e('项目5,项目15'); // 测试获取productID为5的项目
r($bug->getProjectsTest($productIDList[5])) && p() && e('项目6,项目16'); // 测试获取productID为6的项目
-r($bug->getProjectsTest($productIDList[6])) && p() && e('0'); // 测试获取不存在的product的项目
+r($bug->getProjectsTest($productIDList[6])) && p() && e('0'); // 测试获取不存在的product的项目
\ No newline at end of file
diff --git a/test/model/bug/getreleasebugs.php b/test/model/bug/getreleasebugs.php
index ef36931934..cdc0450a8d 100755
--- a/test/model/bug/getreleasebugs.php
+++ b/test/model/bug/getreleasebugs.php
@@ -18,7 +18,6 @@ pid=1
*/
-
$buildIDList = array('11', '12', '13', '14', '15', '16');
$productIDList = array('1', '2');
@@ -28,4 +27,4 @@ r($bug->getReleaseBugsTest($buildIDList[1], $productIDList[1])) && p('') && e('0
r($bug->getReleaseBugsTest($buildIDList[2], $productIDList[0])) && p('') && e('BUG1,BUG2,BUG3'); // 测试获取buildID为13 productID为1的bug
r($bug->getReleaseBugsTest($buildIDList[3], $productIDList[1])) && p('') && e('BUG4,BUG5,BUG6'); // 测试获取buildID为14 productID为2的bug
r($bug->getReleaseBugsTest($buildIDList[4], $productIDList[0])) && p('') && e('BUG1,BUG2,BUG3'); // 测试获取buildID为15 productID为1的bug
-r($bug->getReleaseBugsTest($buildIDList[5], $productIDList[1])) && p('') && e('BUG4,BUG5,BUG6'); // 测试获取buildID为16 productID为2的bug
+r($bug->getReleaseBugsTest($buildIDList[5], $productIDList[1])) && p('') && e('BUG4,BUG5,BUG6'); // 测试获取buildID为16 productID为2的bug
\ No newline at end of file
diff --git a/test/model/bug/getstorybugcounts.php b/test/model/bug/getstorybugcounts.php
index 56fd8de803..7f28878f50 100755
--- a/test/model/bug/getstorybugcounts.php
+++ b/test/model/bug/getstorybugcounts.php
@@ -9,17 +9,16 @@ title=bugModel->getStoryBugCounts();
cid=1
pid=1
-测试获取关联storyID为2的bug数量 >> 4
-测试获取关联storyID为6的bug数量 >> 4
-测试获取关联storyID为10的bug数量 >> 4
-测试获取关联storyID为14的bug数量 >> 4
-测试获取关联storyID为18的bug数量 >> 4
-测试获取关联storyID为22的bug数量 >> 4
+测试获取关联storyID为2的bug数量 >> 4
+测试获取关联storyID为6的bug数量 >> 4
+测试获取关联storyID为10的bug数量 >> 4
+测试获取关联storyID为14的bug数量 >> 4
+测试获取关联storyID为18的bug数量 >> 4
+测试获取关联storyID为22的bug数量 >> 4
测试获取关联storyID不存在的bug数量 >> 0
*/
-
$storyIDList = array('2', '6', '10', '14', '18', '22', '1000001');
$bug=new bugTest();
@@ -29,4 +28,4 @@ r($bug->getStoryBugCountsTest($storyIDList, $storyIDList[2])) && p() && e('4');
r($bug->getStoryBugCountsTest($storyIDList, $storyIDList[3])) && p() && e('4'); // 测试获取关联storyID为14的bug数量
r($bug->getStoryBugCountsTest($storyIDList, $storyIDList[4])) && p() && e('4'); // 测试获取关联storyID为18的bug数量
r($bug->getStoryBugCountsTest($storyIDList, $storyIDList[5])) && p() && e('4'); // 测试获取关联storyID为22的bug数量
-r($bug->getStoryBugCountsTest($storyIDList, $storyIDList[6])) && p() && e('0'); // 测试获取关联storyID不存在的bug数量
+r($bug->getStoryBugCountsTest($storyIDList, $storyIDList[6])) && p() && e('0'); // 测试获取关联storyID不存在的bug数量
\ No newline at end of file
diff --git a/test/model/bug/getstorybugs.php b/test/model/bug/getstorybugs.php
index 87b4133fe4..6b89205b5a 100755
--- a/test/model/bug/getstorybugs.php
+++ b/test/model/bug/getstorybugs.php
@@ -9,17 +9,16 @@ title=bugModel->getStoryBugs();
cid=1
pid=1
-测试获取关联需求ID为2的bug >> BUG1,BUG101,BUG201
-测试获取关联需求ID为6的bug >> BUG2,BUG102,BUG202
-测试获取关联需求ID为10的bug >> BUG3,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();103,BUG203
-测试获取关联需求ID为14的bug >> BUG4,bug104,BUG204
-测试获取关联需求ID为18的bug >> BUG5,BUG105,BUG205
-测试获取关联需求ID为22的bug >> BUG6,BUG106,BUG206
+测试获取关联需求ID为2的bug >> BUG1,BUG101,BUG201
+测试获取关联需求ID为6的bug >> BUG2,BUG102,BUG202
+测试获取关联需求ID为10的bug >> BUG3,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();103,BUG203
+测试获取关联需求ID为14的bug >> BUG4,bug104,BUG204
+测试获取关联需求ID为18的bug >> BUG5,BUG105,BUG205
+测试获取关联需求ID为22的bug >> BUG6,BUG106,BUG206
测试获取不存在的关联需求的bug >> 0
*/
-
$storyIDList = array('2', '6', '10', '14', '18', '22', '1000001');
$bug=new bugTest();
@@ -29,4 +28,4 @@ r($bug->getStoryBugsTest($storyIDList[2])) && p() && e('BUG3,缺陷!@()(){}|+=%^
r($bug->getStoryBugsTest($storyIDList[3])) && p() && e('BUG4,bug104,BUG204'); // 测试获取关联需求ID为14的bug
r($bug->getStoryBugsTest($storyIDList[4])) && p() && e('BUG5,BUG105,BUG205'); // 测试获取关联需求ID为18的bug
r($bug->getStoryBugsTest($storyIDList[5])) && p() && e('BUG6,BUG106,BUG206'); // 测试获取关联需求ID为22的bug
-r($bug->getStoryBugsTest($storyIDList[6])) && p() && e('0'); // 测试获取不存在的关联需求的bug
+r($bug->getStoryBugsTest($storyIDList[6])) && p() && e('0'); // 测试获取不存在的关联需求的bug
\ No newline at end of file
diff --git a/test/model/bug/gettoandcclist.php b/test/model/bug/gettoandcclist.php
index eb74942821..604f9c20ad 100755
--- a/test/model/bug/gettoandcclist.php
+++ b/test/model/bug/gettoandcclist.php
@@ -9,15 +9,14 @@ title=bugModel->getToAndCcList();
cid=1
pid=1
-测试获取bug1的联系人 >> admin,admin
-测试获取bug2的联系人 >> admin,admin
-测试获取bug3的联系人 >> admin,admin
+测试获取bug1的联系人 >> admin,admin
+测试获取bug2的联系人 >> admin,admin
+测试获取bug3的联系人 >> admin,admin
测试获取bug51的联系人 >> dev1,admin
测试获取bug81的联系人 >> test1,admin
*/
-
$bugIDList = array('1', '2', '3', '51', '81');
$bug=new bugTest();
@@ -25,4 +24,4 @@ r($bug->getToAndCcListTest($bugIDList[0])) && p() && e('admin,admin'); // 测试
r($bug->getToAndCcListTest($bugIDList[1])) && p() && e('admin,admin'); // 测试获取bug2的联系人
r($bug->getToAndCcListTest($bugIDList[2])) && p() && e('admin,admin'); // 测试获取bug3的联系人
r($bug->getToAndCcListTest($bugIDList[3])) && p() && e('dev1,admin'); // 测试获取bug51的联系人
-r($bug->getToAndCcListTest($bugIDList[4])) && p() && e('test1,admin'); // 测试获取bug81的联系人
+r($bug->getToAndCcListTest($bugIDList[4])) && p() && e('test1,admin'); // 测试获取bug81的联系人
\ No newline at end of file
diff --git a/test/model/bug/getunconfirmed.php b/test/model/bug/getunconfirmed.php
index ce0d9fae1f..e8353dff6b 100755
--- a/test/model/bug/getunconfirmed.php
+++ b/test/model/bug/getunconfirmed.php
@@ -11,17 +11,17 @@ cid=1
pid=1
查询产品1 2 3 不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug >> BUG1
-查询产品1 2 3 不存在的产品10001 与模块1821, 1825下未确认的bug >> BUG1
-查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下未确认的bug >> 0
-查询产品1 2 3 不存在的产品10001下未确认的bug >> BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG5,BUG3,BUG1
-查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug >> BUG1
-查询产品1 3与模块1821, 1825下未确认的bug >> BUG1
-查询产品1 3与模块不存在的模块1000001下未确认的bug >> 0
-查询产品13 不存在的产品10001下未确认的bug >> BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG1
-查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug >> 0
-查询不存在的产品10001 与模块1821, 1825下未确认的bug >> 0
-查询不存在的产品10001 与不存在的模块1000001下未确认的bug >> 0
-查询不存在的产品10001下未确认的bug >> 0
+查询产品1 2 3 不存在的产品10001 与模块1821, 1825下未确认的bug >> BUG1
+查询产品1 2 3 不存在的产品10001 与不存在的模块1000001下未确认的bug >> 0
+查询产品1 2 3 不存在的产品10001下未确认的bug >> BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG5,BUG3,BUG1
+查询产品1 3与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug >> BUG1
+查询产品1 3与模块1821, 1825下未确认的bug >> BUG1
+查询产品1 3与模块不存在的模块1000001下未确认的bug >> 0
+查询产品13 不存在的产品10001下未确认的bug >> BUG9,缺陷!@()(){}|+=%^&*$#测试bug名称到底可以有多长!@#¥%&*":.<>。?/();7,BUG3,BUG1
+查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug >> 0
+查询不存在的产品10001 与模块1821, 1825下未确认的bug >> 0
+查询不存在的产品10001 与不存在的模块1000001下未确认的bug >> 0
+查询不存在的产品10001下未确认的bug >> 0
*/
@@ -41,4 +41,4 @@ r($bug->getUnconfirmedTest($productIDList[1], $moduleIDList[3])) && p('title') &
r($bug->getUnconfirmedTest($productIDList[2], $moduleIDList[0])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825, 1832 不存在的模块1000001下未确认的bug
r($bug->getUnconfirmedTest($productIDList[2], $moduleIDList[1])) && p('title') && e('0'); // 查询不存在的产品10001 与模块1821, 1825下未确认的bug
r($bug->getUnconfirmedTest($productIDList[2], $moduleIDList[2])) && p('title') && e('0'); // 查询不存在的产品10001 与不存在的模块1000001下未确认的bug
-r($bug->getUnconfirmedTest($productIDList[2], $moduleIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001下未确认的bug
+r($bug->getUnconfirmedTest($productIDList[2], $moduleIDList[3])) && p('title') && e('0'); // 查询不存在的产品10001下未确认的bug
\ No newline at end of file
diff --git a/test/model/bug/getuserbugpairs.php b/test/model/bug/getuserbugpairs.php
index 55f185fced..15b87c268c 100755
--- a/test/model/bug/getuserbugpairs.php
+++ b/test/model/bug/getuserbugpairs.php
@@ -12,12 +12,11 @@ pid=1
测试获取用户admin的bug >> 85
测试获取用户test1的bug >> 65
测试获取用户test2的bug >> 0
-测试获取用户dev1的bug >> 55
-测试获取用户po1的bug >> 0
+测试获取用户dev1的bug >> 55
+测试获取用户po1的bug >> 0
*/
-
$accountIDList = array('admin', 'test1', 'test2', 'dev1', 'po1');
$bug=new bugTest();
@@ -25,4 +24,4 @@ r($bug->getUserBugPairsTest($accountIDList[0])) && p() && e('85'); // 测试获
r($bug->getUserBugPairsTest($accountIDList[1])) && p() && e('65'); // 测试获取用户test1的bug
r($bug->getUserBugPairsTest($accountIDList[2])) && p() && e('0'); // 测试获取用户test2的bug
r($bug->getUserBugPairsTest($accountIDList[3])) && p() && e('55'); // 测试获取用户dev1的bug
-r($bug->getUserBugPairsTest($accountIDList[4])) && p() && e('0'); // 测试获取用户po1的bug
+r($bug->getUserBugPairsTest($accountIDList[4])) && p() && e('0'); // 测试获取用户po1的bug
\ No newline at end of file
diff --git a/test/model/bug/getuserbugs.php b/test/model/bug/getuserbugs.php
index 167d6a14ea..01bbea8167 100755
--- a/test/model/bug/getuserbugs.php
+++ b/test/model/bug/getuserbugs.php
@@ -12,12 +12,11 @@ pid=1
测试获取用户admin的bug >> 85
测试获取用户test1的bug >> 85
测试获取用户test2的bug >> 0
-测试获取用户dev1的bug >> 55
-测试获取用户po1的bug >> 0
+测试获取用户dev1的bug >> 55
+测试获取用户po1的bug >> 0
*/
-
$accountIDList = array('admin', 'test1', 'test2', 'dev1', 'po1');
$bug=new bugTest();
@@ -25,4 +24,4 @@ r($bug->getUserBugsTest($accountIDList[0])) && p() && e('85'); // 测试获取
r($bug->getUserBugsTest($accountIDList[1])) && p() && e('85'); // 测试获取用户test1的bug
r($bug->getUserBugsTest($accountIDList[2])) && p() && e('0'); // 测试获取用户test2的bug
r($bug->getUserBugsTest($accountIDList[3])) && p() && e('55'); // 测试获取用户dev1的bug
-r($bug->getUserBugsTest($accountIDList[4])) && p() && e('0'); // 测试获取用户po1的bug
+r($bug->getUserBugsTest($accountIDList[4])) && p() && e('0'); // 测试获取用户po1的bug
\ No newline at end of file
diff --git a/test/model/bug/isclickable.php b/test/model/bug/isclickable.php
index 18ae54ae11..5cd10b26f7 100755
--- a/test/model/bug/isclickable.php
+++ b/test/model/bug/isclickable.php
@@ -11,29 +11,29 @@ cid=1
pid=1
状态为active confirmed为0的bug能否执行confirmbug动作 >> 1
-状态为active confirmed为0的bug能否执行resolve动作 >> 1
-状态为active confirmed为0的bug能否执行close动作 >> 2
-状态为active confirmed为0的bug能否执行activate动作 >> 2
-状态为active confirmed为0的bug能否执行tostory动作 >> 1
-状态为active confirmed为0的bug能否执行test动作 >> 1
+状态为active confirmed为0的bug能否执行resolve动作 >> 1
+状态为active confirmed为0的bug能否执行close动作 >> 2
+状态为active confirmed为0的bug能否执行activate动作 >> 2
+状态为active confirmed为0的bug能否执行tostory动作 >> 1
+状态为active confirmed为0的bug能否执行test动作 >> 1
状态为active confirmed为1的bug能否执行confirmbug动作 >> 2
-状态为active confirmed为1的bug能否执行resolve动作 >> 1
-状态为active confirmed为1的bug能否执行close动作 >> 2
-状态为active confirmed为1的bug能否执行activate动作 >> 2
-状态为active confirmed为1的bug能否执行tostory动作 >> 1
-状态为active confirmed为1的bug能否执行test动作 >> 1
-状态为resolved的bug能否执行confirmbug动作 >> 2
-状态为resolved的bug能否执行resolve动作 >> 2
-状态为resolved的bug能否执行close动作 >> 1
-状态为resolved的bug能否执行activate动作 >> 1
-状态为resolved的bug能否执行tostory动作 >> 2
-状态为resolved的bug能否执行test动作 >> 1
-状态为closed的bug能否执行confirmbug动作 >> 2
-状态为closed的bug能否执行resolve动作 >> 2
-状态为closed的bug能否执行close动作 >> 2
-状态为closed的bug能否执行activate动作 >> 1
-状态为closed的bug能否执行tostory动作 >> 2
-状态为closed的bug能否执行test动作 >> 1
+状态为active confirmed为1的bug能否执行resolve动作 >> 1
+状态为active confirmed为1的bug能否执行close动作 >> 2
+状态为active confirmed为1的bug能否执行activate动作 >> 2
+状态为active confirmed为1的bug能否执行tostory动作 >> 1
+状态为active confirmed为1的bug能否执行test动作 >> 1
+状态为resolved的bug能否执行confirmbug动作 >> 2
+状态为resolved的bug能否执行resolve动作 >> 2
+状态为resolved的bug能否执行close动作 >> 1
+状态为resolved的bug能否执行activate动作 >> 1
+状态为resolved的bug能否执行tostory动作 >> 2
+状态为resolved的bug能否执行test动作 >> 1
+状态为closed的bug能否执行confirmbug动作 >> 2
+状态为closed的bug能否执行resolve动作 >> 2
+状态为closed的bug能否执行close动作 >> 2
+状态为closed的bug能否执行activate动作 >> 1
+状态为closed的bug能否执行tostory动作 >> 2
+状态为closed的bug能否执行test动作 >> 1
*/
@@ -41,7 +41,6 @@ $object1 = new stdclass();
$object1->status = 'active';
$object1->confirmed = 0;
-
$object2 = new stdclass();
$object2->status = 'active';
$object2->confirmed = 1;
@@ -79,4 +78,4 @@ r($bug->isClickableTest($object4, $actionList[1])) && p() && e('2'); // 状态
r($bug->isClickableTest($object4, $actionList[2])) && p() && e('2'); // 状态为closed的bug能否执行close动作
r($bug->isClickableTest($object4, $actionList[3])) && p() && e('1'); // 状态为closed的bug能否执行activate动作
r($bug->isClickableTest($object4, $actionList[4])) && p() && e('2'); // 状态为closed的bug能否执行tostory动作
-r($bug->isClickableTest($object4, $actionList[5])) && p() && e('1'); // 状态为closed的bug能否执行test动作
+r($bug->isClickableTest($object4, $actionList[5])) && p() && e('1'); // 状态为closed的bug能否执行test动作
\ No newline at end of file
diff --git a/test/model/bug/linkbugtobuild.php b/test/model/bug/linkbugtobuild.php
index 83b22681f5..2f63aafc42 100755
--- a/test/model/bug/linkbugtobuild.php
+++ b/test/model/bug/linkbugtobuild.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -10,12 +11,11 @@ title=测试bugModel->linkBugToBuild();
cid=1
pid=1
-把bug 1 2关联到build 1 >> 1,2
-把bug 3 4关联到build 3 >> 3,4
-把bug 5 6关联到build 4 >> 5,6
-把bug 7 8关联到build 1 >> 1,2,7,8
-把bug 9 10关联到build 1 >> 1,2,7,8,9,10
-
+把bug 1 2关联到build 1 >> 1,2
+把bug 3 4关联到build 3 >> 3,4
+把bug 5 6关联到build 5 >> 5,6
+把bug 5 6关联到build 1 >> 1,2,7,8
+把bug 5 6关联到build 1 >> 1,2,7,8,9,10
*/
@@ -33,4 +33,4 @@ r($bug->linkBugToBuildTest($bugIDList2, $buildList[1])) && p('bugs') && e('3,4'
r($bug->linkBugToBuildTest($bugIDList3, $buildList[2])) && p('bugs') && e('5,6'); // 把bug 5 6关联到build 5
r($bug->linkBugToBuildTest($bugIDList4, $buildList[0])) && p('bugs') && e('1,2,7,8'); // 把bug 5 6关联到build 1
r($bug->linkBugToBuildTest($bugIDList5, $buildList[0])) && p('bugs') && e('1,2,7,8,9,10'); // 把bug 5 6关联到build 1
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/processbuildforbugs.php b/test/model/bug/processbuildforbugs.php
index 40c114fc22..3e9d8b07c4 100755
--- a/test/model/bug/processbuildforbugs.php
+++ b/test/model/bug/processbuildforbugs.php
@@ -9,17 +9,15 @@ title=bugModel->processBuildForBugs();
cid=1
pid=1
-测试处理bug1 2 3的openedBuild resolvedBuild字段 >> 产品发布9,;0,;产品发布9,
-测试处理bug4 5 6的openedBuild resolvedBuild字段 >> 主干,;主干,;主干,
+测试处理bug1 2 3的openedBuild resolvedBuild字段 >> 产品发布9,;0,;产品发布9,
+测试处理bug4 5 6的openedBuild resolvedBuild字段 >> 主干,;主干,;主干,
测试处理bug51 52 53的openedBuild resolvedBuild字段 >> 主干,;主干,;主干,
测试处理bug54 55 56的openedBuild resolvedBuild字段 >> 主干,;主干,;主干,主干
测试处理bug81 82 83的openedBuild resolvedBuild字段 >> 主干,;主干,;主干,
测试处理bug84 85 86的openedBuild resolvedBuild字段 >> 主干,;主干,;主干,
-
*/
-
$bugIDList1 = array('1', '2', '3');
$bugIDList2 = array('4', '5', '6');
$bugIDList3 = array('51', '52', '53');
@@ -33,4 +31,4 @@ r($bug->processBuildForBugsTest($bugIDList2)) && p('4:openedBuild,resolvedBuild;
r($bug->processBuildForBugsTest($bugIDList3)) && p('51:openedBuild,resolvedBuild;52:openedBuild,resolvedBuild;53:openedBuild,resolvedBuild') && e('主干,;主干,;主干,'); // 测试处理bug51 52 53的openedBuild resolvedBuild字段
r($bug->processBuildForBugsTest($bugIDList4)) && p('54:openedBuild,resolvedBuild;55:openedBuild,resolvedBuild;56:openedBuild,resolvedBuild') && e('主干,;主干,;主干,主干'); // 测试处理bug54 55 56的openedBuild resolvedBuild字段
r($bug->processBuildForBugsTest($bugIDList5)) && p('81:openedBuild,resolvedBuild;82:openedBuild,resolvedBuild;83:openedBuild,resolvedBuild') && e('主干,;主干,;主干,'); // 测试处理bug81 82 83的openedBuild resolvedBuild字段
-r($bug->processBuildForBugsTest($bugIDList6)) && p('84:openedBuild,resolvedBuild;85:openedBuild,resolvedBuild;86:openedBuild,resolvedBuild') && e('主干,;主干,;主干,'); // 测试处理bug84 85 86的openedBuild resolvedBuild字段
+r($bug->processBuildForBugsTest($bugIDList6)) && p('84:openedBuild,resolvedBuild;85:openedBuild,resolvedBuild;86:openedBuild,resolvedBuild') && e('主干,;主干,;主干,'); // 测试处理bug84 85 86的openedBuild resolvedBuild字段
\ No newline at end of file
diff --git a/test/model/bug/resolve.php b/test/model/bug/resolve.php
index b5d3aa1339..922a6dbabf 100755
--- a/test/model/bug/resolve.php
+++ b/test/model/bug/resolve.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -11,15 +12,15 @@ cid=1
pid=1
解决原因为设计如此 指派人变化的bug >> resolvedBuild,,trunk;resolution,,bydesign
-不填解决原因的bug >> 『解决方案』不能为空。
-解决原因为重复Bug 不填bugID的bug >> 『重复ID』不能为空。
-解决原因为重复Bug 填bugID的bug >> duplicateBug,0,1;status,active,resolved
-解决原因为外部原因的bug >> resolvedBuild,,trunk;resolution,,external
-解决原因为已解决的bug >> resolvedBuild,,trunk;resolution,,fixed
-解决原因为无法重现的bug >> resolvedBuild,,trunk;resolution,,notrepro
-解决原因为延期处理的bug >> resolvedBuild,,trunk;resolution,,postponed
-解决原因为不予解决的bug >> resolvedBuild,,trunk;resolution,,willnotfix
-解决已解决的bug >> resolvedBuild,,trunk;confirmed,0,1
+不填解决原因的bug >> 『解决方案』不能为空。
+解决原因为重复Bug 不填bugID的bug >> 『重复ID』不能为空。
+解决原因为重复Bug 填bugID的bug >> duplicateBug,0,1;status,active,resolved
+解决原因为外部原因的bug >> resolvedBuild,,trunk;resolution,,external
+解决原因为已解决的bug >> resolvedBuild,,trunk;resolution,,fixed
+解决原因为无法重现的bug >> resolvedBuild,,trunk;resolution,,notrepro
+解决原因为延期处理的bug >> resolvedBuild,,trunk;resolution,,postponed
+解决原因为不予解决的bug >> resolvedBuild,,trunk;resolution,,willnotfix
+解决已解决的bug >> resolvedBuild,,trunk;confirmed,0,1
*/
@@ -46,4 +47,4 @@ r($bug->resolveTest($bugIDList[4],$bug5)) && p('0:field,old,new;3:field,old,n
r($bug->resolveTest($bugIDList[5],$bug6)) && p('0:field,old,new;3:field,old,new') && e('resolvedBuild,,trunk;resolution,,postponed'); // 解决原因为延期处理的bug
r($bug->resolveTest($bugIDList[6],$bug7)) && p('0:field,old,new;3:field,old,new') && e('resolvedBuild,,trunk;resolution,,willnotfix'); // 解决原因为不予解决的bug
r($bug->resolveTest($bugIDList[7],$bug51)) && p('0:field,old,new;3:field,old,new') && e('resolvedBuild,,trunk;confirmed,0,1'); // 解决已解决的bug
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/bug/update.php b/test/model/bug/update.php
index 05908734c5..81d59effdb 100755
--- a/test/model/bug/update.php
+++ b/test/model/bug/update.php
@@ -2,6 +2,7 @@
switchDB();
/**
@@ -9,16 +10,14 @@ title=bugModel->update();
cid=1
pid=1
-测试更新bug名称 >> title,BUG1,john
-测试更新bug类型 >> type,codeerror,config
-测试更新bug名称和类型 >> title,john,jack;type,config,install
-测试不更改bug名称 >> 没有数据更新
-测试不更改bug类型 >> 没有数据更新
-
+测试更新bug名称 >> title,BUG1,john
+测试更新bug类型 >> type,codeerror,config
+测试更新bug名称和类型 >> title,john,jack;type,config,install
+测试不更改bug名称 >> 没有数据更新
+测试不更改bug类型 >> 没有数据更新
*/
-
$projectIdList = array('1', '2');
$t_uptitle = array('title' => 'john');
@@ -33,4 +32,4 @@ r($bug->updateObject($projectIdList[0], $t_uptype)) && p('0:field,old,new')
r($bug->updateObject($projectIdList[0], $t_typetitle)) && p('0:field,old,new;1:field,old,new') && e('title,john,jack;type,config,install'); // 测试更新bug名称和类型
r($bug->updateObject($projectIdList[0], $t_untitle)) && p() && e('没有数据更新'); // 测试不更改bug名称
r($bug->updateObject($projectIdList[0], $t_untype)) && p() && e('没有数据更新'); // 测试不更改bug类型
-system("./ztest init");
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/build/batchunlinkbug.php b/test/model/build/batchunlinkbug.php
index e6931c0f27..bc3f8c3120 100755
--- a/test/model/build/batchunlinkbug.php
+++ b/test/model/build/batchunlinkbug.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -23,4 +24,4 @@ $build = new buildTest();
r($build->batchUnlinkBugTest($buildIDList[0],$bugs)) && p('1:bugs,project') && e(',11');//批量解除项目版本bug
r($build->batchUnlinkBugTest($buildIDList[1],$bugs)) && p('11:bugs,execution') && e(',101');//批量解除执行版本bug
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/build/batchunlinkstory.php b/test/model/build/batchunlinkstory.php
index 3efbb65e34..ce19e8c08d 100755
--- a/test/model/build/batchunlinkstory.php
+++ b/test/model/build/batchunlinkstory.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -22,4 +23,4 @@ $build = new buildTest();
r($build->batchUnlinkStoryTest($buildIDList[0],$stories)) && p('1:stories,project') && e(',11'); //批量解除项目版本需求
r($build->batchUnlinkStoryTest($buildIDList[1],$stories)) && p('11:stories,execution') && e(',101'); //批量解除执行版本需求
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/build/create.php b/test/model/build/create.php
index 676a597e90..72bb4d6afc 100755
--- a/test/model/build/create.php
+++ b/test/model/build/create.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -42,4 +43,4 @@ r($build->createTest($executionIDList[0], $noName)) && p('name:0') &
r($build->createTest($executionIDList[0], $noProduct)) && p('product:0') && e('『产品』不能为空。'); //产品为空测试
r($build->createTest($executionIDList[0], $noBuilder)) && p('builder:0') && e('『构建者』不能为空。'); //构建者为空测试
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/build/linkbug.php b/test/model/build/linkbug.php
index b2e6a9e1dc..8e1fe6b115 100755
--- a/test/model/build/linkbug.php
+++ b/test/model/build/linkbug.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -29,4 +30,4 @@ r($build->linkBugTest($buildIDList[0], $nomalBuglink)) && p('1:bugs,project')
r($build->linkBugTest($buildIDList[1], $nomalBuglink)) && p('11:bugs,execution') && e(',311,301,101');//执行版本链接bug
r($build->linkBugTest($buildIDList[0], $noBuglink)) && p('1:bugs') && e(',311,301,'); //不传bugID
//
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/build/linkstory.php b/test/model/build/linkstory.php
index 9ace56d457..59f15ba03d 100755
--- a/test/model/build/linkstory.php
+++ b/test/model/build/linkstory.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -27,4 +28,4 @@ r($build->linkStoryTest($buildIDList[0], $nomalStorylink)) && p('1:stories,proje
r($build->linkStoryTest($buildIDList[1], $nomalStorylink)) && p('11:stories,execution') && e(',2,4,101');
r($build->linkStoryTest($buildIDList[0], $noStorylink)) && p('1:stories') && e('');
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/build/unlinkbug.php b/test/model/build/unlinkbug.php
index 3034ea2f45..9255f90886 100755
--- a/test/model/build/unlinkbug.php
+++ b/test/model/build/unlinkbug.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -25,4 +26,4 @@ r($build->unlinkBugTest($buildIDList[0],$bugs,$bugs[0])) && p('1:bugs,project')
r($build->unlinkBugTest($buildIDList[1],$bugs,$bugs[1])) && p('11:bugs,execution') && e(',301,101'); //执行版本解除bug
r($build->unlinkBugTest($buildIDList[1],$bugs,'')) && p('objectID:0') && e('『对象ID』应当是数字。');//不传入BugID
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/build/unlinkstory.php b/test/model/build/unlinkstory.php
index 1a1fbba714..ab5b4e080f 100755
--- a/test/model/build/unlinkstory.php
+++ b/test/model/build/unlinkstory.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -24,4 +25,4 @@ r($build->unlinkStoryTest($buildIDList[0],$stories,$stories[0])) && p('1:stories
r($build->unlinkStoryTest($buildIDList[1],$stories,$stories[1])) && p('11:stories,execution') && e(',2,101'); //解除执行版本需求
r($build->unlinkStoryTest($buildIDList[0],$stories,'')) && p('objectID:0') && e('『对象ID』应当是数字。');//需求id为空
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/build/update.php b/test/model/build/update.php
index fda8a97188..347549e570 100755
--- a/test/model/build/update.php
+++ b/test/model/build/update.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -34,4 +35,4 @@ r($build->updateTest($buildIDList[0], $pathBuild)) && p('1:field,old,new')
r($build->updateTest($buildIDList[0], $noName)) && p('name:0') && e('『名称编号』不能为空。'); //名称为空测试
r($build->updateTest($buildIDList[0], $noBuilder)) && p('builder:0') && e('『构建者』不能为空。'); //构建者为空测试
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/build/updatelinkedbug.php b/test/model/build/updatelinkedbug.php
index e468a6cae2..5af3efcd4e 100755
--- a/test/model/build/updatelinkedbug.php
+++ b/test/model/build/updatelinkedbug.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -36,4 +37,4 @@ r($executionLink) && p('311:resolvedBuild') && e('1'); //执行版本修
r($noResolvedByLink) && p('302:resolvedBy') && e(''); //不设置解决人
r($noBugs) && p() && e('0'); //不设置bugID
-system("./ztest init");
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/caselib/batchcreatecase.php b/test/model/caselib/batchcreatecase.php
index 70fd2f2226..074c29d3da 100755
--- a/test/model/caselib/batchcreatecase.php
+++ b/test/model/caselib/batchcreatecase.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -36,4 +37,4 @@ r($total) && p() && e('12'); // 添加两
r($cases) && p('411:title,type') && e('测试导入添加1,performance'); // 添加数据之后查询新加用例的名称,用例类型
r($cases) && p('412:title,type') && e('测试导入添加2,unit'); // 添加数据之后查询新加用例的名称,用例类型
-system('./ztest init');
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/caselib/create.php b/test/model/caselib/create.php
index 3a7d717eef..62e6ffa189 100755
--- a/test/model/caselib/create.php
+++ b/test/model/caselib/create.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -37,4 +38,4 @@ r($result2) && p('name') && e('测试用例库名称'); //测试添加的
r($result2) && p('desc') && e('测试用例库描述'); //测试添加的描述信息
r($result3) && p('name:0') && e('『名称』已经有『测试用例库名称』这条记录了。如果您确定该记录已删除,请到后台-系统-数据-回收站还原。'); //测试名称是空时候添加
-system('./ztest init');
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/caselib/createfromimport.php b/test/model/caselib/createfromimport.php
index dc3460156c..7c877d3471 100755
--- a/test/model/caselib/createfromimport.php
+++ b/test/model/caselib/createfromimport.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -39,4 +40,4 @@ r($total) && p() && e('12'); //添加
r($cases) && p('411:title,keywords') && e('测试导入添加1,keywords1'); //添加数据之后查询新加用例的名称,关键字
r($cases) && p('412:title,keywords') && e('测试导入添加2,keywords2'); //添加数据之后查询新加用例的名称,关键字
-system('./ztest init');
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/caselib/delete.php b/test/model/caselib/delete.php
index c847a8fa88..dca5b0bfe0 100755
--- a/test/model/caselib/delete.php
+++ b/test/model/caselib/delete.php
@@ -2,6 +2,7 @@
switchDB();
su('admin');
/**
@@ -19,4 +20,4 @@ $lib = $caselib->deleteTest(201);
r($lib) && p('deleted') && e('1'); //测试删除之后deleted值是否为1
-system('./ztest init');
\ No newline at end of file
+$db->restoreDB();
\ No newline at end of file
diff --git a/test/model/caselib/savelibstate.php b/test/model/caselib/savelibstate.php
index 3555267ba5..18ccf098df 100755
--- a/test/model/caselib/savelibstate.php
+++ b/test/model/caselib/savelibstate.php
@@ -18,4 +18,4 @@ $caselib = new caselibTest();
$libs = $tester->loadModel('caselib')->getLibraries();
$id = $caselib->saveLibStateTest(201, $libs);
-r($id) && p() && e('201'); //保存用例库状态之后返回值
+r($id) && p() && e('201'); //保存用例库状态之后返回值
\ No newline at end of file
diff --git a/test/model/caselib/setlibmenu.php b/test/model/caselib/setlibmenu.php
index f209bb65d8..5956ccde75 100755
--- a/test/model/caselib/setlibmenu.php
+++ b/test/model/caselib/setlibmenu.php
@@ -22,4 +22,4 @@ $info = $caselib->setLibMenuTest($libs, 201);
$menuStr = <<