* Adjust code for testtask batchRun.
This commit is contained in:
@@ -166,19 +166,39 @@ if($shortcut.size() > 0)
|
||||
$(function(){$('#casesForm').table();})
|
||||
<?php endif;?>
|
||||
$("thead").find('.c-assignedTo').attr('class', '');
|
||||
function confirmAction()
|
||||
function runAutocase()
|
||||
{
|
||||
var caseIDList = [];
|
||||
$.each($('input[name^=caseIDList]:checked'),function(){
|
||||
caseIDList.push($(this).val());
|
||||
});
|
||||
|
||||
var url = createLink('zanode', 'ajaxRunZTFScript', 'scriptID=<?php echo $automation->id;?>');
|
||||
|
||||
var postData = {'caseIDList' : caseIDList.join(',')};
|
||||
$.post(url, postData, function(result)
|
||||
{
|
||||
if(result.result == 'fail')
|
||||
{
|
||||
alert(result.message);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}, 'json');
|
||||
}
|
||||
|
||||
function confirmAction(obj)
|
||||
{
|
||||
if(confirm(runCaseConfirm))
|
||||
{
|
||||
setFormAction(confirmURL, '', '#caseList');
|
||||
var result = runAutocase();
|
||||
if(result) setFormAction(confirmURL, '', '#caseList');
|
||||
}
|
||||
else
|
||||
{
|
||||
setFormAction(cancelURL, '', '#caseList');
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -164,6 +164,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(!empty($result->stepResults)):?>
|
||||
<?php foreach($result->stepResults as $stepID => $stepResult):?>
|
||||
<div class="modal fade" id="stepResult<?php echo $result->id . '-' .$stepID;?>">
|
||||
<div class="modal-dialog">
|
||||
@@ -177,6 +178,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
<div id='resultTip' class='hide'><?php if($count > 0) echo $failCount > 0 ? "<span>" . sprintf($lang->testtask->showFail, $failCount) . "</span>":"<span class='text-success'>{$lang->testtask->passAll}</span>";?></div>
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user