* @package case * @version $Id: view.html.php 5000 2013-07-03 08:20:57Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?> session->caseList != false ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID=$case->product");?>
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'));?>
printExtendFields($case, 'div', "position=left&inForm=0&inCell=1");?>
deleted):?>
";?>
"; common::printIcon('testtask', 'runCase', "runID=$runID&caseID=$case->id&version=$case->currentVersion", $case, 'button', '', '', 'showinonlybody iframe', false, "data-width='95%'"); common::printIcon('testtask', 'results', "runID=$runID&caseID=$case->id&version=$case->version", $case, 'button', '', '', 'showinonlybody iframe', 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', '', '', 'iframe', '', '', $lang->testcase->reviewAB); ?> buildOperateMenu($case, 'view');?> id", $case, 'button', '', '', 'showinonlybody'); if(!$isLibCase and $case->auto != 'unit') 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('caselib', 'createCase')) echo html::a($this->createLink('caselib', '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', 'trash', 'hiddenwin', ''); ?>
testcase->legendBasicInfo;?>
session->currentProductType != 'normal'):?> 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;?> branch and isset($branches[$caseModule->branch])) { echo $branches[$caseModule->branch] . $lang->arrow; } foreach($modulePath as $key => $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", '', true), "#$case->story:$case->storyTitle", '', "class=$class data-width='80%'"); if($case->story and $case->storyStatus == 'active' and $case->latestStoryVersion > $case->storyVersion) { echo "({$lang->story->changed} "; if(common::hasPriv('testcase', 'confirmStoryChange')) 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($from != 'testtask' ? 'testcase' : 'testtask', $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') { 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) 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", '', true), "#$linkCaseID $linkCaseTitle", '', "class='iframe' data-width='80%'") . '
'; } } ?>
testcase->legendLinkBugs;?>
fromBug):?> toBugs):?>
testcase->fromBug;?> createLink('bug', 'view', "bugID=$case->fromBug", '', true), $case->fromBugTitle, '', "class='iframe' data-width='80%'");?>
testcase->toBug;?> toBugs as $bugID => $bugTitle) { echo '

' . html::a($this->createLink('bug', 'view', "bugID=$bugID", '', true), $bugTitle, '', "class='iframe' data-width='80%'") . '

'; } ?>
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); ?>