public void RunAfterAllTests() { ExceptionLog exceptionLog = ExceptionLogSingleton.GetInstance(); if (exceptionLog.Exceptions.Count > 0) { String fileName = String.Format("{0}_{1}.xml", "ExceptionLog", DateTime.Now.ToString("mmddyyyy-hhmmss")); XmlSerialize(typeof(ExceptionLog), exceptionLog, fileName); } webDriver.Close(); }
public BaseTest() { exceptionLog = ExceptionLogSingleton.GetInstance(); webDriver = WebDriverSingleton.GetInstance(); commonLogic = new CommonLogic(); }