當前位置: 首頁>>代碼示例>>PHP>>正文


PHP testplan::get_all方法代碼示例

本文整理匯總了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})";
開發者ID:CristianOspinaOspina,項目名稱:testlinkpruebas,代碼行數:31,代碼來源:testplan.class.test.php


注:本文中的testplan::get_all方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。