* adjust result.
This commit is contained in:
@@ -76,6 +76,8 @@ $lang->testtask->linkByBug = 'Link by bug';
|
||||
$lang->testtask->passAll = 'Pass all';
|
||||
$lang->testtask->pass = 'Pass';
|
||||
$lang->testtask->fail = 'Fail';
|
||||
$lang->testtask->showResult = 'Executed %s times';
|
||||
$lang->testtask->showFail = 'Failed %s times';
|
||||
|
||||
$lang->testtask->confirmDelete = 'Are you sure to delete this test build?';
|
||||
$lang->testtask->confirmUnlinkCase = 'Are you sure to unlink this case?';
|
||||
|
||||
@@ -76,6 +76,8 @@ $lang->testtask->linkByBug = '按Bug关联';
|
||||
$lang->testtask->passAll = '全部通过';
|
||||
$lang->testtask->pass = '通过';
|
||||
$lang->testtask->fail = '失败';
|
||||
$lang->testtask->showResult = '共执行%s次';
|
||||
$lang->testtask->showFail = '失败%s次';
|
||||
|
||||
$lang->testtask->confirmDelete = '您确认要删除该测试任务吗?';
|
||||
$lang->testtask->confirmUnlinkCase = '您确认要移除该用例吗?';
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<?php if(isset($build)):?>
|
||||
<div class='pull-right'><strong class='text-important'><?php echo $lang->testtask->build . $lang->colon . $build;?></strong></div>
|
||||
<?php endif; ?>
|
||||
<strong><span><?php echo $count;?></span> <?php echo $lang->testcase->result?> <span class='result-tip'></span></strong>
|
||||
<strong><?php echo $lang->testcase->result?> <span class='text-info'> <?php printf($lang->testtask->showResult, $count)?></span> <span class='result-tip'></span></strong>
|
||||
</caption>
|
||||
<?php $failCount = 0; ?>
|
||||
<?php foreach($results as $result):?>
|
||||
@@ -41,7 +41,7 @@
|
||||
if($class != 'success') $failCount++;
|
||||
?>
|
||||
<tr class='result-item <?php echo $class?>' style='cursor: pointer'>
|
||||
<td class='w-120px'> <i class='icon-circle<?php if($result->caseResult == 'n/a') echo '-empty';?> text-<?php echo $class;?>'></i> RESULT#<?php echo $result->id?></td>
|
||||
<td class='w-120px'> <i class='icon-circle<?php if($result->caseResult == 'n/a') echo '-empty';?> text-<?php echo $class;?>'></i> #<?php echo $result->id?></td>
|
||||
<td class='w-180px'><?php echo $result->date;?></td>
|
||||
<td><?php echo $users[$result->lastRunner] . ' ' . $lang->testtask->runCase;?></td>
|
||||
<td class='text-right'><strong class='text-<?php echo $class;?>'><?php echo $lang->testcase->resultList[$result->caseResult]?></strong></td>
|
||||
@@ -82,7 +82,7 @@
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<div id='resultTip' class='hide'><?php if($count > 0) echo $failCount > 0 ? "<span class='text-danger'>{$failCount} {$lang->testtask->fail}</span>":"<span class='text-success'>{$lang->testtask->passAll}</span>";?></div>
|
||||
<div id='resultTip' class='hide'><?php if($count > 0) echo $failCount > 0 ? "<span class='text-danger'>" . sprintf($lang->testtask->showFail, $failCount) . "</span>":"<span class='text-success'>{$lang->testtask->passAll}</span>";?></div>
|
||||
<style>.table-hover tr.result-detail:hover td {background: #fff}</style>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user