本文整理汇总了PHP中testplan::get_all方法的典型用法代码示例。如果您正苦于以下问题:PHP testplan::get_all方法的具体用法?PHP testplan::get_all怎么用?PHP testplan::get_all使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testplan
的用法示例。
在下文中一共展示了testplan::get_all方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dBug
new dBug($info);
echo "<pre> Check Build existence using testplan manager method 'get_builds()'";
echo "</pre>";
echo "<pre> testplan - get_builds(\$testplan_id,\$active=null,\$open=null)";
echo "</pre>";
echo "<pre> get_builds({$testplan->id})";
echo "</pre>";
$all_builds = $tplan_mgr->get_builds($testplan->id);
new dBug($all_builds);
// Final Clean-Up
$tproject_mgr->delete($testproject_id);
die;
// OLD CODE MUST BE REFACTORED
echo "<pre> testplan - get_all()";
echo "</pre>";
$all_testplans_on_tl = $tplan_mgr->get_all();
new dBug($all_testplans_on_tl);
$tplan_id = -1;
if (!is_null($all_testplans_on_tl)) {
$tplan_id = $all_testplans_on_tl[0]['id'];
}
echo "<pre> testplan - get_by_id(\$id)";
echo "</pre>";
echo "<pre> get_by_id({$tplan_id})";
echo "</pre>";
$tplan_info = $tplan_mgr->get_by_id($tplan_id);
new dBug($tplan_info);
$tplan_name = "TEST_TESTPLAN";
echo "<pre> testplan - get_by_name(\$name,\$tproject_id = 0)";
echo "</pre>";
echo "<pre> get_by_name({$tplan_name})";