当前位置: 首页>>代码示例>>PHP>>正文


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怎么用?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>";
开发者ID:CristianOspinaOspina,项目名称:testlinkpruebas,代码行数:31,代码来源:testcase.class.test.php

示例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];
开发者ID:moraesmv,项目名称:testlink-code,代码行数:31,代码来源:resultsTCCSV.php


注:本文中的testcase::get_linked_cfields_at_design方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。