コード例 #1
0
        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();
            }
        }
コード例 #2
0
        public void CustomerCalendarFilterTest()
        {
            Initialize();
            LandingPage.SelectFromToolbar("Customers");
            LandingPage.ClickOnCalendarButton(LandingPage.LandingPageControls.Advanced);
            LandingPage.EnterDate(LandingPage.LandingPageControls.AdvancedFromDate, "01012014");
            LandingPage.EnterDate(LandingPage.LandingPageControls.AdvancedToDate, "02272014");
            //LandingPage.ClickOnCalendarClient();
            SendKeys.SendWait("{TAB}");
            CustomerProfileWindow.SelectFirstCustomerFromTable();
            Factory.AssertIsTrue(CustomerProfileWindow.VerifyProfileDefaults(), "");

            TitlebarActions.ClickClose((WinWindow)CustomerProfileWindow.GetCustomerProfileWindowProperties());

            Cleanup();
        }