Test result count should not include queued tests. Don't display queued test results in test results table.
This commit is contained in:
@@ -566,6 +566,9 @@ class testData{
|
|||||||
{
|
{
|
||||||
$oTest = new testData($oRow->testingId);
|
$oTest = new testData($oRow->testingId);
|
||||||
$oVersion = new version($oTest->iVersionId);
|
$oVersion = new version($oTest->iVersionId);
|
||||||
|
// dont show testing results of versions that are still queued.
|
||||||
|
if ($oVersion->sQueued == 'false')
|
||||||
|
{
|
||||||
$oApp = new application($oVersion->iAppId);
|
$oApp = new application($oVersion->iAppId);
|
||||||
$oSubmitter = new User($oTest->iSubmitterId);
|
$oSubmitter = new User($oTest->iSubmitterId);
|
||||||
if ($c % 2 == 1) { $bgcolor = 'color0'; } else { $bgcolor = 'color1'; }
|
if ($c % 2 == 1) { $bgcolor = 'color0'; } else { $bgcolor = 'color1'; }
|
||||||
@@ -583,6 +586,9 @@ class testData{
|
|||||||
echo "</tr>\n\n";
|
echo "</tr>\n\n";
|
||||||
$c++;
|
$c++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
echo "</table>","\n";
|
||||||
|
|
||||||
echo html_frame_end();
|
echo html_frame_end();
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -591,7 +597,13 @@ class testData{
|
|||||||
/* Get the number of TestResults in the database */
|
/* Get the number of TestResults in the database */
|
||||||
function getNumberOfQueuedTests()
|
function getNumberOfQueuedTests()
|
||||||
{
|
{
|
||||||
$hResult = query_appdb("SELECT count(*) as num_tests FROM testResults WHERE queued='true';");
|
$sQuery = "SELECT count(*) as num_tests
|
||||||
|
FROM testResults, appVersion
|
||||||
|
WHERE appVersion.versionId=testResults.versionId
|
||||||
|
and appVersion.queued='false'
|
||||||
|
and testResults.queued='true';";
|
||||||
|
|
||||||
|
$hResult = query_appdb($sQuery);
|
||||||
if($hResult)
|
if($hResult)
|
||||||
{
|
{
|
||||||
$row = mysql_fetch_object($hResult);
|
$row = mysql_fetch_object($hResult);
|
||||||
|
|||||||
Reference in New Issue
Block a user