Exemplo n.º 1
0
        public void QuoteAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.QOTAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                if (dataRow.ItemArray[1].ToString() == "Quote")
                {
                    SearchWindow.SelectSearchElements(null, "Quote", SearchWindow.SearchTypeConstants.Advanced);
                    QOTAdvancedSearchWindow.EnterQuoteSearchData(dataRow);
                    QOTAdvancedSearchWindow.ClickSearchBtn();
                    Playback.Wait(10000);
                    var quote = QOTAdvancedSearchWindow.SelectQuoteRecord(dataRow.ItemArray[40].ToString());
                    if (quote)
                    {
                        Playback.Wait(7000);
                        QOTAdvancedSearchWindow.CloseQuoteProfileWindow();
                        Playback.Wait(2000);
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                    if (ARAdvancedSearchWindow.VerifySearchResultsWindowDisplayed())
                    {
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                }
            }
            Cleanup();
        }
Exemplo n.º 2
0
        public void WorkTicketAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.QOTAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                if (dataRow.ItemArray[1].ToString() == "WorkTicket")
                {
                    SearchWindow.SelectSearchElements(null, "WorkTicket", SearchWindow.SearchTypeConstants.Advanced);
                    QOTAdvancedSearchWindow.EnterWorkTicketSearchData(dataRow);
                    QOTAdvancedSearchWindow.ClickSearchBtn();
                    Playback.Wait(10000);
                    var workTicket = QOTAdvancedSearchWindow.SelectWorkTicketRecord(dataRow.ItemArray[21].ToString());
                    if (workTicket)
                    {
                        Playback.Wait(7000);
                        QOTAdvancedSearchWindow.CloseDispatchWindow();
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                    if (ARAdvancedSearchWindow.VerifySearchResultsWindowDisplayed())
                    {
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                }
            }
            Cleanup();
        }
        public void WorkerSimpleSearch()
        {
            var datarows = Initialize();

            foreach (var dataRow in datarows)
            {
                var TypeOne = dataRow.ItemArray[4].ToString();

                if (TypeOne.Equals("Worker"))
                {
                    Console.WriteLine(dataRow.ItemArray[3]);
                    SearchWindow.SelectSearchElements(dataRow.ItemArray[5].ToString(), TypeOne,
                                                      SearchWindow.SearchTypeConstants.Simple);
                    Globals.WorkerName = dataRow.ItemArray[6].ToString();

                    SimpleSearchWindow.SelectWorkerFromResultsWindow();

                    Factory.AssertIsTrue(SimpleSearchWindow.VerifyWorkerProfileDisplayed(dataRow.ItemArray[6].ToString()), "Displayed results does not contain: " + dataRow.ItemArray[5]);

                    TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetWorkerProfileWindowProperties());
                    TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetSearchResultsWindowProperties());
                }
            }
            //Cleanup();
        }
Exemplo n.º 4
0
        public void CheckRegisterAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.QOTAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                if (dataRow.ItemArray[1].ToString() == "Register")
                {
                    SearchWindow.SelectSearchElements(null, "CheckRegister", SearchWindow.SearchTypeConstants.Advanced);
                    QOTAdvancedSearchWindow.EnterCheckRegisterSearchData(dataRow);
                    QOTAdvancedSearchWindow.ClickSearchBtn();
                    Playback.Wait(10000);
                    var register = QOTAdvancedSearchWindow.SelectCheckRegisterRecord(dataRow.ItemArray[10].ToString());
                    if (register)
                    {
                        Playback.Wait(7000);
                        QOTAdvancedSearchWindow.ClickOkBtnPayment();
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                    if (ARAdvancedSearchWindow.VerifySearchResultsWindowDisplayed())
                    {
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                }
            }
            Cleanup();
        }
Exemplo n.º 5
0
        public void InvoiceRelationShipsAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.ARAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                if (dataRow.ItemArray[1].ToString() == "Relationship")
                {
                    SearchWindow.SelectSearchElements(null, "IRelationShips2", SearchWindow.SearchTypeConstants.Advanced);
                    ARAdvancedSearchWindow.EnterRelationshipSearchData(dataRow);
                    ARAdvancedSearchWindow.ClickSearchBtn();
                    Playback.Wait(10000);
                    var relationship = ARAdvancedSearchWindow.SelectInvoiceRecord(dataRow.ItemArray[75].ToString());
                    if (relationship)
                    {
                        Playback.Wait(7000);
                        MouseActions.ClickButton(CustomerProfileWindow.GetCustomerInvoiceWindowProperties(), "_btnCancel");
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                    if (ARAdvancedSearchWindow.VerifySearchResultsWindowDisplayed())
                    {
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                }
            }
            Cleanup();
        }
