public void AdminOnboardSubscriptionTest(CreatePlanData planData, string subscriptionName) { Log.Information("---Open Add-ons List Page...---"); TestInitialize(); var smpPage = new SmpPage(this.driver); Log.Information("---Open Add-ons List Page...---"); Log.Information("Find main menu ..."); smpPage.GetMainMenu_AdminPortal(); smpPage.OpenMenuPlans(); var page = new AddonListPage(this.driver); Log.Information("---Select Add-ons tab...---"); page.SelectPlansTab(); Log.Information("---Click Add-on " + planData.planName + " and check details...---"); page.SelectPlanInTableAndCheckDatails(planData.planName); var configPage = new AddonConfigPage(this.driver); string name = "Cmp Wap Extension"; Log.Information("---Click Add-on service " + name + " and check details...---"); configPage.SelectAddonServiceInTableAndCheckDatails(name); var subscptPage = new SubscriptionPage(this.driver); Log.Information("---Onboarding subscripton...---"); subscptPage.OnboardSubscription(planData, subscriptionName); Log.Information("Added subscription to plan"); }
public void tc_10854_ManageA_Subscription() { CommonSection.CreateLink.Subscription(); objCreate.FillSubscriptionPage(subscriptionTitle + "TC10854"); CommonSection.Manage.Training(); TrainingPage.SearchRecord(subscriptionTitle + "TC10854"); SearchResultsPage.ClickCourseTitle(subscriptionTitle + "TC10854"); SubscriptionPage.ClickEdit(); Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); GeneralCoursePage.SearchTagForNewContent(tagname + "TC10854"); _test.Log(Status.Info, "Searching Tag."); CreateAICCPage.AvailableinCatalog.ClicktoUncheck(); SummaryPage.ClickSavebutton(); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC10854')]")).Text; StringAssert.AreEqualIgnoringCase(tagname + "TC10854", s); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No")); CommonSection.SearchCatalog(subscriptionTitle + "TC10854"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(subscriptionTitle + "TC10854")); _test.Log(Status.Pass, "Verify Created content is not Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(subscriptionTitle + "TC10854"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(subscriptionTitle + "TC10854")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); }
public void Z05_ManageASubscription_10854() { CommonSection.CreateLink.Subscription(); objCreate.FillSubscriptionPage("editcontent"); CommonSection.Manage.Training(); TrainingPage.SearchRecord(Variables.subscriptionTitle + "editcontent"); SearchResultsPage.ClickCourseTitle(Variables.subscriptionTitle + "editcontent"); SubscriptionPage.ClickEdit(); // Assert.IsTrue(Driver.checkTagsonContentCreationPage(true)); GeneralCoursePage.SearchTagForNewContent(tagname); _test.Log(Status.Info, "Searching Tag."); SummaryPage.ClickSavebutton(); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "')]")).Text; StringAssert.AreEqualIgnoringCase(tagname, s); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); }
public void TestNewUserSignIn() { // Switch to VPN client session this.vpnClient.Session.SwitchTo(); LandingScreen landingScreen = new LandingScreen(this.vpnClient.Session); landingScreen.ClickGetStartedButton(); // Verify Account Screen this.vpnClient.Session.SwitchTo(); VerifyAccountScreen verifyAccountScreen = new VerifyAccountScreen(this.vpnClient.Session); Assert.AreEqual("Waiting for sign in and subscription confirmation...", verifyAccountScreen.GetTitle()); Assert.AreEqual("Cancel and try again", verifyAccountScreen.GetCancelTryAgainButtonText()); // Switch to Browser session this.browser.Session.SwitchTo(); // Email Input page EmailInputPage emailInputPage = new EmailInputPage(this.browser.Session); emailInputPage.InputEmail(Constants.NewUserEmail); emailInputPage.ClickContinueButton(); // Registration password Input Page RegisterPage registerPage = new RegisterPage(this.browser.Session); registerPage.InputPassword(Environment.GetEnvironmentVariable("EXISTED_USER_PASSWORD")); registerPage.InputRepeatPassword(Environment.GetEnvironmentVariable("EXISTED_USER_PASSWORD")); registerPage.InputAge("50"); registerPage.ClickCreateAccountButton(); // Get verification code from API string verificationCode = Utils.GetVerificationCode(Constants.NewUserName); // Enter verification code page VerificationCodePage verificationCodePage = new VerificationCodePage(this.browser.Session); verificationCodePage.InputVerificationCode(verificationCode); verificationCodePage.ClickVerifyButton(); // Enter subscription page string subscriptionPageUrl = string.Empty; Utils.WaitUntil(ref subscriptionPageUrl, (str) => this.browser.GetCurrentUrl(), null, (str) => str.Contains(Constants.KeyWordInPaymentUrl)); SubscriptionPage subscriptionPage = new SubscriptionPage(this.browser.Session); subscriptionPage.InputFullName(Constants.NewUserName); subscriptionPage.InputCardNumber(Environment.GetEnvironmentVariable("NEW_USER_CARD_NUMBER")); subscriptionPage.InputExpDate(Environment.GetEnvironmentVariable("NEW_USER_CARD_EXP_DATE")); subscriptionPage.InputCVC(Environment.GetEnvironmentVariable("NEW_USER_CARD_CVC")); subscriptionPage.InputZipCode(Environment.GetEnvironmentVariable("NEW_USER_ZIP_CODE")); subscriptionPage.ClickAuthorizeCheckBox(); subscriptionPage.ClickSubmitButton(); // Subscription Success Page SubscriptionSuccessPage subscriptionSuccessPage = new SubscriptionSuccessPage(this.browser.Session); subscriptionSuccessPage.ClickTakeMeToProductLink(); // Quick Access Screen this.vpnClient.Session.SwitchTo(); QuickAccessScreen quickAccessScreen = new QuickAccessScreen(this.vpnClient.Session); Assert.AreEqual("Quick access", quickAccessScreen.GetTitle()); Assert.AreEqual("You can quickly access Firefox Private Network from your taskbar tray", quickAccessScreen.GetSubTitle()); Assert.AreEqual("Located next to the clock at the bottom right of your screen", quickAccessScreen.GetDescription()); quickAccessScreen.ClickContinueButton(); // On main screen MainScreen main = new MainScreen(this.vpnClient.Session); main.ClickSettingsButton(); // On setting screen SettingScreen settingScreen = new SettingScreen(this.vpnClient.Session); settingScreen.ClickManageAccountButton(); // Open an account page in browser this.browser.Session.SwitchTo(); emailInputPage = new EmailInputPage(this.browser.Session); emailInputPage.InputEmail(Constants.NewUserEmail); emailInputPage.ClickContinueButton(); // Go to password input page PasswordInputPage passwordInputPage = new PasswordInputPage(this.browser.Session); passwordInputPage.InputPassword(Environment.GetEnvironmentVariable("EXISTED_USER_PASSWORD")); passwordInputPage.ClickSignInButton(); // Go to account management page ManageAccountPage manageAccountPage = new ManageAccountPage(this.browser.Session); manageAccountPage.ClickDeleteButton(); manageAccountPage.ConfirmDeleteAccount(Environment.GetEnvironmentVariable("EXISTED_USER_PASSWORD")); // User sign out this.vpnClient.Session.SwitchTo(); settingScreen.ScrollDown(); settingScreen.ClickSignOutButton(); }
protected override void OnBindingContextChanged() { base.OnBindingContextChanged(); // BindingContext var vm = BindingContext as SignUpViewModel; if (vm == null) { return; } // Credentials Card var credentialCard = new CredentialPage(); credentialCard.BindingContext = vm.CredentialViewModel; _cards.Add(credentialCard); // Account Card var accountPage = new AccountPage(); accountPage.BindingContext = vm.AccountViewModel; _cards.Add(accountPage); // Genre selection Card var genreCard = new GenrePage(); genreCard.BindingContext = vm.GenreViewModel; _cards.Add(genreCard); // User data Card var userCard = new UserPage(); userCard.BindingContext = vm.UserViewModel; _cards.Add(userCard); // Subscription data Card var subscriptionCard = new SubscriptionPage(); subscriptionCard.BindingContext = vm.SubscriptionViewModel; _cards.Add(subscriptionCard); for (int i = 0; i < NumCards; i++) { var card = _cards[i]; card.InputTransparent = (Device.RuntimePlatform == Device.iOS) ? false : true; card.IsVisible = false; CardStackView.Children.Add( card, Constraint.Constant(0), Constraint.Constant(0), Constraint.RelativeToParent((parent) => { return(parent.Width); }), Constraint.RelativeToParent((parent) => { return(parent.Height); }) ); } // Init InitializeCards(false); }
public void ThenSubscriptionPageShouldBeOpened() { _subscriptionPage = new SubscriptionPage(); _subscriptionPage.VerifyPage(); }
public void GivenIAmOnTheSubscriptionPage() { _subscriptionPage = new SubscriptionPage(); _subscriptionPage.Open(); }