From 1de940c5aa76177917ce0f3d89fb71c79d52e91b Mon Sep 17 00:00:00 2001 From: pengjiangxiu Date: Mon, 20 Mar 2017 13:24:07 +0800 Subject: [PATCH] * adjust style. --- module/bug/control.php | 1 + module/project/control.php | 3 +- module/testcase/control.php | 60 ++++++++++++------------ module/testcase/lang/zh-cn.php | 61 ++++++++++++------------- module/testcase/model.php | 32 +++++++++---- module/testcase/view/browse.html.php | 6 +-- module/testcase/view/createbug.html.php | 2 +- module/testcase/view/view.html.php | 2 +- module/testsuite/model.php | 2 +- module/testtask/control.php | 14 ++++-- module/testtask/js/runcase.js | 9 ++-- module/testtask/lang/zh-cn.php | 5 +- module/testtask/model.php | 9 ++-- module/testtask/view/browse.html.php | 47 +++++++++++++------ module/testtask/view/results.html.php | 2 +- module/testtask/view/runcase.html.php | 1 + module/todo/js/common.js | 2 - 17 files changed, 150 insertions(+), 108 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 5dd2352835..1c7942f83d 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -200,6 +200,7 @@ class bug extends control if(empty($this->products)) $this->locate($this->createLink('product', 'create')); $this->app->loadLang('release'); + a($_POST);exit; if(!empty($_POST) and !isset($_POST['stepIDList'])) { $response['result'] = 'success'; diff --git a/module/project/control.php b/module/project/control.php index 47817bc0db..a64d84719b 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -583,8 +583,7 @@ class project extends control $position[] = $this->lang->project->story; /* Count T B C */ - $storyIdList = array(); - foreach($stories as $story) $storyIdList[$story->id] = $story->id; + $storyIdList = array_keys($stories);; $storyTasks = $this->loadModel('task')->getStoryTaskCounts($storyIdList,$projectID); $storyBugs = $this->loadModel('bug')->getStoryBugCounts($storyIdList,$projectID); $storyCases = $this->loadModel('testcase')->getStoryCaseCounts($storyIdList); diff --git a/module/testcase/control.php b/module/testcase/control.php index ee0e95c1a5..2c32e8e29a 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -103,7 +103,7 @@ class testcase extends control /* Process case for check story changed. */ $cases = $this->loadModel('story')->checkNeedConfirm($cases); - $cases = $this->testcase->appendBugAndResults($cases); + $cases = $this->testcase->appendData($cases); /* Build the search form. */ $actionURL = $this->createLink('testcase', 'browse', "productID=$productID&branch=$branch&browseType=bySearch&queryID=myQueryID"); @@ -169,7 +169,7 @@ class testcase extends control $cases = $this->testcase->getModuleCases($productID, $branch, 0, $groupBy); $this->loadModel('common')->saveQueryCondition($this->dao->get(), 'testcase', false); - $cases = $this->testcase->appendBugAndResults($cases); + $cases = $this->testcase->appendData($cases); $groupCases = array(); $groupByList = array(); @@ -360,7 +360,6 @@ class testcase extends control /* Get the status of stories are not closed. */ $storyStatus = $this->lang->story->statusList; - //unset($storyStatus['closed']); $modules = array(); if($currentModuleID) { @@ -501,6 +500,7 @@ class testcase extends control $this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->createBug; $this->view->runID = $runID; + $this->view->case = $case; $this->view->caseID = $caseID; $this->view->version = $version; $this->display(); @@ -545,22 +545,22 @@ class testcase extends control $this->view->branchName = $this->session->currentProductType == 'normal' ? '' : $this->loadModel('branch')->getById($case->branch); } - $caseFailCount = $this->dao->select('`case` AS name, COUNT(*) AS value')->from(TABLE_TESTRESULT)->where('caseResult')->eq('fail')->andwhere('`case`')->eq($caseID)->groupBy('name')->orderBy('value DESC')->fetchAll('name'); + $caseFails = $this->dao->select('`case` AS name, COUNT(*) AS value')->from(TABLE_TESTRESULT)->where('caseResult')->eq('fail')->andwhere('`case`')->eq($caseID)->groupBy('name')->orderBy('value DESC')->fetchAll('name'); $this->view->position[] = $this->lang->testcase->common; $this->view->position[] = $this->lang->testcase->view; - $this->view->case = $case; - $this->view->from = $from; - $this->view->taskID = $taskID; - $this->view->version = $version ? $version : $case->version; - $this->view->modulePath = $this->tree->getParents($case->module); - $this->view->users = $this->user->getPairs('noletter'); - $this->view->actions = $this->loadModel('action')->getList('case', $caseID); - $this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('testcase', $caseID); - $this->view->runID = $from == 'testcase' ? 0 : $run->id; - $this->view->isLibCase = $isLibCase; - $this->view->caseFailCount = $caseFailCount ? $caseFailCount : 0; + $this->view->case = $case; + $this->view->from = $from; + $this->view->taskID = $taskID; + $this->view->version = $version ? $version : $case->version; + $this->view->modulePath = $this->tree->getParents($case->module); + $this->view->users = $this->user->getPairs('noletter'); + $this->view->actions = $this->loadModel('action')->getList('case', $caseID); + $this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('testcase', $caseID); + $this->view->runID = $from == 'testcase' ? 0 : $run->id; + $this->view->isLibCase = $isLibCase; + $this->view->caseFails = $caseFails ? $caseFails : 0; $this->display(); } @@ -913,21 +913,6 @@ class testcase extends control die(js::locate($this->session->caseList)); } - /** - * Batch ctory change cases. - * - * @param int $productID - * @access public - * @return void - */ - public function batchStoryChange($productID = 0) - { - $caseIDList = $this->post->caseIDList ? $this->post->caseIDList : die(js::locate($this->session->caseList)); - - foreach($caseIDList as $caseID) $this->confirmStoryChange($caseID,false); - die(js::locate($this->session->caseList)); - } - /** * Link related cases. * @@ -1043,6 +1028,21 @@ class testcase extends control if($reload) die(js::reload('parent')); } + /** + * Batch ctory change cases. + * + * @param int $productID + * @access public + * @return void + */ + public function batchConfirmStoryChange($productID = 0) + { + $caseIDList = $this->post->caseIDList ? $this->post->caseIDList : die(js::locate($this->session->caseList)); + + foreach($caseIDList as $caseID) $this->confirmStoryChange($caseID,false); + die(js::locate($this->session->caseList)); + } + /** * export * diff --git a/module/testcase/lang/zh-cn.php b/module/testcase/lang/zh-cn.php index 3a9aada172..d3a9a168e3 100644 --- a/module/testcase/lang/zh-cn.php +++ b/module/testcase/lang/zh-cn.php @@ -64,40 +64,39 @@ $lang->testcase->stepDesc = '步骤'; $lang->testcase->stepExpect = '预期'; $lang->testcase->stepVersion = '版本'; -$lang->testcase->common = '用例'; -$lang->testcase->index = "用例管理首页"; -$lang->testcase->create = "建用例"; -$lang->testcase->batchCreate = "批量添加"; -$lang->testcase->delete = "删除用例"; -$lang->testcase->view = "用例详情"; -$lang->testcase->review = "评审"; -$lang->testcase->edit = "编辑"; -$lang->testcase->batchEdit = "批量编辑 "; -$lang->testcase->batchChangeModule = "批量修改模块"; -$lang->testcase->delete = "删除"; -$lang->testcase->batchDelete = "批量删除 "; -$lang->testcase->batchStoryChange = "确认变更"; -$lang->testcase->batchReview = '批量评审'; -$lang->testcase->browse = "用例列表"; -$lang->testcase->groupCase = "分组浏览用例"; -$lang->testcase->import = "导入"; -$lang->testcase->importFile = "导入CSV"; -$lang->testcase->importFromLib = "从用例库中导入"; -$lang->testcase->showImport = "显示导入内容"; -$lang->testcase->exportTemplet = "导出模板"; -$lang->testcase->export = "导出数据"; -$lang->testcase->reportChart = '报表统计'; -$lang->testcase->confirmChange = '确认用例变动'; -$lang->testcase->confirmStoryChange = '确认需求变动'; -$lang->testcase->copy = '复制用例'; -$lang->testcase->group = '分组'; -$lang->testcase->groupName = '分组名称'; -$lang->testcase->step = '步骤'; -$lang->testcase->stepChild = '子步骤'; +$lang->testcase->common = '用例'; +$lang->testcase->index = "用例管理首页"; +$lang->testcase->create = "建用例"; +$lang->testcase->batchCreate = "批量添加"; +$lang->testcase->delete = "删除用例"; +$lang->testcase->view = "用例详情"; +$lang->testcase->review = "评审"; +$lang->testcase->edit = "编辑"; +$lang->testcase->batchEdit = "批量编辑 "; +$lang->testcase->batchChangeModule = "批量修改模块"; +$lang->testcase->delete = "删除"; +$lang->testcase->batchDelete = "批量删除 "; +$lang->testcase->batchConfirmStoryChange = "确认变更"; +$lang->testcase->browse = "用例列表"; +$lang->testcase->groupCase = "分组浏览用例"; +$lang->testcase->import = "导入"; +$lang->testcase->importFile = "导入CSV"; +$lang->testcase->importFromLib = "从库中导入"; +$lang->testcase->showImport = "显示导入内容"; +$lang->testcase->exportTemplet = "导出模板"; +$lang->testcase->export = "导出数据"; +$lang->testcase->reportChart = '报表统计'; +$lang->testcase->confirmChange = '确认用例变动'; +$lang->testcase->confirmStoryChange = '确认需求变动'; +$lang->testcase->copy = '复制用例'; +$lang->testcase->group = '分组'; +$lang->testcase->groupName = '分组名称'; +$lang->testcase->step = '步骤'; +$lang->testcase->stepChild = '子步骤'; $lang->testcase->new = '新增'; -$lang->testcase->num = '用例记录数:'; +$lang->testcase->num = '用例记录数:'; $lang->testcase->deleteStep = '删除'; $lang->testcase->insertBefore = '之前添加'; diff --git a/module/testcase/model.php b/module/testcase/model.php index 360cdf8777..7d8e322d89 100644 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -864,7 +864,7 @@ class testcaseModel extends model { $action = strtolower($action); - if($action == 'createbug') return $case->caseFailCount > 0; + if($action == 'createbug') return $case->caseFails > 0; if($action == 'review') return $case->status == 'wait'; return true; @@ -1258,18 +1258,25 @@ class testcaseModel extends model * Append bugs and results. * * @param array $cases + * @param string $type * @access public * @return array */ - public function appendBugAndResults($cases, $type = 'case') + public function appendData($cases, $type = 'case') { $caseIdList = array_keys($cases); if($type == 'case') { $caseBugs = $this->dao->select('count(*) as count, `case`')->from(TABLE_BUG)->where('`case`')->in($caseIdList)->andWhere('deleted')->eq(0)->groupBy('`case`')->fetchPairs('case', 'count'); $results = $this->dao->select('count(*) as count, `case`')->from(TABLE_TESTRESULT)->where('`case`')->in($caseIdList)->groupBy('`case`')->fetchPairs('case', 'count'); - $caseFailCount = $this->dao->select('`case` AS name, COUNT(*) AS value')->from(TABLE_TESTRESULT)->where('caseResult')->eq('fail')->andwhere('`case`')->in($caseIdList)->groupBy('name')->orderBy('value DESC')->fetchPairs('name','value'); - $stepNumber = $this->dao->select('count(distinct t1.id) as count, t1.`case`')->from(TABLE_CASESTEP)->alias('t1') + + $caseFails = $this->dao->select('count(*) as count, `case`')->from(TABLE_TESTRESULT) + ->where('caseResult')->eq('fail') + ->andwhere('`case`')->in($caseIdList) + ->groupBy('`case`') + ->fetchPairs('case','count'); + + $steps = $this->dao->select('count(distinct t1.id) as count, t1.`case`')->from(TABLE_CASESTEP)->alias('t1') ->leftJoin(TABLE_CASE)->alias('t2')->on('t1.`case`=t2.`id`') ->where('t1.`case`')->in($caseIdList) ->andWhere('t1.type')->eq('item') @@ -1281,7 +1288,14 @@ class testcaseModel extends model { $caseBugs = $this->dao->select('count(*) as count, `case`')->from(TABLE_BUG)->where('`result`')->in($caseIdList)->andWhere('deleted')->eq(0)->groupBy('`case`')->fetchPairs('case', 'count'); $results = $this->dao->select('count(*) as count, `case`')->from(TABLE_TESTRESULT)->where('`run`')->in($caseIdList)->groupBy('`run`')->fetchPairs('case', 'count'); - $stepNumber = $this->dao->select('count(distinct t1.id) as count, t1.`case`')->from(TABLE_CASESTEP)->alias('t1') + + $caseFails = $this->dao->select('count(*) as count, `case`')->from(TABLE_TESTRESULT) + ->where('caseResult')->eq('fail') + ->andwhere('`case`')->in($caseIdList) + ->groupBy('`case`') + ->fetchPairs('case','count'); + + $steps = $this->dao->select('count(distinct t1.id) as count, t1.`case`')->from(TABLE_CASESTEP)->alias('t1') ->leftJoin(TABLE_TESTRUN)->alias('t2')->on('t1.`case`=t2.`case`') ->where('t2.`id`')->in($caseIdList) ->andWhere('t1.type')->eq('item') @@ -1293,10 +1307,10 @@ class testcaseModel extends model foreach($cases as $key => $case) { $caseID = $type == 'case' ? $case->id : $case->case; - $case->bugs = isset($caseBugs[$caseID]) ? $caseBugs[$caseID] : 0; - $case->results = isset($results[$caseID]) ? $results[$caseID] : 0; - $case->caseFailCount = isset($caseFailCount[$caseID])? $caseFailCount[$caseID] : 0; - $case->stepNumber = isset($stepNumber[$caseID]) ? $stepNumber[$caseID] : 0; + $case->bugs = isset($caseBugs[$caseID]) ? $caseBugs[$caseID] : 0; + $case->results = isset($results[$caseID]) ? $results[$caseID] : 0; + $case->caseFails = isset($caseFails[$caseID]) ? $caseFails[$caseID] : 0; + $case->stepNumber = isset($stepNumber[$caseID]) ? $stepNumber[$caseID] : 0; } return $cases; diff --git a/module/testcase/view/browse.html.php b/module/testcase/view/browse.html.php index 6144b7bf22..cb78a5b775 100644 --- a/module/testcase/view/browse.html.php +++ b/module/testcase/view/browse.html.php @@ -85,9 +85,9 @@ js::set('batchDelete', $lang->testcase->confirmBatchDelete); echo '
  • ' . html::a('javascript:;', $lang->testcase->review, '', $class) . '
  • '; } - $actionLink = $this->createLink('testcase', 'batchStoryChange', "productID=$productID"); - $misc = common::hasPriv('testcase', 'batchStoryChange') ? "onclick=\"setFormAction('$actionLink')\"" : $class; - echo "
  • " . html::a('#', $lang->testcase->batchStoryChange, '', $misc) . "
  • "; + $actionLink = $this->createLink('testcase', 'batchConfirmStoryChange', "productID=$productID"); + $misc = common::hasPriv('testcase', 'batchConfirmStoryChange') ? "onclick=\"setFormAction('$actionLink')\"" : $class; + echo "
  • " . html::a('#', $lang->testcase->batchConfirmStoryChange, '', $misc) . "
  • "; $actionLink = $this->createLink('testtask', 'batchRun', "productID=$productID&orderBy=$orderBy"); $misc = common::hasPriv('testtask', 'batchRun') ? "onclick=\"setFormAction('$actionLink')\"" : $class; diff --git a/module/testcase/view/createbug.html.php b/module/testcase/view/createbug.html.php index dce1e2c1e6..7079b6520d 100644 --- a/module/testcase/view/createbug.html.php +++ b/module/testcase/view/createbug.html.php @@ -11,7 +11,7 @@ */ ?> -
    +product&branch=$case->branch&extras=caseID=$case->id,version=$case->version,runID=")?>' target='_parent' method='post'>
    diff --git a/module/testcase/view/view.html.php b/module/testcase/view/view.html.php index a554d9365d..c100da4575 100644 --- a/module/testcase/view/view.html.php +++ b/module/testcase/view/view.html.php @@ -48,7 +48,7 @@ common::printIcon('testtask', 'runCase', "runID=$runID&caseID=$case->id&version=$case->currentVersion", '', 'button', '', '', 'runCase', false, "data-width='95%'"); common::printIcon('testtask', 'results', "runID=$runID&caseID=$case->id&version=$case->version", '', 'button', '', '', 'results', false, "data-width='95%'"); - if($caseFailCount > 0) common::printIcon('testcase', 'createBug', "product=$case->product&branch=$case->branch&extra=caseID=$case->id,version=$case->version,runID=$runID", '', 'button', 'bug', '', 'iframe', '', "data-width='90%'"); + if($caseFails > 0) common::printIcon('testcase', 'createBug', "product=$case->product&branch=$case->branch&extra=caseID=$case->id,version=$case->version,runID=$runID", '', 'button', 'bug', '', 'iframe', '', "data-width='90%'"); } if($config->testcase->needReview) common::printIcon('testcase', 'review', "caseID=$case->id", $case, 'button', 'review', '', 'iframe'); echo ''; diff --git a/module/testsuite/model.php b/module/testsuite/model.php index f6d538e1c5..2370361936 100644 --- a/module/testsuite/model.php +++ b/module/testsuite/model.php @@ -237,7 +237,7 @@ class testsuiteModel extends model if(!$append) return $cases; $this->loadModel('common')->saveQueryCondition($this->dao->get(), 'testcase', false); - return $this->loadModel('testcase')->appendBugAndResults($cases); + return $this->loadModel('testcase')->appendData($cases); } /** diff --git a/module/testtask/control.php b/module/testtask/control.php index de74d9952a..969aa88b5e 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -50,11 +50,15 @@ class testtask extends control * @access public * @return void */ - public function browse($productID = 0, $branch = '', $type = 'wait', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) + public function browse($productID = 0, $branch = '', $type = 'local,wait', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { /* Save session. */ $this->session->set('testtaskList', $this->app->getURI(true)); + $scopeAndStatus = explode(',',$type); + $this->session->set('testTaskVersionScope', $scopeAndStatus[0]); + $this->session->set('testTaskVersionStatus', $scopeAndStatus[1]); + /* Set menu. */ $productID = $this->product->saveState($productID, $this->products); if($branch === '') $branch = (int)$this->cookie->preBranch; @@ -73,10 +77,10 @@ class testtask extends control $this->view->productID = $productID; $this->view->productName = $this->products[$productID]; $this->view->orderBy = $orderBy; - $this->view->tasks = $this->testtask->getProductTasks($productID, $branch, $sort, $pager, $type); + $this->view->tasks = $this->testtask->getProductTasks($productID, $branch, $sort, $pager, $scopeAndStatus); $this->view->users = $this->loadModel('user')->getPairs('noclosed|noletter'); $this->view->pager = $pager; - $this->view->type = $type; + $this->view->type = $scopeAndStatus[1]; $this->view->branch = $branch; $this->display(); @@ -267,7 +271,7 @@ class testtask extends control $this->loadModel('search')->setSearchParams($this->config->testcase->search); /* Append bugs and results. */ - $runs = $this->testcase->appendBugAndResults($runs, 'run'); + $runs = $this->testcase->appendData($runs, 'run'); $moduleTree = $this->loadModel('tree')->getTreeMenu($productID, $viewType = 'case', $startModuleID = 0, array('treeModel', 'createTestTaskLink'), $extra = $taskID); $libModuleTree = $this->tree->getCaseLibTreeInCase('testtask', $taskID, array('treeModel', 'createTestTaskLink')); @@ -322,7 +326,7 @@ class testtask extends control $runs = $this->testtask->getRuns($taskID, 0, $groupBy); $this->loadModel('common')->saveQueryCondition($this->dao->get(), 'testcase', false); - $runs = $this->testcase->appendBugAndResults($runs, 'run'); + $runs = $this->testcase->appendData($runs, 'run'); $groupCases = array(); $groupByList = array(); diff --git a/module/testtask/js/runcase.js b/module/testtask/js/runcase.js index 655b0922fc..fcd9737076 100644 --- a/module/testtask/js/runcase.js +++ b/module/testtask/js/runcase.js @@ -45,14 +45,13 @@ function loadFilesName() $(document).ready(function() { - /* First unbind ajaxForm for form.*/ + // First unbind ajaxForm for form. $("form[data-type='ajax']").unbind('submit'); setForm(); - /* Bind ajaxForm for form again. */ + // Bind ajaxForm for form again. $.ajaxForm("form[data-type='ajax']", function(response) { - console.info(response); if(response.locate) { if(response.locate == 'reload' && response.target == 'parent') @@ -62,6 +61,8 @@ $(document).ready(function() } else if(response.next) { location.href = response.locate; } else { + + // Get cases result $('#resultsContainer').load(response.locate + " #casesResults", function() { $('#tr-detail_1').show(); @@ -76,7 +77,7 @@ $(document).ready(function() $('#casesResults table caption .result-tip').html($('#resultTip').html()); - $("#submit").text('保存'); + $("#submit").text(caseResultSave); $("#submit").attr({"disabled":"disabled"}); }); } diff --git a/module/testtask/lang/zh-cn.php b/module/testtask/lang/zh-cn.php index 2a05b7154b..0b1ba6eaf4 100644 --- a/module/testtask/lang/zh-cn.php +++ b/module/testtask/lang/zh-cn.php @@ -35,8 +35,11 @@ $lang->testtask->wait = "待测版本"; $lang->testtask->block = "阻塞"; $lang->testtask->activate = "激活"; $lang->testtask->testing = "测试中版本"; -$lang->testtask->blockedA = "被阻塞版本"; +$lang->testtask->blocked = "被阻塞版本"; $lang->testtask->done = "已测版本"; +$lang->testtask->totalStatus = "全部"; +$lang->testtask->all = "全部产品"; +$lang->testtask->caseResultSave = "保存"; $lang->testtask->common = '测试视图版本'; $lang->testtask->product = '所属' . $lang->productCommon; diff --git a/module/testtask/model.php b/module/testtask/model.php index 84f6db166f..ac4127f714 100644 --- a/module/testtask/model.php +++ b/module/testtask/model.php @@ -67,7 +67,7 @@ class testtaskModel extends model * @access public * @return array */ - public function getProductTasks($productID, $branch = 0, $orderBy = 'id_desc', $pager = null, $type = '') + public function getProductTasks($productID, $branch = 0, $orderBy = 'id_desc', $pager = null, $scopeAndStatus = array()) { return $this->dao->select("t1.*, t2.name AS productName, t3.name AS projectName, t4.name AS buildName, if(t4.name != '', t4.branch, t5.branch) AS branch") ->from(TABLE_TESTTASK)->alias('t1') @@ -75,10 +75,11 @@ class testtaskModel extends model ->leftJoin(TABLE_PROJECT)->alias('t3')->on('t1.project = t3.id') ->leftJoin(TABLE_BUILD)->alias('t4')->on('t1.build = t4.id') ->leftJoin(TABLE_PROJECTPRODUCT)->alias('t5')->on('t1.project = t5.project') - ->where('t1.product')->eq((int)$productID) + ->where('t1.deleted')->eq(0) + ->beginIF($scopeAndStatus[0] == 'local')->andWhere('t1.product')->eq((int)$productID)->fi() ->andWhere('t5.product = t1.product') - ->andWhere('t1.deleted')->eq(0) - ->andWhere('t1.status')->eq($type) + ->beginIF($scopeAndStatus[1] == 'totalStatus')->andWhere('t1.status')->in(array('blocked','doing','wait','done'))->fi() + ->beginIF($scopeAndStatus[1] != 'totalStatus')->andWhere('t1.status')->eq($scopeAndStatus[1])->fi() ->beginIF($branch)->andWhere("if(t4.branch, t4.branch, t5.branch) = '$branch'")->fi() ->orderBy($orderBy) ->page($pager) diff --git a/module/testtask/view/browse.html.php b/module/testtask/view/browse.html.php index 1fcc72fa00..06439d6134 100644 --- a/module/testtask/view/browse.html.php +++ b/module/testtask/view/browse.html.php @@ -12,13 +12,35 @@ ?> testtask->confirmDelete)?> +
    +
    @@ -27,7 +49,9 @@ - + + @@ -38,14 +62,11 @@ - + - + + + @@ -68,7 +89,7 @@ - +
    idAB);?> testtask->name);?> testtask->project . '/' . $lang->testtask->build;?> + testtask->product);?> testtask->project);?> testtask->build);?> testtask->owner);?> testtask->begin);?> testtask->end);?>
    id"), sprintf('%03d', $task->id));?>id"), sprintf('%03d', $task->id));?> id"), $task->name);?> - projectName . '/'; - $task->build == 'trunk' ? print($lang->trunk) : print(html::a($this->createLink('build', 'view', "buildID=$task->build"), $task->buildName));; - ?> - productName?>projectName?>build == 'trunk' ? print($lang->trunk) : print(html::a($this->createLink('build', 'view', "buildID=$task->build"), $task->buildName, '','class="iframe"'));?> owner);?> begin?> end?>
    show();?>
    show();?>
    diff --git a/module/testtask/view/results.html.php b/module/testtask/view/results.html.php index 398bd6508a..ea89c7fb64 100644 --- a/module/testtask/view/results.html.php +++ b/module/testtask/view/results.html.php @@ -49,7 +49,7 @@ -
    product&branch=$case->branch&extras=caseID=$case->id,version=$case->version,runID=")?>' target='_parent' method='post'> + product&branch=$case->branch&extras=caseID=$case->id,version=$case->version,runID=")?>' target='_blank' method='post'> diff --git a/module/testtask/view/runcase.html.php b/module/testtask/view/runcase.html.php index e8ec6a6ce5..b338818c43 100644 --- a/module/testtask/view/runcase.html.php +++ b/module/testtask/view/runcase.html.php @@ -12,6 +12,7 @@ ?> +testtask->caseResultSave);?>
    icons['usecase']);?> case->id;?> diff --git a/module/todo/js/common.js b/module/todo/js/common.js index 30d634e178..f2c00f56d6 100644 --- a/module/todo/js/common.js +++ b/module/todo/js/common.js @@ -36,12 +36,10 @@ function loadList(type, id) if(type == 'bug' || type == 'task') { - //获取要待办的任务 $.get(link,function(data,status) { if(data) { $(divClass).html(data); } else { - //没有指派给自己的任务进行提醒,并重置. alert(noTodo); $("#type").val("custom"); $(divClass).html($(divID).html());