public void Init() { manager = new AutomationManagement(); manager.ErrorMessage += manager_ErrorMessage; manager.Complete += manager_Complete; this.Load += MainFrm_Load; this.timer = new Timer(); this.timer.Tick += timer_Tick; this.timer.Interval = 1000; this.timer.Enabled = false; trace = new MyTraceListener(this.TextBoxLog); //System.Diagnostics.Trace.Listeners.Add(trace); System.Diagnostics.Debug.Listeners.Add(trace); }
public void Test_LoadConfig() { AutomationAction action = new AutomationAction(); action.Type = "Mouse"; AutomationAction childAction = new AutomationAction(); childAction.Type = "Mouse"; action.AddChild(childAction); AutomationStep step = new AutomationStep(); step.Name = "First"; step.Description = "test"; step.Add(action); WebAutomationConfig config = new WebAutomationConfig(); config.Add(step); AutomationManagement manager = new AutomationManagement(); manager.LoadConfig(config); }