Exemplo n.º 6
0
        public void CreditCardAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.ARAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                if (dataRow.ItemArray[1].ToString() == "Credit Card")
                {
                    SearchWindow.SelectSearchElements(null, "CreditCard", SearchWindow.SearchTypeConstants.Advanced);
                    ARAdvancedSearchWindow.EnterCreditCardSearchData(dataRow);
                    ARAdvancedSearchWindow.ClickSearchBtn();
                    Playback.Wait(10000);
                    var creditCard = ARAdvancedSearchWindow.SelectCreditCardRecord(dataRow.ItemArray[11].ToString());
                    if (creditCard)
                    {
                        Playback.Wait(5000);
                        MouseActions.ClickButton(SimpleSearchWindow.GetViewCreditCardPaymentWindowProperties(), "_btnClose");
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                    if (ARAdvancedSearchWindow.VerifySearchResultsWindowDisplayed())
                    {
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                }
            }
            Cleanup();
        }
Exemplo n.º 7
0
        public void DispatchAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.QOTAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                if (dataRow.ItemArray[1].ToString() == "Dispatch")
                {
                    SearchWindow.SelectSearchElements(null, "Dispatch", SearchWindow.SearchTypeConstants.Advanced);
                    QOTAdvancedSearchWindow.EnterDispatchSearchData(dataRow);
                    QOTAdvancedSearchWindow.ClickSearchBtn();
                    Playback.Wait(10000);
                    var dispatch = QOTAdvancedSearchWindow.SelectDispatchRecord(dataRow.ItemArray[53].ToString());
                    if (dispatch)
                    {
                        Playback.Wait(7000);
                        MouseActions.ClickButton(JobOrderWindow.GetJobOrderProfileProperties(), "btnClose");
                        Playback.Wait(2000);
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                    if (ARAdvancedSearchWindow.VerifySearchResultsWindowDisplayed())
                    {
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                }
            }
            Cleanup();
        }
Exemplo n.º 8
0
        public void JobOrderAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.QOTAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                if (dataRow.ItemArray[1].ToString() == "JobOrder")
                {
                    SearchWindow.SelectSearchElements(null, "JobOrder", SearchWindow.SearchTypeConstants.Advanced);
                    QOTAdvancedSearchWindow.EnterJobOrderSearchData(dataRow);
                    QOTAdvancedSearchWindow.ClickSearchBtn();
                    Playback.Wait(10000);
                    var jobOrder = QOTAdvancedSearchWindow.SelectJobOrderRecord(dataRow.ItemArray[76].ToString());
                    if (!jobOrder)
                    {
                        var winInst = JobOrderWindow.GetJobOrderProfileProperties();
                        if (winInst.Exists)
                        {
                            MouseActions.ClickButton(JobOrderWindow.GetJobOrderProfileProperties(), "btnClose");
                        }
                    }
                    if (ARAdvancedSearchWindow.VerifySearchResultsWindowDisplayed())
                    {
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                }
            }
            Cleanup();
        }
Exemplo n.º 9
0
        public void LockoutAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.LockOutAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                SearchWindow.SelectSearchElements(null, "Lockout", SearchWindow.SearchTypeConstants.Advanced);
                NotificationAdvanceSearchWindow.EnterNotificationAdvancedSearchData(dataRow);
                NotificationAdvanceSearchWindow.ClickSearchBtn();
                Playback.Wait(3000);
                var lockOut = NotificationAdvanceSearchWindow.SelectLockOutNotification(dataRow.ItemArray[9].ToString());
                if (lockOut)
                {
                    Playback.Wait(5000);
                    NotificationAdvanceSearchWindow.ClickCancelcreditlimitBtn();
                    NotificationAdvanceSearchWindow.ClosedSearchResultsWindow();
                }
                if (NotificationAdvanceSearchWindow.VerifysearchResultsWindowDisplayed())
                {
                    NotificationAdvanceSearchWindow.ClosedSearchResultsWindow();
                }
            }
            Cleanup();
        }
