예제 #1
0
    $pc1 = $_POST['waffirmpc1'];
    $tester_wired = $_POST['waffirmtester'];
    $sta1 = $_POST['waffirmsta1'];
    $sta2 = $_POST['waffirmsta2'];
    $ap1 = $_POST['waffirmap1'];
    $ap2 = $_POST['waffirmap2'];
    $env_id = $_POST['affirmWirelessEnvSel'];
    $s1name = $_POST['waffirms1name'];
    $s2name = $_POST['waffirms2name'];
    $s3name = $_POST['waffirms3name'];
    $ap1name = $_POST['waffirmap1name'];
    $ap2name = $_POST['waffirmap2name'];
    $setdefault = $_POST['affirmWirelessSetDefault'];
    $upgrade = $_POST['affirmWirelessUpgrade'];
    $platform_mgr->addJob(0, 0, 0, 0, 0, 0, $continuerun, $jobid, 'all', $job_type, $total_case, $args->productline_id, $args->tplan_id, $args->device_id, $args->build_id, $args->user_name, $client_ip, $suite);
    $platform_mgr->addWirelessAffirmRun($jobid, $env_id, $s1ip, $s1name, $s1p1, $s2ip, $s2name, $s2p1, $s3ip, $s3name, $s3p1, $s3p2, $s3p3, $s3p4, $s3p5, $s3p6, $pc1, $tester_wired, $sta1, $sta2, $ap1, $ap1name, $ap2, $ap2name, $setdefault, $upgrade);
    echo "<script> {parent.treeframe.location.href='dcnrdc://{$jobid}';this.location.href='/lib/dcnJobs/jobsView.php';} </script>";
    return 0;
}
function init_args()
{
    $args = new stdClass();
    $args->testproject_id = isset($_SESSION['testprojectID']) ? $_SESSION['testprojectID'] : 0;
    $args->currentUser = $_SESSION['currentUser'];
    $args->productline_id = $_COOKIE['job_productline_id'];
    $args->tplan_id = $_COOKIE['job_tplan_id'];
    $args->build_id = $_COOKIE['job_build_id'];
    $args->device_id = $_COOKIE['job_device_id'];
    $args->user_name = $_COOKIE['job_user_name'];
    return $args;
}