Exemplo n.º 1
0
        public void LockboxInvoiceSearchTest()
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsARMUser();

            //LandingPage.ClickOnCalendarButton(LandingPage.LandingPageControls.Advanced);
            //LandingPage.EnterDate(LandingPage.LandingPageControls.AdvancedFromDate, "11/16/2009");
            //LandingPage.ClickDateTextbox(LandingPage.LandingPageControls.AdvancedToDate);
            //Playback.Wait(2000);

            LandingPage.SelectDateRange();

            ARWindow.SelectFirstCustomerInvoiceFromTable();
            ARWindow.SelectFirstRemittenceFromTable();
            ARWindow.ClickOpeninNewWindowButton();

            Factory.AssertIsTrue(ARWindow.VerifyPaymentInvoiceWindowDisplayed(),
                                 "Payment profile invoice window is not displayed when clicked on Open In New Window");
            Factory.AssertIsTrue(ARWindow.VerifyRemainingAmountDisplayedOnWindow(),
                                 "Remaining Amount is not displayed on window");

            ARWindow.ClosePaymentInvoiceWindow();
            //TitlebarActions.ClickClose((WinWindow) ARWindow.GetPaymentLockboxWindowProperties());
            //TitlebarActions.ClickClose((WinWindow) ARWindow.GetPaymentProfileWindowProperties());
            Playback.Wait(1000);
            Actions.SendAltF4();
            Playback.Wait(1000);
            Actions.SendAltF4();

            Cleanup();
        }
Exemplo n.º 2
0
 public void EllisClickOnFileExitTest()
 {
     WindowsActions.KillEllisProcesses();
     App = EllisHome.LaunchEllisAsCSRUser();
     //App = EllisHome.LaunchEllis();
     EllisHome.ClickOnFileExit();
     App.Close();
 }
Exemplo n.º 3
0
 public void Initialize()
 {
     WindowsActions.KillEllisProcesses();
     //App = EllisHome.LaunchEllisAsDiffUserFromDesktop();
     App = EllisHome.LaunchEllisAsCSRUser();
     Thread.Sleep(5000);
     //App.SetFocus();
 }
Exemplo n.º 4
0
        public void ARApplyTransactionTest()
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsARMUser();
            LandingPage.SelectFromToolbar("AR");
            Playback.Wait(2000);
            LandingPage.SelectCustomerInvoicesFromNavigationExplorer();

            Factory.AssertIsTrue(ARWindow.VerifyCustomerInvGridDisplayed(), "Customer Invoice Grid is not displayed");
        }
        public void Initialize(int retries = 5)
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsCSRUser();

            if (!App.WaitForControlReady(6000) && retries >= 0)
            {
                Initialize(retries - 1);
            }
        }
Exemplo n.º 6
0
        public IEnumerable <DataRow> Initialize()
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsCSRUser();
            //App = EllisHome.LaunchEllisAsDiffUserFromDesktop();
            CreateCustomerWindow.ClickOnCreateCustomer();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateCustomer);

            return(datarows);
        }
        public IEnumerable <DataRow> Initialize(int retries = 5)
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsCSRUser();

            if (!App.WaitForControlReady(6000) && retries >= 0)
            {
                return(Initialize(retries - 1));
            }

            return(ExcelReader.ImportSpreadsheet(ExcelFileNames.SimpleSearch));
        }
Exemplo n.º 8
0
        public void ARDefaultToAllCorporateARMUserTest()
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsARMUser();

            LandingPage.SelectFromToolbar("AR");
            SearchWindow.SelectSearchElements(null, "ITransactions", SearchWindow.SearchTypeConstants.Advanced);

            Factory.AssertIsTrue(ARAdvancedSearchWindow.VerifyDefaultDistrictSelected("All"),
                                 "Default district is not equal to All");

            Cleanup();
        }
Exemplo n.º 9
0
        public static IEnumerable <DataRow> Initialize(string excelName, int retry = 5)
        {
            WindowsActions.KillEllisProcesses();
            App = LaunchEllisAsCSRUser();
            var ready = App.WaitForControlExist(5000);

            if (!ready && retry >= 0)
            {
                return(Initialize(excelName, retry - 1));
            }
            var datarows = ExcelReader.ImportSpreadsheet(excelName);

            return(datarows);
        }