Exemplo n.º 10
0
        public void BillingAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.ARAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                if (dataRow.ItemArray[1].ToString() == "Billing Search")
                {
                    SearchWindow.SelectSearchElements(null, "BillingLineItem", SearchWindow.SearchTypeConstants.Advanced);
                    ARAdvancedSearchWindow.EnterBillingSearchData(dataRow);
                    ARAdvancedSearchWindow.ClickSearchBtn();
                    Playback.Wait(10000);
                    var billing = ARAdvancedSearchWindow.SelectBillingRecord(dataRow.ItemArray[10].ToString());
                    if (billing)
                    {
                        Playback.Wait(5000);
                        MouseActions.ClickButton(DispatchProfileWindow.DispatchProfileWindowProperties(), "btnCancel");
                    }
                    if (ARAdvancedSearchWindow.VerifySearchResultsWindowDisplayed())
                    {
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                }
            }
            Cleanup();
        }
Exemplo n.º 11
0
        public void WorkerAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.WorkerAdvancedSearch);

            foreach (var datarow in datarows)
            {
                SearchWindow.SelectSearchElements(null, "Worker", SearchWindow.SearchTypeConstants.Advanced);
                WorkerAdvancedSearchWindow.EnterWorkerAdvancedSearchData(datarow);
                WorkerAdvancedSearchWindow.ClickSearchBtn();
                var worker = false;
                Playback.Wait(5000);
                var searchResults = WorkerAdvancedSearchWindow.GetWorkerSearchResultsWindowProperties();
                if (searchResults.Exists)
                {
                    WorkerAdvancedSearchWindow.SelectWorkerfromSearchResults(datarow.ItemArray[36].ToString());
                }
                WorkerAdvancedSearchWindow.SelectApplicationChkBox(datarow);
                if (WorkerSurveyWindow.VerifyWorkerProfileWindowDisplayed())
                {
                    WorkerSummaryWindow.ClickOnCloseBtn();
                    WorkerAdvancedSearchWindow.CloseSearchResultsWindow();
                    worker = true;
                }
                Factory.AssertIsTrue(worker, "Worker not found with given search criteria");
            }
            Cleanup();
        }
Exemplo n.º 12
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.º 13
0
 public void VerifyCustomerSearchValidationErrorDisplayedTest()
 {
     Initialize();
     SearchWindow.SelectSearchElements(null, "Customer", SearchWindow.SearchTypeConstants.Advanced);
     CustomerAdvanceSearchWindow.ClickOnSearchButton();
     Playback.Wait(2000);
     Factory.AssertIsTrue(CustomerAdvanceSearchWindow.VerifySearchValidationWindowDisplayed(),
                          "Search validation error window was not displayed");
     Playback.Wait(2000);
     CustomerAdvanceSearchWindow.ClickValidationOk();
     CustomerAdvanceSearchWindow.CloseSearchResultsWindow();
     Cleanup();
 }
        public void JobOrderSearch()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("JobOrder")))
            {
                Console.WriteLine(datarow.ItemArray[3]);
                SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "JobOrder",
                                                  SearchWindow.SearchTypeConstants.Simple);
                Factory.AssertIsTrue(OpenJobOrder.VerifyJobOrderWindowDisplayed(datarow.ItemArray[5].ToString()), "Job order window is not displayed for the search criteria");
                OpenJobOrder.CloseJobOrderProfile();
            }
            Cleanup();
        }
