echo "</pre>";
$last_execution = $tcase_mgr->get_last_execution($tcase_id, $version_id, $tplan_id, $build_id);
new dBug($last_execution);
$tcversion_id = 5;
$tplan_id = 8;
echo "<pre> testcase - get_version_exec_assignment(\$tcversion_id,\$tplan_id)";
echo "</pre>";
echo "<pre>            get_version_exec_assignment({$tcversion_id},{$tplan_id})";
echo "</pre>";
$version_exec_assignment = $tcase_mgr->get_version_exec_assignment($tcversion_id, $tplan_id);
new dBug($version_exec_assignment);
echo "<pre> testcase - get_linked_cfields_at_design(\$id,\$parent_id=null,\$show_on_execution=null)";
echo "</pre>";
echo "<pre>            get_linked_cfields_at_design({$tcase_id})";
echo "</pre>";
$linked_cfields_at_design = $tcase_mgr->get_linked_cfields_at_design($tcase_id);
new dBug($linked_cfields_at_design);
echo "<pre> testcase - get_linked_cfields_at_execution(\$id,\$parent_id=null,<br>\n                                                       \$show_on_execution=null,<br>\n                                                       \$execution_id=null,\$testplan_id=null)";
echo "</pre>";
echo "<pre>            get_linked_cfields_at_execution({$tcase_id})";
echo "</pre>";
$linked_cfields_at_execution = $tcase_mgr->get_linked_cfields_at_execution($tcase_id);
new dBug($linked_cfields_at_execution);
echo "<pre> testcase - html_table_of_custom_field_inputs(\$id,\$parent_id=null,\$scope='design',\$name_suffix='')";
echo "</pre>";
echo "<pre>            html_table_of_custom_field_inputs({$tcase_id})";
echo "</pre>";
$table_of_custom_field_inputs = $tcase_mgr->html_table_of_custom_field_inputs($tcase_id);
echo "<pre>";
echo $table_of_custom_field_inputs;
echo "</pre>";
Example #2
0
// $styleReportContext = array('font' => array('bold' => true),
// 							'borders' => array(	'outline' =>
// 								   				array('style' => PHPExcel_Style_Border::BORDER_THICK),
// 								   				'horizontal' =>
// 								   				array('style' => PHPExcel_Style_Border::BORDER_THIN),
// 								  ),
// 							'fill' => array('type' => PHPExcel_Style_Fill::FILL_SOLID,
// 								  			'startcolor' => array( 'argb' => 'FF9999FF'))
// 						   );
$styleReportContext = array('font' => array('bold' => true));
$styleDataHeader = array('font' => array('bold' => true), 'borders' => array('outline' => array('style' => PHPExcel_Style_Border::BORDER_MEDIUM), 'vertical' => array('style' => PHPExcel_Style_Border::BORDER_THIN)), 'fill' => array('type' => PHPExcel_Style_Fill::FILL_SOLID, 'startcolor' => array('argb' => 'FF9999FF')));
$lines2write = array(array($labels['xls_jmexport_testproject'], $gui->tproject_name), array($labels['xls_jmexport_testplan'], $gui->tplan_name), array($labels['xls_jmexport_created'], localize_dateOrTimeStamp(null, $dummy, 'date_format', time())), array($labels['xls_jmexport_author'], $args->author));
$tcaseHeader = array($labels['xls_jmexport_testcase'], $labels['xls_jmexport_testobjectives'], $labels['xls_jmexport_preconditions'], $labels['xls_jmexport_steps'], $labels['xls_jmexport_expected_result'], $labels['xls_jmexport_result'], $labels['xls_jmexport_tester'], $labels['xls_jmexport_result_comment']);
// Need to get CF to know how many additional columns need to be added
// IMPORTANT NOTICE - cf are ordered by display order - fantastic!!!
$cfields = $tcaseMgr->get_linked_cfields_at_design(null, null, null, null, $args->tproject_id);
$cfieldsHeader = array();
$colOffSet = 0;
if (!is_null($cfields)) {
    foreach ($cfields as $cfid => $cf) {
        $cfieldsHeader[] = $cf['label'];
    }
    $colOffSet = count($cfieldsHeader);
}
$statusCellLetter = $cellRange[$colOffSet + array_search($labels['xls_jmexport_result'], $tcaseHeader)];
$dataHeaders = array_merge($cfieldsHeader, $tcaseHeader);
$fp = null;
$tmpfname = tempnam($tmp_dir, "resultsTCCSV-tmp");
$file2download = $gui->tproject_name . '_' . $gui->tplan_name;
if ($gui->show_platforms) {
    $file2download .= '_' . $gui->platformSet[$args->platform_id];