public TestRunner(bool embedded, TestEnvironment environment, bool stopOnError, string softwareUnderTest) { _environment = environment; _stopOnError = stopOnError; _embedded = embedded; _softwareUnderTest = softwareUnderTest; }
private static void TestXPSP2(List<TestEnvironment> listEnvironments) { // Test using PostgreSQL... TestEnvironment tempEnv2 = new TestEnvironment("Windows XP SP2", "New installation", "PostgreSQL 8.3.1", WindowxXPPath, "PostgreSQL 8.3.1"); tempEnv2.PostInstallCommands.Add(new PostInstallCommand(@"C:\Program Files\hMailServer\Bin\DBSetup.exe", "/silent ServerType:PGSQL ServerAddress:localhost DatabaseName:hMailServer Authentication:Server CreateNew:Yes Username:postgres Password:build")); listEnvironments.Add(tempEnv2); // One more complex using MySQL. TestEnvironment tempEnv1 = new TestEnvironment("Windows XP SP2", "New installation", "MySQL 5.0.51", WindowxXPPath, "MySQL 5.0.51"); tempEnv1.PostInstallCommands.Add(new PostInstallCommand(@"C:\Program Files\hMailServer\Bin\DBSetup.exe", "/silent ServerType:MySQL ServerAddress:localhost DatabaseName:hMailServer Authentication:Server CreateNew:Yes Username:root Password:build")); tempEnv1.PostInstallFileCopy.Add(new PostInstallFileCopy(Path.Combine(GetTestDataDir(), GetMySQLLib()), @"C:\Program Files\hMailServer\Bin\libmySQL.dll")); listEnvironments.Add(tempEnv1); // One basic using internal database listEnvironments.Add(new TestEnvironment("Windows XP SP2", "New installation", "Internal", WindowxXPPath, "Windows XP SP2, .NET Framework 2.0")); // One more complex using SQL Server 2005. TestEnvironment tempEnv = new TestEnvironment("Windows XP SP2", "New installation", "SQL Server 2005", WindowxXPPath, "Windows XP SP2, SQL Server 2005"); tempEnv.PostInstallCommands.Add(new PostInstallCommand(@"C:\Program Files\hMailServer\Bin\DBSetup.exe", "/silent ServerType:MSSQL ServerAddress:HI DatabaseName:hMailServer Authentication:Windows CreateNew:Yes")); listEnvironments.Add(tempEnv); // Test one using SQL Server 2000. tempEnv = new TestEnvironment("Windows XP SP2", "New installation", "SQL Server 2000", WindowxXPPath, "SQL Server 2000"); tempEnv.PostInstallCommands.Add(new PostInstallCommand(@"C:\Program Files\hMailServer\Bin\DBSetup.exe", "/silent ServerType:MSSQL ServerAddress:. DatabaseName:hMailServer Authentication:Windows CreateNew:Yes")); listEnvironments.Add(tempEnv); }
private static void TestXPSP3(List<TestEnvironment> listEnvironments) { // Internal database listEnvironments.Add(new TestEnvironment("Windows XP SP3", "New installation", "Internal", WindowsXPPath, "Windows XP SP3, .NET Framework 2.0")); // Test using PostgreSQL... TestEnvironment tempEnv2 = new TestEnvironment("Windows XP SP3", "New installation", "PostgreSQL 8.3.1", WindowsXPPostgreSQL831Path, "Initial"); tempEnv2.PostInstallCommands.Add(new PostInstallCommand(@"C:\Program Files\hMailServer\Bin\DBSetup.exe", "/silent ServerType:PGSQL ServerAddress:localhost DatabaseName:hMailServer Authentication:Server CreateNew:Yes Username:postgres Password:build")); listEnvironments.Add(tempEnv2); // Test using MySQL 5.0.51. TestEnvironment tempEnv1 = new TestEnvironment("Windows XP SP3", "New installation", "MySQL 5.0.51", WindowsXPMySQL5_0_51Path, "Initial"); tempEnv1.PostInstallCommands.Add(new PostInstallCommand(@"C:\Program Files\hMailServer\Bin\DBSetup.exe", "/silent ServerType:MySQL ServerAddress:localhost DatabaseName:hMailServer Authentication:Server CreateNew:Yes Username:root Password:build")); tempEnv1.PostInstallFileCopy.Add(new PostInstallFileCopy(Path.Combine(GetTestDataDir(), GetMySQLLib()), @"C:\Program Files\hMailServer\Bin\libmySQL.dll")); listEnvironments.Add(tempEnv1); // Test using MySQL 5.6.20 (with proper UTF8-support). TestEnvironment tempEnv3 = new TestEnvironment("Windows XP SP3", "New installation", "MySQL 5.6.20", WindowsXPMySQL5_6_20Path, "Initial"); tempEnv3.PostInstallCommands.Add(new PostInstallCommand(@"C:\Program Files\hMailServer\Bin\DBSetup.exe", "/silent ServerType:MySQL ServerAddress:localhost DatabaseName:hMailServer Authentication:Server CreateNew:Yes Username:root Password:build")); tempEnv3.PostInstallFileCopy.Add(new PostInstallFileCopy(Path.Combine(GetTestDataDir(), GetMySQLLib()), @"C:\Program Files\hMailServer\Bin\libmySQL.dll")); listEnvironments.Add(tempEnv3); // Test using SQL Server 2000. var tempEnv4 = new TestEnvironment("Windows XP SP3", "New installation", "SQL Server 2000", WindowsXPSQLServer2000Path, "Initial"); tempEnv4.PostInstallCommands.Add(new PostInstallCommand(@"C:\Program Files\hMailServer\Bin\DBSetup.exe", "/silent ServerType:MSSQL ServerAddress:. DatabaseName:hMailServer Authentication:Windows CreateNew:Yes")); listEnvironments.Add(tempEnv4); // Test using SQL Server 2005. TestEnvironment tempEnv5 = new TestEnvironment("Windows XP SP3", "New installation", "SQL Server 2005", WindowsXPSQLServer2005Path, "Initial"); tempEnv5.PostInstallCommands.Add(new PostInstallCommand(@"C:\Program Files\hMailServer\Bin\DBSetup.exe", "/silent ServerType:MSSQL ServerAddress:HI DatabaseName:hMailServer Authentication:Windows CreateNew:Yes")); listEnvironments.Add(tempEnv5); }
public TestRunner(bool embedded, TestEnvironment environment, bool stopOnError) { _environment = environment; _stopOnError = stopOnError; _embedded = embedded; }