本文整理汇总了PHP中testplan::modify_device_build_exec_fail_type方法的典型用法代码示例。如果您正苦于以下问题:PHP testplan::modify_device_build_exec_fail_type方法的具体用法?PHP testplan::modify_device_build_exec_fail_type怎么用?PHP testplan::modify_device_build_exec_fail_type使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testplan
的用法示例。
在下文中一共展示了testplan::modify_device_build_exec_fail_type方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init_args
require_once 'displayMgr.php';
$templateCfg = templateConfiguration();
$args = init_args($db);
$tplan_id = $_GET['tplan_id'];
$build_id = $_GET['build_id'];
$device_id = $_GET['device_id'];
$suite_id = $_GET['suite_id'];
$failtype = $_GET['failtype'];
$args->format = 0;
$stack = isset($_GET['stack']) ? $_GET['stack'] : 0;
$mystack = isset($_GET['mystack']) ? $_GET['mystack'] : 0;
$tplan_mgr = new testplan($db);
$platformSet = $tplan_mgr->getPlatforms($tplan_id, array('outputFormat' => 'map'));
if ($args->device_id == '1') {
foreach ($platformSet as $this_device_id => $device_name) {
$tplan_mgr->modify_device_build_exec_fail_type($tplan_id, $build_id, $this_device_id, $mystack, $suite_id, $failtype);
}
} else {
$tplan_mgr->modify_device_build_exec_fail_type($tplan_id, $build_id, $device_id, $mystack, $suite_id, $failtype);
}
echo "<script>alert('保存完成!');</script>";
function init_args(&$dbHandler)
{
$iParams = array("apikey" => array(tlInputParameter::STRING_N, 32, 64), "tproject_id" => array(tlInputParameter::INT_N), "tplan_id" => array(tlInputParameter::INT_N), "build_id" => array(tlInputParameter::INT_N), "device_id" => array(tlInputParameter::INT_N), "format" => array(tlInputParameter::INT_N));
$args = new stdClass();
$pParams = R_PARAMS($iParams, $args);
if (!is_null($args->apikey)) {
$cerbero = new stdClass();
$cerbero->args = new stdClass();
$cerbero->args->tproject_id = $args->tproject_id;
$cerbero->args->tplan_id = $args->tplan_id;