public void VerifyQuoteFormValidations()
        {
            CPQNavigate.NavigateToAccessoriesPage(Brand.RZR, ModelPageUrl.RZR_XP_1000_EPS_BASE_TEST);
            Accessories.FooterModule.OpenBuildSummary();
            Accessories.ClikIamFinishedButton();
            BuildQuotePage.WaitForBuildQuotePgeToLoad();
            BuildQuotePage.SetLastName(AccountDetails.TEST_USER_1.LastName);
            BuildQuotePage.SetEmail(AccountDetails.TEST_USER_1.Email);
            BuildQuotePage.SetPhoneNumber(AccountDetails.TEST_USER_1.PhoneNumber);
            BuildQuotePage.SetPostalCode(AccountDetails.TEST_USER_1.ZipCode);
            BuildQuotePage.ClickAgeCheckBox();
            BuildQuotePage.ClickGetInternetPriceButton();
            Assert.IsTrue(BuildQuotePage.IsFirstNameValidationErrorDisplayed());
            RefreshAndWait();

            BuildQuotePage.WaitForBuildQuotePgeToLoad();
            BuildQuotePage.SetFirstName(AccountDetails.TEST_USER_1.FirstName);
            BuildQuotePage.SetEmail(AccountDetails.TEST_USER_1.Email);
            BuildQuotePage.SetPhoneNumber(AccountDetails.TEST_USER_1.PhoneNumber);
            BuildQuotePage.SetPostalCode(AccountDetails.TEST_USER_1.ZipCode);
            BuildQuotePage.ClickAgeCheckBox();
            BuildQuotePage.ClickGetInternetPriceButton();
            Assert.IsTrue(BuildQuotePage.IsLastNameValidationErrorDisplayed());
            RefreshAndWait();

            BuildQuotePage.WaitForBuildQuotePgeToLoad();
            BuildQuotePage.SetFirstName(AccountDetails.TEST_USER_1.FirstName);
            BuildQuotePage.SetLastName(AccountDetails.TEST_USER_1.LastName);
            BuildQuotePage.SetPhoneNumber(AccountDetails.TEST_USER_1.PhoneNumber);
            BuildQuotePage.SetPostalCode(AccountDetails.TEST_USER_1.ZipCode);
            BuildQuotePage.ClickAgeCheckBox();
            BuildQuotePage.ClickGetInternetPriceButton();
            Assert.IsTrue(BuildQuotePage.IsEmailValidationErrorDisplayed());
            RefreshAndWait();

            BuildQuotePage.SetFirstName(AccountDetails.TEST_USER_1.FirstName);
            BuildQuotePage.SetLastName(AccountDetails.TEST_USER_1.LastName);
            BuildQuotePage.SetEmail("invalid@");
            BuildQuotePage.SetPhoneNumber(AccountDetails.TEST_USER_1.PhoneNumber);
            BuildQuotePage.SetPostalCode(AccountDetails.TEST_USER_1.ZipCode);
            BuildQuotePage.ClickAgeCheckBox();
            BuildQuotePage.ClickGetInternetPriceButton();
            Assert.IsTrue(BuildQuotePage.IsEmailValidationErrorDisplayed());
            RefreshAndWait();

            BuildQuotePage.SetFirstName(AccountDetails.TEST_USER_1.FirstName);
            BuildQuotePage.SetLastName(AccountDetails.TEST_USER_1.LastName);
            BuildQuotePage.SetEmail(AccountDetails.TEST_USER_1.Email);
            BuildQuotePage.SetPhoneNumber(AccountDetails.TEST_USER_1.PhoneNumber);
            BuildQuotePage.SetPostalCode(AccountDetails.TEST_USER_1.ZipCode);
            BuildQuotePage.ClickGetInternetPriceButton();
            Assert.IsTrue(BuildQuotePage.IsAgeCheckboxValidationErrorDisplayed());
            RefreshAndWait();
        }
 private void CompleteSteppedProcessAndValidate()
 {
     BuildConfigurePage.WaitForBuildPageToLoad();
     BuildConfigurePage.ClickAccessoryCategory("functional");
     BuildConfigurePage.ClickAccessorySubCategory("covers");
     BuildConfigurePage.ClickRandomAccessoryCardAddButton();
     BuildConfigurePage.ClickIamFinishedButtonOld();
     BuildQuotePage.WaitForBuildQuotePgeToLoad();
     BuildQuotePage.FillQuoteFormDefaultData();
     BuildQuotePage.ClickGetInternetPriceButton();
     BuildConfirmationPage.WaitForBuildConfirmationPageToLoad();
     BuildConfirmationPage.VerifyBuildconfirmationPageIsAsExpected();
 }
