本文整理匯總了PHP中testcase::deleteKeywords方法的典型用法代碼示例。如果您正苦於以下問題:PHP testcase::deleteKeywords方法的具體用法?PHP testcase::deleteKeywords怎麽用?PHP testcase::deleteKeywords使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類testcase
的用法示例。
在下文中一共展示了testcase::deleteKeywords方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testsuite
if ($args->edit == 'testsuite') {
$opt_cfg->to->lbl = lang_get('kword_to_be_assigned_to_testcases');
$opt_cfg->to->map = null;
// We are going to walk all test suites contained
// in the selected container, and assign/remove keywords on each test case.
$tsuite_mgr = new testsuite($db);
$testsuite = $tsuite_mgr->get_by_id($args->id);
$keyword_assignment_subtitle = lang_get('test_suite') . TITLE_SEP . $testsuite['name'];
$tcs = $tsuite_mgr->get_testcases_deep($args->id, 'only_id');
if ($loop2do = sizeof($tcs)) {
$can_do = 1;
if ($args->bAssignTestSuite) {
$result = 'ok';
for ($idx = 0; $idx < $loop2do; $idx++) {
if (is_null($args->keywordArray)) {
$tcase_mgr->deleteKeywords($tcs[$idx]);
} else {
$tcase_mgr->addKeywords($tcs[$idx], $args->keywordArray);
}
}
}
}
} else {
if ($args->edit == 'testcase') {
$doRecall = true;
$can_do = 1;
$tcData = $tcase_mgr->get_by_id($args->id);
if (sizeof($tcData)) {
$keyword_assignment_subtitle = lang_get('test_case') . TITLE_SEP . $tcData[0]['name'];
}
if ($args->bAssignTestCase) {