Beispiel #1
0
            $machine[$hostnameID][client] = $client;
            $machine[$hostnameID][hostnameID] = $hostnameID;
            $machine[$hostnameID][hostname] = $hostname;
        }
        $data[runID][$myrow['runID']][machineIPAddr] = $machine[$myrow['runMachineID']][ip];
        $data[runID][$myrow['runID']][p4Client] = $machine[$myrow['runMachineID']][client];
        $data[runID][$myrow['runID']][hostname] = $machine[$myrow['runMachineID']][hostname];
        $data[runID][$myrow['runID']][scriptCount] = 0;
        $data[runID][$myrow['runID']][caseCount] = 0;
        $data[runID][$myrow['runID']][scripts][passed] = 0;
    }
}
getTestScriptResults($data, $condition, $limitedRunIDs);
####################################################################### Populate Form values
# get all the usernames
$users = getListOfUsersFromAutoSmoke();
$users = array("0" => "All") + $users;
# get all the possible runPurposes
$runPurposes = getListOfRunPurposes();
$runPurposes = array("0" => "All") + $runPurposes;
# get all the possible status'
$runStatus = getListOfRunStatus();
$runStatus = array("0" => "All") + $runStatus;
# get everywhere we've run on
$hostnames = getListOfHostnames();
$hostnames = array("0" => "All", "1" => "UNKNOWN") + $hostnames;
# get all the versions and builds
$releaseArray = getListOfSmokeBuilds();
// currently, hardcoded to limit it to any 10 builds
$limiting = 10;
natSortKey($releaseArray);
Beispiel #2
0
        $linkID = connectDB();
        // store queueIDs in array
        $regIDs = explode(",", $regIDform);
        // individual queueID
        foreach ($regIDs as $regID) {
            $result = mysql_query(" select runExecuteMethod from runs where runID=" . $regID);
            $row = mysql_fetch_assoc($result);
            $sql = "update runs set runExecuteMethod='" . $row[runExecuteMethod] . " -suite.runtype reg' where runID=" . $regID;
            $result = mysql_query($sql);
        }
        $error = "Runs (" . $regIDform . ") are updated successfully as REGRESSION runs!";
    }
}
#######################################################################
$smarty = new TLSmarty();
$smarty->assign("error", $error);
$smarty->assign("flag", $flag);
$smarty->assign("versions", $versionsList);
$smarty->assign("builds", $buildsList);
$smarty->assign("releases", array(0 => " ") + $releaseNames);
$smarty->assign("users", getListOfUsersFromAutoSmoke());
$smarty->assign("userID", is_null($userID) ? 0 : $userID);
$smarty->assign("chosenRunID", is_null($runIDform) ? "" : $runIDform);
$smarty->assign("chosenRegID", is_null($regIDform) ? "" : $regIDform);
$smarty->assign("chosenQueueID", is_null($queueIDform) ? "" : $queueIDform);
$smarty->assign("chosenReleaseID", $_GET['chosenReleaseID']);
$smarty->assign("chosenVersionID", $_GET['chosenVersionID']);
$smarty->display('dbmodify.tpl');
?>