./config/my.php.back
This commit is contained in:
@@ -31,14 +31,14 @@
|
||||
<caption class='text-left'>
|
||||
<strong><?php echo $lang->testcase->result?> <span> <?php printf($lang->testtask->showResult, $count)?></span> <span class='result-tip'></span></strong>
|
||||
</caption>
|
||||
<?php $failCount = 0; ?>
|
||||
<?php $failCount = 0; $trCount=1?>
|
||||
<?php foreach($results as $result):?>
|
||||
<?php
|
||||
$class = ($result->caseResult == 'pass' ? 'success' : ($result->caseResult == 'fail' ? 'danger' : ($result->caseResult == 'blocked' ? 'warning' : '')));
|
||||
if($class != 'success') $failCount++;
|
||||
$fileCount = '(' . count($result->files) . ')';
|
||||
?>
|
||||
<tr class='result-item' style='cursor: pointer'>
|
||||
<tr class='result-item' id='result-<?php echo $class?>' style='cursor: pointer'>
|
||||
<td class='w-120px'> #<?php echo $result->id?></td>
|
||||
<td class='w-180px'><?php echo $result->date;?></td>
|
||||
<td><?php echo $users[$result->lastRunner] . ' ' . $lang->testtask->runCase;?></td>
|
||||
@@ -47,15 +47,16 @@
|
||||
<td class='w-60px'><?php if(!empty($result->files)) echo html::a("#caseResult{$result->id}", $lang->files . $fileCount, '', "data-toggle='modal' data-type='iframe'")?></td>
|
||||
<td class='w-50px text-center'><i class='collapse-handle icon-chevron-down text-muted'></i></td>
|
||||
</tr>
|
||||
<tr class='result-detail hide'>
|
||||
<tr class='result-detail hide' id='tr-detail_<?php echo $trCount++; ?>'>
|
||||
<td colspan='7' class='pd-0'>
|
||||
<form action='<?php echo $this->createLink('bug', 'create', "product=$case->product&branch=$case->branch&extras=caseID=$case->id,version=$case->version,runID=")?>' target='_parent' method='post'>
|
||||
<table class='table table-condensed borderless mg-0 resultSteps'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='w-40px'><?php echo $lang->testcase->stepID;?></th>
|
||||
<th class='w-p30 text-left'><?php echo $lang->testcase->stepDesc;?></th>
|
||||
<th class='w-p25 text-left'><?php echo $lang->testcase->stepExpect;?></th>
|
||||
<th class='w-p10 text-left'><?php echo $lang->testcase->stepVersion;?></th>
|
||||
<th class='w-p5 text-left'><?php echo $lang->testcase->stepVersion;?></th>
|
||||
<th class='text-center'><?php echo $lang->testcase->result;?></th>
|
||||
<th class='w-p20 text-left'><?php echo $lang->testcase->real;?></th>
|
||||
<th class='w-80px'></th>
|
||||
@@ -79,7 +80,12 @@
|
||||
$fileCount = '(' . count($stepResult['files']) . ')';
|
||||
?>
|
||||
<tr class='step <?php echo $stepClass?>'>
|
||||
<td class='step-id'><?php echo $stepId;?></td>
|
||||
<td class='step-id'>
|
||||
<?php if($result->caseResult == 'fail'):?>
|
||||
<input type='checkbox' name='stepIDList[]' value='<?php echo $key;?>'/>
|
||||
<?php endif;?>
|
||||
<?php echo $stepId;?>
|
||||
</td>
|
||||
<td class='text-left' <?php if($stepResult['type'] == 'group') echo "colspan='6'"?>>
|
||||
<div class='input-group'>
|
||||
<?php if($stepResult['type'] == 'item' and $stepResult['parent'] != 0) echo "<span class='step-item-id'>{$stepId}.{$childId}</span>";?>
|
||||
@@ -99,7 +105,15 @@
|
||||
<?php endif; endif; $childId++;?>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php if($result->caseResult == 'fail'):?>
|
||||
<tr><td></td><td></td><td></td><td></td><td></td><td></td>
|
||||
<td>
|
||||
<?php echo html::submitButton($lang->testcase->createBug);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
|
||||
Reference in New Issue
Block a user