* @package case
* @version $Id$
* @link http://www.zentao.net
*/
?>
deleted) echo "class='deleted'";?>>
CASE #id . $lang->colon . $case->title;?>
session->caseList != false ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID=$case->product");
if(!$case->deleted)
{
common::printLink('testtask', 'runCase', "runID=0&caseID=$case->id&version=$case->currentVersion", $this->app->loadLang('testtask')->testtask->runCase, '', 'class="runcase"');
common::printLink('testtask', 'results', "runID=0&caseID=$case->id&version=$case->version", $lang->testtask->results, '', 'class="results"');
if($case->lastRunResult == 'fail') common::printLink('bug', 'create', "product=$case->product&extra=caseID=$case->id,version=$case->version,runID=", $lang->testtask->createBug);
common::printLink('testcase', 'edit', "caseID=$case->id", ' ', '', "class='icon-edit'");
if(common::hasPriv('testcase', 'edit')) echo html::a('#comment', ' ', '', "class='icon-comment' onclick='setComment()'");
common::printLink('testcase', 'create', "productID=$case->product&moduleID=$case->module&from=testcase¶m=$case->id", ' ', '', "class='icon-copy'");
common::printLink('testcase', 'delete', "caseID=$case->id", ' ', 'hiddenwin', "class='icon-delete'");
}
echo html::a($browseLink, ' ', '', "class='icon-goback'");
if($preAndNext->pre)
{
echo html::a($this->inLink('view', "storyID={$preAndNext->pre->id}&version={$preAndNext->pre->version}"), ' ', '', "class='icon-pre' id='pre' title='{$preAndNext->pre->id}{$lang->colon}{$preAndNext->pre->title}'");
}
if($preAndNext->next)
{
echo html::a($this->inLink('view', "storyID={$preAndNext->next->id}&version={$preAndNext->next->version}"), ' ', '', "class='icon-next' id='next' title='{$preAndNext->next->id}{$lang->colon}{$preAndNext->next->title}'");
}
?>
| testcase->stepID;?> |
testcase->stepDesc;?> |
testcase->stepExpect;?> |
steps as $stepID => $step)
{
$stepID += 1;
echo "| $stepID | ";
echo "" . nl2br($step->desc) . " | ";
echo "" . nl2br($step->expect) . " | ";
echo " ";
}
?>
fetch('file', 'printFiles', array('files' => $case->files, 'fieldset' => 'true'));?>
deleted)
{
common::printLink('testcase', 'edit', "caseID=$case->id", ' ', '', "class='icon-edit'");
if(common::hasPriv('testcase', 'edit')) echo html::a('#comment', ' ', '', "class='icon-comment' onclick='setComment()'");
common::printLink('testcase', 'delete', "caseID=$case->id", ' ', 'hiddenwin', "class='icon-delete'");
}
echo html::a($browseLink, ' ', '', "class='icon-goback'");
?>
|
|
|