* @package case * @version $Id: view.html.php 5000 2013-07-03 08:20:57Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?>
icons['testcase']);?> id;?> title;?> deleted):?> case->deleted;?> version > 1):?>
session->caseList != false ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID=$case->product"); $actionLinks = ''; if(!$case->deleted) { ob_start(); echo "
"; common::printIcon('testtask', 'runCase', "runID=$runID&caseID=$case->id&version=$case->currentVersion", '', 'button', '', '', 'runCase'); common::printIcon('testtask', 'results', "runID=$runID&caseID=$case->id&version=$case->version", '', 'button', '', '', 'results'); if($case->lastRunResult == 'fail') common::printIcon('testcase', 'createBug', "product=$case->product&extra=caseID=$case->id,version=$case->version,runID=$runID", '', 'button', 'bug', '', 'iframe'); echo '
'; echo "
"; common::printIcon('testcase', 'edit',"caseID=$case->id"); common::printCommentIcon('testcase'); common::printIcon('testcase', 'create', "productID=$case->product&moduleID=$case->module&from=testcase¶m=$case->id", '', 'button', 'copy'); common::printIcon('testcase', 'delete', "caseID=$case->id", '', 'button', '', 'hiddenwin'); echo '
'; echo "
"; common::printRPN($browseLink, $preAndNext, inlink('view', "caseID=%s&version=0&testtask=$from&taskID=$taskID")); echo '
'; $actionLinks = ob_get_contents(); ob_end_clean(); echo $actionLinks; } else { common::printRPN($browseLink); } ?>
testcase->precondition;?> precondition);?>
testcase->stepDesc;?> steps as $stepID => $step) { $stepID += 1; echo ""; echo ""; echo ""; echo ""; } ?>
testcase->stepID;?> testcase->stepDesc;?> testcase->stepExpect;?>
$stepID" . nl2br($step->desc) . "" . nl2br($step->expect) . "
fetch('file', 'printFiles', array('files' => $case->files, 'fieldset' => 'true'));?>
comment;?>
id&comment=true")?>'>
testcase->legendBasicInfo;?>
testcase->product;?> product", $productName)) echo $productName;?>
testcase->module;?> $module) { if(!common::printLink('testcase', 'browse', "productID=$case->product&browseType=byModule¶m=$module->id", $module->name)) echo $module->name; if(isset($modulePath[$key + 1])) echo $lang->arrow; } } ?>
testcase->story;?> storyTitle)) echo html::a($this->createLink('story', 'view', "storyID=$case->story"), "#$case->story:$case->storyTitle"); if($case->story and $case->storyStatus == 'active' and $case->latestStoryVersion > $case->storyVersion) { echo "({$lang->story->changed} "; 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) { isset($lang->testcase->stageList[$stage]) ? print($lang->testcase->stageList[$stage]) : print($stage); echo "
"; } } ?>
testcase->pri;?> testcase->priList, $case->pri);?>
testcase->status;?> testcase->statusList[$case->status]; if($case->version > $case->currentVersion and $from == 'testtask') { echo " ({$lang->testcase->changed} "; echo html::a($this->createLink('testcase', 'confirmchange', "caseID=$case->id"), $lang->confirm, 'hiddenwin'); echo ")"; } ?>
app->loadLang('testtask')->testtask->lastRunTime;?> lastRunDate)) echo $case->lastRunDate;?>
app->loadLang('testtask')->testtask->lastRunResult;?> lastRunResult) echo $lang->testcase->resultList[$case->lastRunResult];?>
testcase->keywords;?> keywords;?>
testcase->linkCase;?> linkCaseTitles)) { foreach($case->linkCaseTitles as $linkCaseID => $linkCaseTitle) { echo html::a($this->createLink('testcase', 'view', "caseID=$linkCaseID"), "#$linkCaseID $linkCaseTitle", '_blank') . '
'; } } ?>
testcase->legendLinkBugs;?>
testcase->fromBug;?> fromBug) echo html::a($this->createLink('bug', 'view', "bugID=$case->fromBug"), $case->fromBugTitle);?>
testcase->toBug;?> toBugs as $bugID => $bugTitle) { echo '

' . html::a($this->createLink('bug', 'view', "bugID=$bugID"), $bugTitle) . '

'; } ?>
testcase->legendOpenAndEdit;?>
testcase->openedBy;?> openedBy] . $lang->at . $case->openedDate;?>
testcase->lblLastEdited;?> lastEditedBy) echo $users[$case->lastEditedBy] . $lang->at . $case->lastEditedDate;?>