require_once "../../config.inc.php"; require_once "common.php"; testlinkInitPage($db, false, false, "checkRights"); $templateCfg = templateConfiguration(); $args = init_args(); $platform_mgr = new tlPlatform($db, $args->testproject_id); $gui = new stdClass(); $envno = $_POST['affirmWirelessEnvSel']; if ($envno != 4) { $job_type = $suite = 'waffirm'; } if ($envno == 4) { $job_type = $suite = 'waffirm_X86'; } $continuerun = $_POST['WirelesscontinueRun']; $job_is_running = $platform_mgr->getJobExist($args->productline_id, $args->tplan_id, $args->device_id, $args->build_id, $job_type); $total_case = $platform_mgr->getJobTotalCase($args->tplan_id, $args->device_id, $args->build_id, $suite, 'all', $continuerun, 0); if ($job_is_running) { echo "<script> {window.alert('该环境上已经有任务在在执行中,请检查');location.href='/lib/dcnJobs/jobsView.php'} </script>"; } if ($total_case == 0) { echo "<script> {window.alert('该版本上没有制定覆盖策略(测试例为0),请检查');location.href='/lib/dcnJobs/jobsView.php'} </script>"; } else { //生成一个jobid:user+时间戳 $jobid = (string) $args->user_name . (string) time(); $client_ip = getIP(); $s1ip = $_POST['waffirms1ip']; $s2ip = $_POST['waffirms2ip']; $s1p1 = $_POST['waffirms1p1']; $s2p1 = $_POST['waffirms2p1']; $s3ip = $_POST['waffirms3ip'];