コード例 #1
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Click on Review Round
            Report.Log(ReportLevel.Info, "Mouse", "Click on Review Round\r\nMouse Left Click item 'MainWindow.SavingReview.ReviewRound' at Center.", repo.MainWindow.SavingReview.ReviewRoundInfo, new RecordItemIndex(0));
            repo.MainWindow.SavingReview.ReviewRound.Click();
            Delay.Milliseconds(200);

            // Select an Review Round item
            SelectReviewRound(ValueConverter.ArgumentFromString <int>("NextReviewRound", NextReviewRound));
            Delay.Milliseconds(0);

            // Click on Select Printer
            Report.Log(ReportLevel.Info, "Mouse", "Click on Select Printer\r\nMouse Left Click item 'MainWindow.SavingReview.SelectPrinter' at Center.", repo.MainWindow.SavingReview.SelectPrinterInfo, new RecordItemIndex(2));
            repo.MainWindow.SavingReview.SelectPrinter.Click();
            Delay.Milliseconds(200);

            // Select printer option
            SAFERSleepAPCollection.SelectComboboxItems(Printer, repo.MainWindow.SavingReview.SelectPrinterInfo);
            Delay.Milliseconds(0);

            // Click on Print
            Report.Log(ReportLevel.Info, "Mouse", "Click on Print\r\nMouse Left Click item 'MainWindow.SavingReview.Print_Save' at Center.", repo.MainWindow.SavingReview.Print_SaveInfo, new RecordItemIndex(4));
            repo.MainWindow.SavingReview.Print_Save.Click();
            Delay.Milliseconds(200);
        }
コード例 #2
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Click on Review Round
            Report.Log(ReportLevel.Info, "Mouse", "Click on Review Round\r\nMouse Left Click item 'MainWindow.SavingReview.ReviewRound' at Center.", repo.MainWindow.SavingReview.ReviewRoundInfo, new RecordItemIndex(0));
            repo.MainWindow.SavingReview.ReviewRound.Click();
            Delay.Milliseconds(200);

            // Select Discharge  item
            SAFERSleepAPCollection.SelectReviewRound(ValueConverter.ArgumentFromString <int>("ReviewRound", "3"), repo.MainWindow.SavingReview.ReviewRoundInfo);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'MainWindow.SavingReview.Discharge.Printer_DisSummary' at Center.", repo.MainWindow.SavingReview.Discharge.Printer_DisSummaryInfo, new RecordItemIndex(2));
            repo.MainWindow.SavingReview.Discharge.Printer_DisSummary.Click();
            Delay.Milliseconds(200);

            // Select Printer for Dischagre Summary
            SAFERSleepAPCollection.SelectComboboxItems(Printer, repo.MainWindow.SavingReview.Discharge.Printer_DisSummaryInfo);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'MainWindow.SavingReview.Discharge.Printer_DisIntruction' at Center.", repo.MainWindow.SavingReview.Discharge.Printer_DisIntructionInfo, new RecordItemIndex(4));
            repo.MainWindow.SavingReview.Discharge.Printer_DisIntruction.Click();
            Delay.Milliseconds(200);

            // Select Printer for Dischagre  Instruction
            SAFERSleepAPCollection.SelectComboboxItems(Printer, repo.MainWindow.SavingReview.Discharge.Printer_DisIntructionInfo);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'MainWindow.SavingReview.Discharge.Template' at Center.", repo.MainWindow.SavingReview.Discharge.TemplateInfo, new RecordItemIndex(6));
            repo.MainWindow.SavingReview.Discharge.Template.Click();
            Delay.Milliseconds(200);

            // Select a template
            SAFERSleepAPCollection.SelectComboboxItems(Template, repo.MainWindow.SavingReview.Discharge.TemplateInfo);
            Delay.Milliseconds(0);

            // Click on Save and Print
            Report.Log(ReportLevel.Info, "Mouse", "Click on Save and Print\r\nMouse Left Click item 'MainWindow.SavingReview.Print_Save' at Center.", repo.MainWindow.SavingReview.Print_SaveInfo, new RecordItemIndex(8));
            repo.MainWindow.SavingReview.Print_Save.Click();
            Delay.Milliseconds(200);
        }