static void Main(string[] args) { new Instance(); Config.CheckAppSettings(); SQLDataBase.Build(); new Actions().LoadActionsIntoDB(); //use args to set up framework properties like debugging and show console ect. try { //call the appropriate controller method, this may also be controled by argument new Controller(DefaultController); } catch (Exception ex) { ConsoleLogger.LogTestResults(); ConsoleLogger.Log(ex); ConsoleLogger.Log(); } finally { try { Driver.driver.Quit(); Driver.service.Dispose(); KillProcessByID(Driver.serviceId, true); } catch { } } //the command line command structure to call the framework would need to be well documented }
static void Main(string[] args) { new Instance(); Config.CheckAppSettings(); SQLDataBase.Build(); new ActionExamples().LoadActionsIntoDB(); //////TEST CODE BELOW/////// ActionExamples.Execute("Click"); ActionExamples.Execute("SendText", new string[] { "I am writing all the text for this output." }); ActionExamples.Execute("Update"); Console.ReadLine(); }