本文整理汇总了PHP中testcase::get_linked_cfields_at_design方法的典型用法代码示例。如果您正苦于以下问题:PHP testcase::get_linked_cfields_at_design方法的具体用法?PHP testcase::get_linked_cfields_at_design怎么用?PHP testcase::get_linked_cfields_at_design使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testcase
的用法示例。
在下文中一共展示了testcase::get_linked_cfields_at_design方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dBug
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>";
示例2: array
// $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];