* finish the task #560.
This commit is contained in:
@@ -50,6 +50,7 @@ $lang->testtask->unlinkedCases = 'Unlinked cases';
|
||||
$lang->testtask->linkedCases = 'Linked cases';
|
||||
$lang->testtask->confirmDelete = 'Are you sure to delete this test task?';
|
||||
$lang->testtask->passAll = 'Pass all';
|
||||
$lang->testtask->pass = 'Pass';
|
||||
|
||||
$lang->testtask->byModule = 'By module';
|
||||
$lang->testtask->assignedToMe = 'Assgined to me';
|
||||
|
||||
@@ -50,6 +50,7 @@ $lang->testtask->unlinkedCases = '未关联用例列表';
|
||||
$lang->testtask->linkedCases = '已关联用例列表';
|
||||
$lang->testtask->confirmDelete = '您确认要删除该测试任务吗?';
|
||||
$lang->testtask->passAll = '全部通过';
|
||||
$lang->testtask->pass = '通过';
|
||||
|
||||
$lang->testtask->byModule = '按模块';
|
||||
$lang->testtask->assignedToMe = '指派给我';
|
||||
|
||||
@@ -219,11 +219,18 @@ class testtaskModel extends model
|
||||
}
|
||||
|
||||
/* Create result of every step. */
|
||||
foreach($this->post->steps as $stepID =>$stepResult)
|
||||
if(isset($this->post->steps))
|
||||
{
|
||||
$step['result'] = $stepResult;
|
||||
$step['real'] = $this->post->reals[$stepID];
|
||||
$stepResults[$stepID] = $step;
|
||||
foreach($this->post->steps as $stepID =>$stepResult)
|
||||
{
|
||||
$step['result'] = $stepResult;
|
||||
$step['real'] = $this->post->reals[$stepID];
|
||||
$stepResults[$stepID] = $step;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$stepResults = array();
|
||||
}
|
||||
|
||||
/* Pares the extras */
|
||||
|
||||
@@ -38,8 +38,15 @@
|
||||
<tr class='a-center'>
|
||||
<td colspan='5'>
|
||||
<?php
|
||||
echo html::submitButton();
|
||||
echo html::submitButton($lang->testtask->passAll, "onclick=$('#passall').val(1)");
|
||||
if(empty($run->case->steps))
|
||||
{
|
||||
echo html::submitButton($lang->testtask->pass, "onclick=$('#passall').val(1)");
|
||||
}
|
||||
else
|
||||
{
|
||||
echo html::submitButton();
|
||||
echo html::submitButton($lang->testtask->passAll, "onclick=$('#passall').val(1)");
|
||||
}
|
||||
echo html::hidden('case', $run->case->id);
|
||||
echo html::hidden('version', $run->case->version);
|
||||
echo html::hidden('passall', 0);
|
||||
|
||||
Reference in New Issue
Block a user