Exemplo n.º 15
0
        public void EditJobOrder()
        {
            try
            {
                var datarows = EllisHome.Initialize(ExcelFileNames.JobOrderEdit);
                foreach (var data in datarows.Where(dataRow => dataRow.ItemArray[1].ToString().Equals("EditJobOrder")))
                {
                    SearchWindow.SelectSearchElements(data.ItemArray[2].ToString(), "JobOrder",
                                                      SearchWindow.SearchTypeConstants.Simple);

                    //LandingPage.SelectFromToolbar("Job Orders");
                    var profileWindow = JobOrderWindow.GetNewJobOrderWindowProperties();
                    //var profileStatus = TableActions.OpenRecordFromTable(EllisWindow, "_grdJobOrders", "Job Order #", data.ItemArray[2].ToString());
                    if (profileWindow.Exists)
                    {
                        OpenJobOrder.SelectTab("Basic Job Info");
                        Playback.Wait(2000);
                        OpenJobOrder.EditBasicJobInfoOfJobOrder(data);

                        OpenJobOrder.SelectTab("OrderDetails/Addl Charges");
                        Playback.Wait(2000);
                        OpenJobOrder.EditOrderDetailsAddlChargesOfJobOrder(data);

                        OpenJobOrder.SelectTab("Requirements");
                        Playback.Wait(2000);
                        OpenJobOrder.EditRequirementsOfJobOrder(data);

                        OpenJobOrder.SelectTab("Pre-Qualifying Questions");
                        Playback.Wait(2000);
                        OpenJobOrder.EditPreQualifyingQuestionsOfJobOrder(data);

                        OpenJobOrder.SelectTab("Safety");
                        Playback.Wait(2000);
                        OpenJobOrder.EditSafetyOfJobOrder(data);

                        OpenJobOrder.SelectTab("Progress Billing");
                        Playback.Wait(2000);
                        OpenJobOrder.EditProgressBillingOfJobOrder(data);

                        OpenJobOrder.CloseJobOrderProfile();
                    }

                    Factory.AssertIsTrue(profileWindow.Exists, "Profile not found");
                }
            }
            finally
            {
                Cleanup();
            }
        }
        public void InvoiceRelationShipsSearch()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("IRelationShips")))
            {
                Console.WriteLine(datarow.ItemArray[3]);
                SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "IRelationShips2",
                                                  SearchWindow.SearchTypeConstants.Simple);
                Factory.AssertIsTrue(SimpleSearchWindow.VerifySearchResultsWindowDisplayed(), "Results are displayed for the search criteria");
                SimpleSearchWindow.CloseResultsWindow();
            }
            Cleanup();
        }
        public void LockoutNotificationTest()
        {
            Initialize();
            SearchWindow.SelectSearchElements("Test", "Customer", SearchWindow.SearchTypeConstants.Simple);
            if (CustomerProfileWindow.SelectFirstCustomerFromTable())
            {
                CustomerProfileWindow.ClickCreateNewQuoteButton();
                CustomerProfileWindow.CloseWarningWindow();
                CustomerProfileWindow.CreateNewQuoteWithDefaultData();

                Factory.AssertIsTrue(CustomerProfileWindow.VerifyCustomerProfileWindowDisplayed(),
                                     "Customer profile window is not displayed");
                CustomerProfileWindow.CloseCustomerProfileWindow();
            }
        }
        public void WorkTicketSearch()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("WorkTicket")))
            {
                Console.WriteLine(datarow.ItemArray[3]);
                SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "WorkTicket",
                                                  SearchWindow.SearchTypeConstants.Simple);

                Factory.AssertIsTrue(JobOrderWindow.VerifyDispatchPayoutWindowDisplayed("REPUBLIC SERVICES / DIV 4183 - Job Order Schedule – Dispatch / Payout"), "Results are displayed for the search criteria");
                TitlebarActions.ClickClose((WinWindow)JobOrderWindow.GetJobOrderDispatchPayoutWindowProperties("REPUBLIC SERVICES / DIV 4183 - Job Order Schedule – Dispatch / Payout"));
            }
            Cleanup();
        }
        public void BillingLineItemSearch()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("BillingLineItem")))
            {
                Console.WriteLine(datarow.ItemArray[3]);
                SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "BillingLineItem",
                                                  SearchWindow.SearchTypeConstants.Simple);
                Playback.Wait(3000);

                Factory.AssertIsTrue(SimpleSearchWindow.VerifySearchResultsWindowDisplayed(), "Search results window is not displayed for the search criteria");
                SimpleSearchWindow.CloseResultsWindow();
            }
            Cleanup();
        }
        public void NotificationSimpleSearch()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Lockout")))
            {
                Console.WriteLine(datarow.ItemArray[3]);
                SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Lockout",
                                                  SearchWindow.SearchTypeConstants.Simple);
                Playback.Wait(3000);

                Factory.AssertIsTrue(SimpleSearchWindow.VerifyLockoutOverideWindowDisplayed(), "Results are displayed for the search criteria");
                TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetLockoutOverideWindowProperties());
            }
            Cleanup();
        }
        public void QuoteSearch()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Quote")))
            {
                Console.WriteLine(datarow.ItemArray[3]);
                SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Quote",
                                                  SearchWindow.SearchTypeConstants.Simple);

                Factory.AssertIsTrue(CustomerProfileWindow.VerifyQuoteProfileWindowDisplayed(), "Quote profile window is not displayed");
                CustomerProfileWindow.CloseQuoteProfileWindow();
                Playback.Wait(5000);
            }
            Cleanup();
        }
        public void DispatchSearch()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Dispatch")))
            {
                Console.WriteLine(datarow.ItemArray[3]);
                SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Dispatch",
                                                  SearchWindow.SearchTypeConstants.Simple);
                SearchWindow.SelectJobOrderFromResults();

                Factory.AssertIsTrue(JobOrderWindow.VerifyDispatchStatusDisplayed(), "Dispatch status is not displayed for selected job order");
                JobOrderWindow.CloseJobOrderProfileWindow();
                SimpleSearchWindow.CloseResultsWindow();
            }
            Cleanup();
        }
        public void InvoicesSearch()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Invoices")))
            {
                Console.WriteLine(datarow.ItemArray[3]);
                SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Invoices2",
                                                  SearchWindow.SearchTypeConstants.Simple);
                Playback.Wait(3000);

                Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerInvoiceDisplayed(), "Customer invoice is not displayed for the search criteria");

                TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetCustomerInvoiceWindowProperties());
            }
            Cleanup();
        }
