| testcase->stepID;?> | -testcase->stepDesc;?> | -testcase->stepExpect;?> | -
|---|---|---|
| $stepId | "; - echo "";
- if($step->type == 'item') echo "{$stepId}.{$childId}";
- echo nl2br(str_replace(' ', ' ', $step->desc)) . " | ";
- echo "" . nl2br(str_replace(' ', ' ', $step->expect)) . " | "; - echo "
-
-
-
+fullscreen);
+js::set('retrack', $lang->retrack);
+?>
-
- auto != 'unit'):?>
-
- printExtendFields($case, 'div', "position=left&inForm=0&inCell=1");?>
-
+
-
-
- testcase->precondition;?>
- precondition);?>
-
-
- xml)):?>
- testcase->steps;?>
-
-
-
-
-
-
-
-
- fetch('file', 'printFiles', array('files' => $case->files, 'fieldset' => 'true'));?>
- testcase->xml;?>
- xml));?>
-
+
+
+
+ auto != 'unit' or empty(!$case->precondition)):?>
+
+
- testcase->precondition;?>
+ precondition);?>
-
-
-
-
-
- testcase->legendBasicInfo;?>
-
-
-
-
-
- | 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;
- }
+
+
+
+ xml)):?>
+ testcase->steps;?>
+
+
+
+
+
+ fetch('file', 'printFiles', array('files' => $case->files, 'fieldset' => 'true'));?>
+
+ printExtendFields($case, 'div', "position=left&inForm=0&inCell=1");?>
+ testcase->xml;?>
+ xml));?>
+
+ ";
+ 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%'");
- 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;
- }
- }
- ?>
-
+
+ deleted):?>
+ ";?>
+ |
- ||||||
| testcase->story;?> | -- storyTitle)) echo html::a($this->createLink('story', 'view', "storyID=$case->story", '', true), "#$case->story:$case->storyTitle", '', "class='iframe' 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%'") . ' '; - } - } - ?> - |
-
-
+ 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', 'showinonlybody');
+ ?>
-
-
- testcase->legendLinkBugs;?>
-
-
- fromBug):?>
-
-
- | 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%'") . ' '; - } - ?> - |
-
-
- printExtendFields($case, 'div', "position=right&inForm=0&inCell=1");?>
-
- testcase->legendOpenAndEdit;?>
-
-
-
-
- | 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;?> | -
+
+
+
+
+
+ testcase->legendBasicInfo;?>
+
+
+
+
+
+ | 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='iframe' 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):?>
+
+
+ | 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%'") . ' '; + } + ?> + |
+
+
+ printExtendFields($case, 'div', "position=right&inForm=0&inCell=1");?>
+
+
+
+ testcase->legendOpenAndEdit;?>
+
+
+
+
+ | 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;?> | +
createLink('testcase', 'view', "caseID=%s&version=&from=$from&taskID=$taskID"));?>
-
";
- 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', 'showinonlybody');
- ?>
-
-
-
- deleted):?>
-
";?>
-