Esempio n. 3
0
 private void CompleteSteppedProcessAndValidate()
 {
     BuildModelPage.ClickUniqueColorGeneralModel();
     BuildTrimPage.ClickRandomTrim();
     BuildConfigurePage.WaitForBuildPageToLoad();
     BuildConfigurePage.AddRandomTiresAccessory();
     BuildConfigurePage.ClickIamFinishedButton();
     BuildQuotePage.WaitForBuildQuotePgeToLoad();
     BuildQuotePage.FillQuoteFormDefaultData();
     BuildQuotePage.ClickGetInternetPriceButton();
     BuildConfirmationPage.WaitForBuildConfirmationPageToLoad();
     BuildConfirmationPage.VerifyNewBuildConfirmationAsExpected();
 }
Esempio n. 4
0
 //[Test, Category(TestCategories.ACE), Category(TestCategories.STEPPED_PROCESS), RetryDynamic]
 public void VerifyAceSteppedProcess()
 {
     CPQNavigate.NavigateToModelsPage(Brand.ACE);
     BuildModelPage.WaitForBuildModelPageToLoad();
     BuildModelPage.ClickRandomModel();
     BuildConfigurePage.WaitForBuildPageToLoad();
     BuildConfigurePage.ClickRandomAccessoryAvoidPRP();
     BuildConfigurePage.ClickIamFinishedButton();
     BuildQuotePage.WaitForBuildQuotePgeToLoad();
     BuildQuotePage.FillQuoteFormDefaultData();
     BuildQuotePage.ClickGetInternetPriceButton();
     BuildConfirmationPage.WaitForBuildConfirmationPageToLoad();
     BuildConfirmationPage.VerifyNewBuildConfirmationAsExpected();
 }
Esempio n. 5
0
 private void CompleteSteppedProcessAndValidate()
 {
     BuildModelPage.ClickRandomModel();
     BuildColorPage.WaitForColorPageToLoad();
     BuildColorPage.ClickColor();
     BuildColorPage.ClickNextButton();
     BuildConfigurePage.WaitForBuildPageToLoad();
     BuildConfigurePage.ClickAccessoryCategory("Engine");
     BuildConfigurePage.ClickAccessorySubCategory("Intake");
     BuildConfigurePage.ClickRandomAccessoryCardAddButton();
     BuildConfigurePage.ClickIamFinishedButton();
     BuildQuotePage.WaitForBuildQuotePgeToLoad();
     BuildQuotePage.FillQuoteFormDefaultData();
     BuildQuotePage.ClickGetInternetPriceButton();
     BuildConfirmationPage.WaitForBuildConfirmationPageToLoad();
     BuildConfirmationPage.VerifyNewBuildConfirmationAsExpected();
 }
 //[Test, Category(TestCategories.GEM), Category(TestCategories.STEPPED_PROCESS), RetryDynamic]
 public void VerifyGemSteppedProcessUtility()
 {
     CPQNavigate.NavigateToModelsPage(Brand.GEM);
     BuildModelPage.ClickFamilyCategorySlide("Utility");
     BuildModelPage.ClickRandomWholeGoodCard();
     BuildConfigurePage.WaitForBuildPageToLoad();
     BuildConfigurePage.ClickAccessoryCategory("Exterior");
     BuildConfigurePage.ClickAccessorySubCategory("Roof");
     BuildConfigurePage.ClickRandomAccessoryCardAddButton();
     BuildConfigurePage.ClickIamFinishedButtonOld();
     BuildQuotePage.WaitForBuildQuotePgeToLoad();
     BuildQuotePage.FillQuoteFormDefaultData();
     BuildQuotePage.ClickFormPersonalUseOption();
     BuildQuotePage.ClickGetInternetPriceButton();
     BuildConfirmationPage.WaitForGemConfirmationPageToLoad();
     BuildConfirmationPage.ClickBuildSummaryToggleCaret();
     Assert.IsTrue(BuildConfirmationPage.GetGemAddedAccessoriesCount() > 0);
 }
 //[Test, Category(TestCategories.RZR), Category(TestCategories.STEPPED_PROCESS), RetryDynamic]
 public void VerifyRzrSteppedProcessFourSeat()
 {
     CPQNavigate.NavigateToModelsPage(Brand.RZR);
     BuildModelPage.WaitForBuildModelPageToLoad();
     BuildModelPage.ClickFourSeat();
     BuildModelPage.ClickRandomModel();
     BuildTrimPage.WaitForTrimPageToLoad();
     BuildTrimPage.ClickRandomTrim();
     BuildColorPage.WaitForColorPageToLoad();
     BuildColorPage.ClickColor();
     BuildColorPage.ClickNextButton();
     BuildConfigurePage.WaitForBuildPageToLoad();
     BuildConfigurePage.ClickRandomAccessoryAvoidPRP();
     BuildConfigurePage.ClickIamFinishedButton();
     BuildQuotePage.WaitForBuildQuotePgeToLoad();
     BuildQuotePage.FillQuoteFormDefaultData();
     BuildQuotePage.ClickGetInternetPriceButton();
     BuildConfirmationPage.WaitForBuildConfirmationPageToLoad();
     BuildConfirmationPage.VerifyNewBuildConfirmationAsExpected();
 }
 private void RefreshAndWait()
 {
     BuildQuotePage.DriverActions.PageRefresh();
     BuildQuotePage.WaitForBuildQuotePgeToLoad();
 }