//Function to run and execute the test drivers on the test code inside the child app domain public void run(string path, string driver, List <string> code, string logFileName) //public void run(string path, string driver, List<string> code) { int index = driver.LastIndexOf("."); var test = driver.Substring(0, index); LoadTests(path, driver, code, logFileName); //LoadTests(path, driver, code); foreach (TestData td in testDriver) // enumerate the test list { if (td.Name == test) { try { log.writeLogFile(logFileName, "\n Testing " + td.Name); //Console.WriteLine(td.Name); if (td.testDriver.test() == true) { log.writeLogFile(logFileName, td.testDriver.getLog()); log.writeLogFile(logFileName, " Test passed"); //Console.WriteLine("Test passed"); } else { log.writeLogFile(logFileName, td.testDriver.getLog()); log.writeLogFile(logFileName, " Test failed"); //Console.WriteLine("Test failed"); } } catch (Exception ex) { log.writeLogFile(logFileName, " " + ex.Message); //Console.WriteLine(ex.Message); } } } }