예제 #1
0
        // [Test, Order(19)]
        public void tc_8585_Create_New_Account_Self_Registration_8585()
        {
            AccountCreation CreateAccount = new AccountCreation(driver);

            CommonSection.Logout();
            LoginPage.ClickSignup();
            _test.Log(Status.Info, "Click Sign up link on Login Page");

            CreateNewAccountobj.PopulateCreateNewUserLinkOuter(ExtractDataExcel.MasterDic_newuser["Id"], ExtractDataExcel.MasterDic_newuser["Firstname"], ExtractDataExcel.MasterDic_newuser["Lastname"]);
            // CreateNewAccountobj.Click_SelectOrganization("Sample Organization");
            CreateNewAccount.SelectOrganization("Sample Organization");
            CreateNewAccount.EnteredPassword("password");
            CreateNewAccount.EnteredConfirmPassword("password");
            Assert.IsTrue(CreateNewAccount.isConfirmEmailfielddisplaywithNonEditMode() == "true");
            _test.Log(Status.Pass, "Verify Confirm Email field display with non edit mode");
            CreateNewAccount.FilEmailAddress(email);
            Assert.IsTrue(CreateNewAccount.isConfirmEmailfielddisplaywithEditMode());
            _test.Log(Status.Pass, "Verify Confirm Email field display with edit mode");
            Assert.IsFalse(CreateNewAccount.CreateButtonisEnabled());
            CreateNewAccount.FilConfirmEmail("a");
            Assert.IsTrue(CreateNewAccount.ConfirmEmailAddressValidationmessagedisplay("Enter a valid email address that contains"));
            CreateNewAccount.ClearEmailAddress();
            //Assert.IsTrue(CreateNewAccount.isConfirmEmailfielddisplaywithNonEditMode() == "true");
            _test.Log(Status.Pass, "Verify Confirm Email field display with non edit mode");
            CreateNewAccount.FilEmailAddress(email);
            CreateNewAccount.FilConfirmEmail(email);
            Assert.IsTrue(CreateNewAccount.CreateButtonisEnabled());
            CreateNewAccountobj.Click_CreateAccount();
            _test.Log(Status.Info, "Click Create button after fill all mandetory fields");

            HomePage.clickGetStarted();
            _test.Log(Status.Info, "Click On lets get Started button");
            Assert.IsTrue(HomePage.Title == "Home");
            _test.Log(Status.Pass, "User Successfully Logged in");
        }
예제 #2
0
        public void z27_Create_New_Account_Self_Registration_8585()
        {
            AccountCreation CreateAccount = new AccountCreation(driver);

            CommonSection.Logout();
            LoginPage.ClickSignup();
            _test.Log(Status.Info, "Click Sign up link on Login Page");

            CreateNewAccountobj.PopulateCreateNewUserLinkOuter(ExtractDataExcel.MasterDic_newuser["Id"], ExtractDataExcel.MasterDic_newuser["Firstname"], ExtractDataExcel.MasterDic_newuser["Lastname"]);
            CreateNewAccountobj.Click_SelectOrganization("Sample Organization");
            CreateNewAccountobj.Click_CreateAccount();
            _test.Log(Status.Info, "Click Create button after fill all mandetory fields");
            HomePage.clickGetStarted();
            _test.Log(Status.Info, "Click On lets get Started button");
            Assert.IsTrue(HomePage.Title == "Home");
            _test.Log(Status.Pass, "User Successfully Logged in");
            CommonSection.Logout();
            _test.Log(Status.Info, "Logout from learner");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login as Admin");
        }