} 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); } $arrDataOAW = getDataForRegBuild($_GET['buildID'] . "_OAW", $regType); if (!is_array($arrData)) { $errStr = "BUILD '" . $_GET['buildID'] . "' is NOT FOUND!<br>PLEASE SEARCH ANOTHER BUILD!"; } else { $buildTable = createSearchRegBuildTable($arrData, $_GET['buildID'], $arr[1], 0, $regType); } if (is_array($arrDataOAW)) { $buildTableOAW = createSearchRegBuildTable($arrDataOAW, $_GET['buildID'] . "_OAW", $arr[1], 1, $regType); } } $tableHeader = "<tr>\r\n <th style=\"width: 3%\">Build</th>\r\n <th style=\"width: 5%\">Type</th>\r\n <th style=\"width: 3%\">Version</th>\r\n <th style=\"width: 3%\">Started</th>\r\n <th style=\"width: 23%\">Total-Pass-Fail</th>\r\n <th style=\"width: 4%\">RunStatus</th>\r\n <th style=\"width: 4%\">Analysis</th>\r\n <th style=\"width: 15%\">Chart</th>\r\n <th style=\"width: 37%\">Comments</th>\r\n <th style=\"width: 4%\">Bugs</th>\r\n </tr> \r\n <tr><td colspan=\"{\$columnCount}\"></td></tr>\r\n <tr><td colspan=\"{\$columnCount}\"></td></tr>\r\n <tr><td colspan=\"{\$columnCount}\"></td></tr>"; $smarty = new TLSmarty(); $smarty->assign('buildTable', $buildTable); $smarty->assign('buildTableOAW', $buildTableOAW);
$errStrGren = "NO GRENACHE SMOKE RUNS FOUND FOR BUILD '" . $_GET['buildID'] . "'!"; } else { $buildTableGren = createSearchGrenBuildTable($arrDataGren, $_GET['buildID'], $arr[1]); } if (is_array($arrDataOAWGren)) { $buildTableOAWGren = createSearchGrenBuildTable($arrDataOAWGren, $_GET['buildID'] . "_OAW", $arr[1], 1); } $tableHeaderGren = "<tr>\r\n <th style=\"width: 6%\">Build</th>\r\n <th style=\"width: 6%\">Type</th>\r\n <th style=\"width: 3%\">Version</th>\r\n <th style=\"width: 3%\">Platform</th>\r\n <th style=\"width: 3%\">Started</th>\r\n <th style=\"width: 23%\">Total-Pass-Fail</th>\r\n <th style=\"width: 3%\">RunStatus</th>\r\n <th style=\"width: 3%\">Analysis</th>\r\n <th style=\"width: 15%\">Chart</th>\r\n <th style=\"width: 32%\">Comments</th>\r\n <th style=\"width: 3%\">Bugs</th>\r\n\r\n </tr>\r\n <tr><td colspan=\"{\$columnCountGren}\"></td></tr>\r\n <tr><td colspan=\"{\$columnCountGren}\"></td></tr>\r\n <tr><td colspan=\"{\$columnCountGren}\"></td></tr>"; /////////////////////////////////////////////////////////////////////////////////////////////// Get GREN Regression Data $buildDataGrenReg = createDataForGrenRegBuild($_GET['buildID']); writeRegBuildCasesToFile($buildDataGrenReg, $_GET['buildID'], "grenreg"); $arrDataGrenReg = getDataForGrenRegBuild($_GET['buildID']); // get result for Alcatel build $buildDataOAWGrenReg = createDataForGrenRegBuild($_GET['buildID'] . "_OAW"); if (is_array($buildDataOAWGrenReg)) { writeRegBuildCasesToFile($buildDataOAWGrenReg, $_GET['buildID'] . "_OAW", "grenreg"); } $arrDataOAWGrenReg = getDataForGrenRegBuild($_GET['buildID'] . "_OAW"); if (!is_array($arrDataGrenReg)) { $errStrGrenReg = "NO GRENACHE REGRESSION RUNS FOUND FOR BUILD '" . $_GET['buildID'] . "'!"; } else { $buildTableGrenReg = createGrenRegBuildTable($arrDataGrenReg, $_GET['buildID'], $arr[1]); } if (is_array($arrDataOAWGrenReg)) { $buildTableOAWGrenReg = createGrenRegBuildTable($arrDataOAWGrenReg, $_GET['buildID'] . "_OAW", $arr[1], 1); } $tableHeaderGrenReg = "<tr>\r\n <th style=\"width: 6%\">Build</th>\r\n <th style=\"width: 6%\">Type</th>\r\n <th style=\"width: 3%\">Version</th>\r\n <th style=\"width: 3%\">Started</th>\r\n <th style=\"width: 23%\">Total-Pass-Fail</th>\r\n <th style=\"width: 3%\">RunStatus</th>\r\n <th style=\"width: 3%\">Analysis</th>\r\n <th style=\"width: 15%\">Chart</th>\r\n <th style=\"width: 35%\">Comments</th>\r\n <th style=\"width: 3%\">Bugs</th>\r\n\r\n </tr>\r\n <tr><td colspan=\"{\$columnCountGrenReg}\"></td></tr>\r\n <tr><td colspan=\"{\$columnCountGrenReg}\"></td></tr>\r\n <tr><td colspan=\"{\$columnCountGrenReg}\"></td></tr>"; } } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $smarty = new TLSmarty();