\n");
print ("
\n");
print ("$title\n");
print ("\n");
print ("\n");
print("$title
\n");
}
public function PrintTestCases($testSuite, $dumpFilePath, $testType)
{
try
{
self::PrintTestTableHeader($testSuite, "Test Case" , "Description", "Prerequisite");
$dbPath = Utils::GetDbPath($dumpFilePath);
$dbName = Utils::GetPath($dbPath);
if (file_exists($dbName))
{
$db = new SqliteDB();
$db->Open($dbName);
$vm = new SqliteVM($db, true);
$status = $vm->Execute("Select * from TestCase WHERE TestType=\"$testType\" Order by ExecuteSequence;");
while ($status == SQLITE_ROW)
{
$testName = $vm->GetString("TestName");
$description = $vm->GetString("Description");
$prerequisite = $vm->GetString("Prerequisite");
print("\n");
print(" | \n");
printf("%s | \n%s | %s | \n", $testName, $description, $prerequisite);
print(" | \n");
print("
\n");
$status = $vm->NextRow();
}
unset($vm);
unset($db);
}
}
catch (SqliteException $s)
{
print $s->GetExceptionMessage();
}
self::printTableEnd();
}
public function PrintTestTableHeader($caption="", $c1="", $c2="", $c3="")
{
print("\n");
print("$caption
");
print("\n");
printf("  | \n%s | \n%s | %s | \n", $c1, $c2, $c3);
print("
\n");
}
public function printTableEnd()
{
print("
\n");
}
public function PrintSelectTestMode()
{
print("Select Test Mode
\n");
print("\n");
print("\n");
print("
\n");
}
public function PrintSelectOutput()
{
print("Select Output
\n");
print("\n");
print("\n");
print("
\n");
}
public function PrintHtmlFooter()
{
print ("\n");
print ("