* @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 "
"; if(!$isLibCase) { common::printIcon('testtask', 'runCase', "runID=$runID&caseID=$case->id&version=$case->currentVersion", $case, 'button', '', '', 'runCase', false, "data-width='95%'"); common::printIcon('testtask', 'results', "runID=$runID&caseID=$case->id&version=$case->version", $case, 'button', '', '', 'results', false, "data-width='95%'"); if($caseFails > 0) common::printIcon('testcase', 'createBug', "product=$case->product&branch=$case->branch&extra=caseID=$case->id,version=$case->version,runID=$runID", $case, 'button', 'bug', '', 'iframe', '', "data-width='90%'"); } if($config->testcase->needReview or !empty($config->testcase->forceReview)) common::printIcon('testcase', 'review', "caseID=$case->id", $case, 'button', 'review', '', 'iframe'); echo '
'; echo "
"; common::printIcon('testcase', 'edit',"caseID=$case->id", $case); common::printCommentIcon('testcase', $case); if(!$isLibCase) common::printIcon('testcase', 'create', "productID=$case->product&branch=$case->branch&moduleID=$case->module&from=testcase¶m=$case->id", $case, 'button', 'copy'); if($isLibCase and common::hasPriv('testsuite', 'createCase')) echo html::a($this->createLink('testsuite', 'createCase', "libID=$case->lib&moduleID=$case->module¶m=$case->id", $case), "", '', "class='btn' title='{$lang->testcase->copy}'"); common::printIcon('testcase', 'delete', "caseID=$case->id", $case, '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);?>
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($step->desc) . "
" . nl2br($step->expect) . "
fetch('file', 'printFiles', array('files' => $case->files, 'fieldset' => 'true'));?>
comment;?>
id")?>' target='hiddenwin'>
testcase->legendBasicInfo;?> session->currentProductType != 'normal'):?> config->global->flow != 'onlyTest'):?>
testcase->lib;?> lib", $libName)) echo $libName;?>
testcase->product;?> product", $productName)) echo $productName;?>
product->branch;?> product&branch=$case->branch", $branchName)) echo $branchName;?>
testcase->module;?> $module) { if(!common::printLink('testcase', 'browse', "productID=$case->product&branch=$module->branch&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) { if(empty($stage)) continue; isset($lang->testcase->stageList[$stage]) ? print($lang->testcase->stageList[$stage]) : print($stage); echo "
"; } } ?>
testcase->pri;?> testcase->priList, $case->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;?> fromBug):?> toBugs):?>
testcase->fromBug;?> 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->needReview or !empty($config->testcase->forceReview)):?>
testcase->openedBy;?> openedBy] . $lang->at . $case->openedDate;?>
testcase->reviewedBy;?> reviewedBy); foreach($reviewedBy as $account) echo ' ' . $users[trim($account)]; ?>
testcase->reviewedDate;?> reviewedBy) echo $case->reviewedDate;?>
testcase->lblLastEdited;?> lastEditedBy) echo $users[$case->lastEditedBy] . $lang->at . $case->lastEditedDate;?>