示例#1
0
            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];
        $platform = $regs[3];
        if (ereg("(.*)\\_(.*)", $build, $regs)) {
            $build = $regs[1] . "." . $regs[2];
示例#2
0
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)) {
        writeRegBuildCasesToFile($buildDataOAW, $_GET['buildID'] . "_OAW", $regType);
    }
示例#3
0
            continue;
        }
        ereg("([a-z]+)-([0-9]+)", $name, $regs);
        $type = $regs[1];
        $build = $regs[2];
        if ($type == "comment") {
            updateRegComment($build, "", $smoke, "smokeregResults");
        }
        if ($type == "bug") {
            updateBugs($build, "", $smoke, "smokeregResults");
        }
        if ($type == "analysis") {
            updateAnalysisStatus($build, "", $smoke, "smokeregResults");
        }
        if ($type == "runstatus") {
            updateRunStatus($build, $smoke, "smokeregResults");
        }
    }
}
$arrData = getDataForRegression("smokereg");
$releaseTables = array();
$releaseCountID = 0;
if (is_array($arrData) && count($arrData) > 0) {
    $noPrev = "";
    foreach ($arrData as $release_name => $release) {
        $releaseTables[releases][$release_name][buildTables] = array();
        $buildCountID = 0;
        $smokeCount = 0;
        krsort($release[builds], SORT_NUMERIC);
        foreach ($release[builds] as $buildID => $build) {
            $releaseTables[releases][$release_name][buildTables][$buildID] = createRegressionTable($build, $buildID, $release_name, $buildCountID, $arr[1], "smokereg");