* @package case * @version $Id: view.html.php 5000 2013-07-03 08:20:57Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?> session->caseList ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID=$case->product");?> tab);?>
auto != 'unit' and !empty($case->precondition)):?>
testcase->precondition;?>
precondition);?>
testcase->steps;?>
steps as $stepID => $step) { $stepClass = "step-{$step->type}"; if($step->type == 'group' or $step->type == 'step') { $stepId++; $childId = 0; } if($step->type == 'step') $stepClass = 'step-group'; echo ""; echo ""; echo ""; echo ""; echo ""; $childId ++; } ?>
testcase->stepID;?> testcase->stepDesc;?> testcase->stepExpect;?>
$stepId
"; if($step->type == 'item') echo "{$stepId}.{$childId}"; echo nl2br(str_replace(' ', ' ', $step->desc)) . "
" . nl2br(str_replace(' ', ' ', $step->expect)) . "
xml)):?>
testcase->xml;?>
xml));?>
fetch('file', 'printFiles', array('files' => $case->files, 'fieldset' => 'true', 'object' => $case, 'method' => 'view', 'showDelete' => false));?>
printExtendFields($case, 'div', "position=left&inForm=0&inCell=1");?>
";?> isLibCase = $isLibCase;?> caseFails = $caseFails;?> runID = $runID;?> testcase->buildOperateMenu($case, 'view');?>
testcase->legendBasicInfo;?>
'> type != 'normal'):?>
testcase->fromCase;?> linkCaseTitles)) { foreach($case->linkCaseTitles as $linkCaseID => $linkCaseTitle) { echo html::a($this->createLink('testcase', 'view', "caseID=$linkCaseID", '', true), "#$linkCaseID $linkCaseTitle", '', "class='iframe' data-width='80%'") . '
'; } } ?>
testcase->lib;?> createLink('caselib', 'browse', "libID=$case->lib"), $libName) : $libName;?>
testcase->product;?> createLink('product', 'browse', "productID=$case->product"), $productName) : $productName;?>
product->branch, $lang->product->branchName[$product->type]);?> createLink('testcase', 'browse', "productID=$case->product&branch=$case->branch"), $branchName) : $branchName;?>
testcase->module;?> app->tab; if(empty($modulePath)) { echo "/"; } else { if($caseModule->branch and isset($branches[$caseModule->branch])) { echo $branches[$caseModule->branch] . $lang->arrow; } foreach($modulePath as $key => $module) { if($tab == 'qa' || $tab == 'ops') { if($isLibCase) { if(!common::printLink('caselib', 'browse', "libID=$case->lib&browseType=byModule¶m=$module->id", $module->name)) echo $module->name; } else { if(!common::printLink('testcase', 'browse', "productID=$case->product&branch=$module->branch&browseType=byModule¶m=$module->id", $module->name)) echo $module->name; } } if($tab == 'project' and !common::printLink('project', 'testcase', "projectID={$this->session->project}&productID=$case->product&branch=$module->branch&browseType=byModule¶m=$module->id", $module->name)) echo $module->name; if($tab == 'execution' or $tab == 'product') echo $module->name; if(isset($modulePath[$key + 1])) echo $lang->arrow; } } ?>
testcase->story;?> session->project}" : ''; if(isset($case->storyTitle)) { if(common::hasPriv('story', 'view')) { echo html::a($this->createLink('story', 'view', "storyID=$case->story" . $param, '', true), "#$case->story:$case->storyTitle", '', "class=$class data-width='80%'"); } else { echo "#$case->story:$case->storyTitle"; } } if($case->story and $case->storyStatus == 'active' and $case->latestStoryVersion > $case->storyVersion) { echo "({$lang->story->changed} "; if(common::hasPriv('testcase', 'confirmStoryChange', $case)) echo html::a($this->createLink('testcase', 'confirmStoryChange', "caseID=$case->id"), $lang->confirm, 'hiddenwin'); echo ")"; } ?>
testcase->type;?> testcase->typeList[$case->type];?>
testcase->stage;?> stage) { $stags = explode(',', $case->stage); foreach($stags as $stage) { if(empty($stage)) continue; isset($lang->testcase->stageList[$stage]) ? print($lang->testcase->stageList[$stage]) : print($stage); echo "
"; } } ?>
testcase->pri;?> testcase->priList, $case->pri)?>
testcase->status;?> processStatus('testcase', $case); if($case->version > $case->currentVersion and $from == 'testtask') { echo "(testcase->fromTesttask}>{$lang->testcase->changed} "; if(common::hasPriv('testcase', 'confirmchange')) echo html::a($this->createLink('testcase', 'confirmchange', "caseID=$case->id&taskID=$taskID"), $lang->testcase->sync, 'hiddenwin', "class='btn btn-mini btn-info'"); echo ")"; } if(isset($case->fromCaseVersion) and $case->fromCaseVersion > $case->version and $from != 'testtask' and !empty($case->product)) { echo "(testcase->fromCaselib}>{$lang->testcase->changed} "; if(common::hasPriv('testcase', 'confirmLibcaseChange')) echo html::a($this->createLink('testcase', 'confirmLibcaseChange', "caseID=$case->id&libcaseID=$case->fromCaseID"), $lang->testcase->sync, 'hiddenwin', "class='btn btn-mini btn-info'"); if(common::hasPriv('testcase', 'ignoreLibcaseChange')) echo html::a($this->createLink('testcase', 'ignoreLibcaseChange', "caseID=$case->id"), $lang->testcase->ignore, 'hiddenwin', "class='btn btn-mini btn-info'"); echo ")"; } ?>
app->loadLang('testtask')->testtask->lastRunTime;?> lastRunDate)) echo $case->lastRunDate;?>
app->loadLang('testtask')->testtask->lastRunResult;?> lastRunResult ? $lang->testcase->resultList[$case->lastRunResult] : $lang->testcase->unexecuted;?>
testcase->keywords;?> keywords;?>
testcase->linkCase;?> linkCaseTitles)) { foreach($case->linkCaseTitles as $linkCaseID => $linkCaseTitle) { echo html::a($this->createLink('testcase', 'view', "caseID=$linkCaseID", '', true), "#$linkCaseID $linkCaseTitle", '', "class='iframe' data-width='80%' title='$linkCaseTitle'") . '
'; } } ?>
testcase->legendLinkBugs;?>
fromBug):?> toBugs):?>
createLink('bug', 'view', "bugID=$case->fromBug", '', true), $case->fromBugTitle, '', "class='iframe' data-width='80%'");?>
toBugs as $bugID => $bugTitle) { echo html::a($this->createLink('bug', 'view', "bugID=$bugID", '', true), "#$bugID " . $bugTitle, '', "class='iframe' data-width='80%' title='$bugTitle'") . '
'; } ?>
testcase->legendOpenAndEdit;?>
testcase->needReview or !empty($config->testcase->forceReview)):?>
testcase->openedBy;?> openedBy) . $lang->at . $case->openedDate;?>
testcase->reviewedBy;?> reviewedBy); foreach($reviewedBy as $account) echo ' ' . zget($users, trim($account)); ?>
testcase->reviewedDate;?> reviewedBy) echo $case->reviewedDate;?>
testcase->lblLastEdited;?> lastEditedBy) echo zget($users, $case->lastEditedBy) . $lang->at . $case->lastEditedDate;?>
printExtendFields($case, 'div', "position=right&inForm=0&inCell=1");?>
createLink('testcase', 'view', "caseID=%s&version=&from=$from&taskID=$taskID"));?>
fullscreen); js::set('retrack', $lang->retrack); js::set('isLibCase', $isLibCase); ?>