Beispiel #1
0
        private void radMenuItem15_Click(object sender, EventArgs e)
        {
            Automation       at          = new Automation(new ExcelFileParser(), new ExcelReporter(), @"C:\Users\10110_000\Desktop\Duoc");
            UIAActionManager am          = new UIAActionManager(at);
            Script           startScript = new Script(at.Parser);

            at.Scripts.Push(startScript);
            at.Start();
        }
Beispiel #2
0
        public Spy()
        {
            InitializeComponent();

            IAutomation      automation    = new Automation(new ExcelFileParser(), new ExcelReporter(new ExcelFileParser()), @"C:\Users\10110_000\Desktop\Duoc");
            UIAActionManager actionManager = new UIAActionManager(automation);

            actionManager.WaitTime = new TimeSpan(0, 0, 1);

            IInterface iff = new Interface(automation.Parser.NewInstance);

            iff.FileName = "Calculator.xls";

            View.ActionManager        = actionManager;
            View.CurrentInterface     = iff;
            View.WindowsRefreshed    += View_WindowsRefreshed;
            Property.CurrentInterface = iff;
            View.SelectedItemChanged += View_SelectedItemChanged;
        }
        private void radButtonOK_Click(object sender, EventArgs e)
        {
            IAutomation      at = new Automation(new ExcelFileParser(), new ExcelReporter(new ExcelFileParser()), this.pathproject);
            UIAActionManager am = new UIAActionManager(at);

            currentAutomation = at;

            try
            {
                Script startScript = new Script(at.Parser.NewInstance);
                startScript.FileName = this.script;



                at.Name  = "Regression";
                at.Speed = 10;
                if (this.data != null && this.data.Length > 0)
                {
                    Data data = new Data(at.Parser.NewInstance);
                    data.FileName = this.data;

                    at.Data = data;
                }


                at.StartScript = startScript;
                at.Start();

                //----------------------------------

                at.Paused           += at_Paused;
                at.Resumed          += at_Resumed;
                at.Interupted       += at_Interupted;
                at.Ended            += at_Ended;
                at.ActionPerforming += at_ActionPerforming;
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }
        }
Beispiel #4
0
 private void radMenuItem15_Click(object sender, EventArgs e)
 {
     Automation at = new Automation(new ExcelFileParser(), new ExcelReporter(), @"C:\Users\10110_000\Desktop\Duoc");
     UIAActionManager am = new UIAActionManager(at);
     Script startScript = new Script(at.Parser);
     at.Scripts.Push(startScript);
     at.Start();
 }