* adjust result.

This commit is contained in:
wangyidong
2014-08-05 01:35:35 +00:00
parent 0759a26aaf
commit c2e1e06c95
3 changed files with 7 additions and 3 deletions
+2
View File
@@ -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?';
+2
View File
@@ -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 = '您确认要移除该用例吗?';
+3 -3
View File
@@ -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?> &nbsp;<span class='result-tip'></span></strong>
<strong><?php echo $lang->testcase->result?> &nbsp;<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'> &nbsp; <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'> &nbsp; <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>