Exemplo n.º 10
0
        public void CreateJobOrder()
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsCSRUser();

            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.JobOrder);

            foreach (var dataRow in datarows.Where(x => x.ItemArray[1].ToString().Equals("CreateJobOrder")))
            {
                //Console.WriteLine(dataRow.ItemArray[1]);
                var jobOrderCreated = JobOrderWindow.CreateNewJobOrder(dataRow);
                Factory.AssertIsTrue(jobOrderCreated, "Job order not saved successfully");
                JobOrderWindow.CloseJobOrderProfileWindow();
            }
        }
Exemplo n.º 11
0
        public void NAAMCreateCustomerTest()
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsNAAMUser();
            CreateCustomerWindow.ClickOnCreateCustomer();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.DiffCredsCreateCustomer);

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[3].ToString().Contains("NAAM")))
            {
                CreateCustomerWindow.EnterCustomerData(datarow, "Fed", null);
                CreateCustomerWindow.ClickSave();
                CreateCustomerWindow.HandleExistingFEDCustomer();
                Factory.AssertIsTrue(CustomerProfileWindow.VerifyCustomerProfileWindowDisplayed(),
                                     "NAPS Customer Profile not displayed for new customer with FED ID");
            }
            Cleanup();
        }
Exemplo n.º 12
0
        public void RaChangeWorkerStatus()
        {
            try
            {
                WindowsActions.KillEllisProcesses();
                App = EllisHome.LaunchEllisAsRAUser();
                var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.WorkerAdvancedSearch);
                foreach (var datarow in datarows)
                {
                    SearchWindow.SelectSearchElements(null, "Worker", SearchWindow.SearchTypeConstants.Advanced);
                    WorkerAdvancedSearchWindow.EnterWorkerNameAsSearchData("TEST");
                    var worker = WorkerAdvancedSearchWindow.SelectWorkerfromSearchResults(datarow.ItemArray[36].ToString());
                    Factory.AssertIsTrue(worker, "Requested Worker not found");
                    if (!worker)
                    {
                        continue;
                    }

                    Playback.Wait(2000);
                    WorkerAdvancedSearchWindow.SelectApplicationChkBox(datarow);
                    WorkerSummaryWindow.SelectMainTab(WorkerSummaryWindow.WorkerProfileTabConstants.Survey);
                    Playback.Wait(1000);
                    Factory.AssertIsTrue(WorkerSurveyWindow.VerifyWorkerProfileWindowDisplayed(), "Workers Survey not Displayed");
                    WorkerSurveyWindow.EnterDatainSsn(datarow);
                    WorkerSurveyWindow.EnterDataInSurveyGrid();
                    WorkerSurveyWindow.EnterNotes(datarow);
                    Playback.Wait(1000);
                    Factory.AssertIsTrue(WorkerSurveyWindow.VerifyWorkerProfileWindowDisplayed(),
                                         "Worker Profile Window Not Displayed");
                }
            }
            finally
            {
                Cleanup();
            }
        }
Exemplo n.º 13
0
 public void Initialize()
 {
     WindowsActions.KillEllisProcesses();
     App = EllisHome.LaunchEllisAsCSRUser();
     //App = EllisHome.LaunchEllisAsDiffUserFromDesktop();
 }
Exemplo n.º 14
0
 public static void Initialize()
 {
     WindowsActions.KillEllisProcesses();
     App = LaunchEllisAsCSRUser();
     App.Process.WaitForInputIdle(6000);
 }
Exemplo n.º 15
0
 public void LaunchEllisTest()
 {
     WindowsActions.KillEllisProcesses();
     App = EllisHome.LaunchEllisAsCSRUser();
     Cleanup();
 }
Exemplo n.º 16
0
 public void Initialize()
 {
     WindowsActions.KillEllisProcesses();
     App = EllisHome.LaunchEllisAsCSRUser();
 }
Exemplo n.º 17
0
 public void Initialize()
 {
     WindowsActions.KillEllisProcesses();
 }