Пример #1
0
$regType = $_GET[regr] == "minireg" ? "minireg" : "smoke";
$tableQuery = $_GET[regr] == "minireg" ? "miniregResults" : "regressionResults";
if (isset($_POST['Save'])) {
    foreach ($_POST as $name => $val) {
        if ($val == "Save") {
            continue;
        }
        ereg("([a-z]+)-([0-9]+)", $name, $regs);
        $type = $regs[1];
        $build = $regs[2];
        if ($type == "comment") {
            updateRapRegComment($build, $val, $tableQuery);
        } elseif ($type == "bug") {
            updateBugs2($build, $val, $tableQuery);
        } elseif ($type == "analysis") {
            updateAnalysisStatus2($build, $val, $tableQuery);
        } elseif ($type == "runstatus") {
            updateRunStatus($build, $val, $tableQuery);
        }
    }
}
if (!ereg("[0-9]+", $_GET['buildID'])) {
    $errStr = "BUILD ID '" . $_GET['buildID'] . "' is NOT VALID!<br>PLEASE SEARCH ANOTHER BUILD!";
} else {
    // get data for AOS image
    $buildData = createDataForRegBuild($_GET['buildID'], $regType);
    writeRegBuildCasesToFile($buildData, $_GET['buildID'], $regType);
    $arrData = getDataForRegBuild($_GET['buildID'], $regType);
    // get result for Alcatel build
    $buildDataOAW = createDataForRegBuild($_GET['buildID'] . "_OAW", $regType);
    if (is_array($buildDataOAW)) {
Пример #2
0
if (isset($_POST['Save2'])) {
    foreach ($_POST as $name => $smoke) {
        if ($smoke == "Save2") {
            continue;
        }
        ereg("([a-z]+)-([0-9]+)", $name, $regs);
        $type = $regs[1];
        $build = $regs[2];
        if ($type == "comment") {
            updateRapRegComment($build, $smoke, "regressionResults");
        }
        if ($type == "bug") {
            updateBugs2($build, $smoke, "regressionResults");
        }
        if ($type == "analysis") {
            updateAnalysisStatus2($build, $smoke);
        }
        if ($type == "runstatus") {
            updateRunStatus($build, $smoke);
        }
    }
}
/////////////////////////////////////////////////////////////////////////// Update for RAP SMOKE
if (isset($_POST['Save3'])) {
    foreach ($_POST as $name => $smoke) {
        if ($smoke == "Save3") {
            continue;
        }
        ereg("([a-z]+)-(.+)-([a-zA-Z]+)", $name, $regs);
        $type = $regs[1];
        $build = $regs[2];