示例#1
0
        public static UITestControl GetAlertWindowProperties()
        {
            var mainWindow      = JobOrderWindow.GetNewJobOrderWindowProperties();
            var ordrNotesWindow = mainWindow.Container.SearchFor <WinWindow>(new { Name = "Alert" });

            return(ordrNotesWindow);
        }
        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 CopyJobOrderDetails()
        {
            try
            {
                EllisHome.Initialize();

                LandingPage.SelectFromToolbar("Job Orders");
                CopyJobOrder.OpenAnyJobOrder();

                //Copy Job Order Details from opened job order
                var status = CopyJobOrder.CopyJobOrderDetails();
                if (status)
                {
                    Factory.ClickButton(JobOrderWindow.GetNewJobOrderWindowProperties(), "btnCancel");
                }
                OpenJobOrder.CloseJobOrderProfile();
                Factory.AssertIsTrue(status, "Job Order not copied successfully");
            }
            finally
            {
                Cleanup();
            }
        }
示例#4
0
        public static void CancelNewJobOrder()
        {
            var newJobOrder = JobOrderWindow.GetNewJobOrderWindowProperties();

            MouseActions.ClickButton(newJobOrder, "btnCancelJobOrder");
        }