* @package case * @version $Id$ * @link http://www.zentao.net */ ?>
deleted) echo "class='deleted'";?>>
CASE #id . ' ' . $case->title;?>
session->caseList != false ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID=$case->product"); $actionLinks = ''; if(!$case->deleted) { ob_start(); common::printIcon('testtask', 'runCase', "runID=0&caseID=$case->id&version=$case->currentVersion"); common::printIcon('testtask', 'results', "runID=0&caseID=$case->id&version=$case->version"); common::printIcon('testcase', 'createBug', "product=$case->product&extra=caseID=$case->id,version=$case->version,runID=", '', 'button', 'createBug'); common::printDivider(); 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'); common::printDivider(); common::printRPN($browseLink, $preAndNext); $actionLinks = ob_get_contents(); ob_clean(); echo $actionLinks; } ?>
testcase->precondition;?> precondition;?>
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'));?>
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;?> pri;?>
testcase->status;?> testcase->statusList[$case->status];?>
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->legendOpenAndEdit;?>
testcase->openedBy;?> openedBy . $lang->at . $case->openedDate;?>
testcase->lblLastEdited;?> lastEditedBy) echo $case->lastEditedBy . $lang->at . $case->lastEditedDate;?>
testcase->legendVersion;?>
version; $i >= 1; $i --) echo html::a(inlink('view', "caseID=$case->id&version=$i"), '#' . $i) . ' ';?>