本文整理汇总了PHP中testplan::get_exec_device_group_by_suite方法的典型用法代码示例。如果您正苦于以下问题:PHP testplan::get_exec_device_group_by_suite方法的具体用法?PHP testplan::get_exec_device_group_by_suite怎么用?PHP testplan::get_exec_device_group_by_suite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testplan
的用法示例。
在下文中一共展示了testplan::get_exec_device_group_by_suite方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testplan
require_once 'common.php';
require '../../third_party/PHPExcel/PHPExcel.php';
$args = init_args($db);
$tplan_mgr = new testplan($db);
$allsuite = $tplan_mgr->get_all_suites();
$platformSet = $tplan_mgr->getPlatforms($args->tplan_id, array('outputFormat' => 'map'));
$testplan = $tplan_mgr->get_by_id($args->tplan_id);
if ($args->build_id == 1) {
$testbuild = array('name' => '任意版本', 'notes' => '');
} else {
$testbuild = $tplan_mgr->get_build_by_id($args->tplan_id, $args->build_id);
}
if ($args->device_id == '1') {
$alldevice = $platformSet;
foreach ($alldevice as $device_id => $device_name) {
$results[$device_id] = $tplan_mgr->get_exec_device_group_by_suite($args->tplan_id, $args->build_id, $device_id, $args->stack);
}
} else {
$alldevice = array($args->device_id => $platformSet[$args->device_id]);
$results[$args->device_id] = $tplan_mgr->get_exec_device_group_by_suite($args->tplan_id, $args->build_id, $args->device_id, $args->stack);
}
ob_clean();
$objPHPExcel = new PHPExcel();
$objPHPExcel->getProperties()->setCreator('DCN TestLink')->setLastModifiedBy('DCN TestLink')->setTitle('DCN Test Report');
$objPHPExcel->getDefaultStyle()->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER);
$objPHPExcel->getDefaultStyle()->getAlignment()->setWrapText(TRUE);
$allindex = 0;
$deviceindex = 0;
foreach ($alldevice as $deviceid => $devicename) {
if ($allindex != 0) {
$objWorkSheet = new PHPExcel_Worksheet($objPHPExcel, $deviceid . '_Summary');