auto != 'unit' and !empty($case->precondition)):?>
testcase->precondition;?>
precondition);?>
testcase->steps;?>
| testcase->stepID;?> |
testcase->stepDesc;?> |
testcase->stepExpect;?> |
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 "| $stepId | ";
echo "";
if($step->type == 'item') echo "{$stepId}.{$childId}";
echo nl2br(str_replace(' ', ' ', $step->desc)) . " | ";
echo "" . nl2br(str_replace(' ', ' ', $step->expect)) . " | ";
echo "
";
$childId ++;
}
?>
xml)):?>
testcase->xml;?>
xml));?>
fetch('file', 'printFiles', array('files' => $case->files, 'fieldset' => 'true'));?>
printExtendFields($case, 'div', "position=left&inForm=0&inCell=1");?>
";
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', '');
?>