Exemplo n.º 24
0
        public void VerifyPrintBtn()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.QOTAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                if (dataRow.ItemArray[1].ToString() == "WorkTicket")
                {
                    SearchWindow.SelectSearchElements(null, "WorkTicket", SearchWindow.SearchTypeConstants.Advanced);
                    QOTAdvancedSearchWindow.EnterWorkTicketSearchData(dataRow);
                    QOTAdvancedSearchWindow.ClickSearchBtn();
                    Playback.Wait(10000);
                    ARAdvancedSearchWindow.ClickOnPrintBtn();
                    ARAdvancedSearchWindow.CloseSearchResultsWindow();
                }
            }
            Cleanup();
        }
        public void InvoiceTransactionsSearch()
        {
            try
            {
                var datarows = Initialize();
                foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("ITransactions")))
                {
                    Console.WriteLine(datarow.ItemArray[3]);
                    SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "ITransactions2",
                                                      SearchWindow.SearchTypeConstants.Simple);
                    SearchWindow.SelectInvoiceFromResults();

                    Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerInvoiceWindowDisplayed(datarow.ItemArray[5].ToString()), "View Credit card payment window is not displayed for the search criteria");
                }
            }
            finally
            {
                Cleanup();
            }
        }
Exemplo n.º 26
0
 public void CustomerAdvanceSearch()
 {
     try
     {
         Initialize();
         int i        = 1;
         var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CustomerAdvancedSearch);
         foreach (var dataRow in datarows.Where(v => !String.IsNullOrWhiteSpace(v.ItemArray[3].ToString())).Take(6))
         {
             Debug.WriteLine("Test Case " + i++ + " - " + dataRow.ItemArray[24]);
             SearchWindow.SelectSearchElements(null, "Customer", SearchWindow.SearchTypeConstants.Advanced);
             CustomerAdvanceSearchWindow.EnterAdvancedSearchData(dataRow);
             CustomerAdvanceSearchWindow.ClickOnSearchButton();
             Factory.AssertIsTrue(CustomerAdvanceSearchWindow.VerifySearchResultsWindowDisplayed(),
                                  "Search validation error window was not displayed");
         }
     }
     finally
     {
         Cleanup();
     }
 }
Exemplo n.º 27
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();
            }
        }
        public void CustomerSimpleSearch()
        {
            try
            {
                var datarows = Initialize();
                foreach (var dataRow in datarows.Where(dataRow => dataRow.ItemArray[4].ToString().Equals("Customer")))
                {
                    Debug.WriteLine(dataRow.ItemArray[3]);
                    SearchWindow.SelectSearchElements(dataRow.ItemArray[5].ToString(), "Customer",
                                                      SearchWindow.SearchTypeConstants.Simple);
                    Playback.Wait(3000);
                    Globals.CustomerName = dataRow.ItemArray[6].ToString();

                    Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerProfileDisplayed(dataRow.ItemArray[6].ToString()),
                                         "Customer profile for " + dataRow.ItemArray[5] + " Is not displayed");

                    TitlebarActions.ClickClose((WinWindow)CustomerProfileWindow.GetCustomerProfileWindowProperties());
                }
            }
            finally
            {
                Cleanup();
            }
        }
        public void CreditCardSearch()
        {
            try
            {
                var datarows = Initialize();
                foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("CreditCard")))
                {
                    Debug.WriteLine(datarow.ItemArray[3]);
                    SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "CreditCard",
                                                      SearchWindow.SearchTypeConstants.Simple);
                    SearchWindow.SelectCardFromResults();

                    Factory.AssertIsTrue(SimpleSearchWindow.VerifyViewCreditCardPaymentWindowDisplayed(datarow.ItemArray[5].ToString()),
                                         "View Credit card payment window is not displayed for the search criteria");

                    TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetViewCreditCardPaymentWindowProperties());
                    SimpleSearchWindow.CloseResultsWindow();
                }
            }
            finally
            {
                Cleanup();
            }
        }