public void VerifyTheCreatedUserInManageFrame( User.UserTypeEnum userTypeEnum) { //Verify the UserName in Manage Frame. Logger.LogMethodEntry("RumbaUserCreation", "VerifyTheCreatedUserInManageFrame", base.IsTakeScreenShotDuringEntryExit); switch (userTypeEnum) { case User.UserTypeEnum.RumbaTeacher: case User.UserTypeEnum.RumbaNonPSNTeacher: //Verify DP Teacher Name string userNameTeacher = new CreateUserPage().GetDigitalPathTeacherNameFromMemory(userTypeEnum); Logger.LogAssertion("VerifyRumbaTeacherName", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.AreEqual(userNameTeacher , new CreateUserPage().GetUserNameFromManageFrame(userNameTeacher))); break; case User.UserTypeEnum.RumbaStudent: //Verify DP Student Name string userNameStudent = new CreateUserPage().GetDigitalPathStudentNameFromMemory(); Logger.LogAssertion("VerifyRumbaStudentName", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.AreEqual(userNameStudent , new CreateUserPage().GetUserNameFromManageFrame(userNameStudent))); break; } Logger.LogMethodExit("RumbaUserCreation", "VerifyTheCreatedUserInManageFrame", base.IsTakeScreenShotDuringEntryExit); }
private void CreateUserClick(object param) { CreateUserViewModel createUserViewModel = new CreateUserViewModel(); CreateUserPage createUserPage = new CreateUserPage(); createUserPage.DataContext = createUserViewModel; Navigator.MainNavigationService.Navigate(createUserPage); }
public static void FillNewUserInformation(UserModel newUser) { var manageUserCreatePage = new CreateUserPage(); manageUserCreatePage.FillUserName(newUser.username); manageUserCreatePage.FillRealName(newUser.realName); manageUserCreatePage.FillEmail(newUser.email); manageUserCreatePage.FillAccessLevel(newUser.accessLevel); }
public MainWindow() { InitializeComponent(); Title = "Project Management"; CommandQueryDispatcher = new CommandQueryDispatcher(); ProjectsPage = new ProjectsPage(this); MainFrame.Content = ProjectsPage; AddProjectPage = new AddProjectPage(this); UsersPage = new UsersPage(this); CreateUserPage = new CreateUserPage(this); }
public void RegisterInformation(string userName, string firstName, string lastName, string dateOfBirth, string countryName) { Driver.FindElement(By.XPath(CreateUserPage.UserNameElement())).SendKeys(userName); Driver.FindElement(By.XPath(CreateUserPage.FirstNameElement())).SendKeys(firstName); Driver.FindElement(By.XPath(CreateUserPage.LastNameElement())).SendKeys(lastName); Driver.FindElement(By.XPath(CreateUserPage.SexMaleElement())).Click(); Driver.FindElement(By.XPath(CreateUserPage.DobElement())).SendKeys(dateOfBirth); //country selection SelectElement country = new SelectElement(Driver.FindElement(By.XPath(CreateUserPage.CountryDropDownElement()))); country.SelectByText(countryName); Driver.FindElement(By.XPath(CreateUserPage.AdminCheckBoxElement())).Click(); }
public void CanCreateUser() { UserManagementPage.GoTo(); CreateUserPage.GoTo(); var username = "******" + System.Guid.NewGuid().ToString(); CreateUserPage.CreateUser(username) .WithFirstName("firstName") .WithLastName("LastName") .WithEmail("*****@*****.**") .WithPassword("password") .WithRole("guest") .Save(); Assert.IsTrue(UserManagementPage.HasUser(username), "User was not found"); }
public static void Create(CreateUserPage createUserPage) { User user = new User { Name = createUserPage.UserName.Text, Email = createUserPage.UserEmail.Text, Password = createUserPage.UserPassword.Text, ContactInfo = createUserPage.UserContactInfo.Text }; UI.Context.Users.Add(user); UI.Context.SaveChanges(); UI.User = user; UI.LoggedIn(user); UI.Main.Content = new AuctionsPage(user); }
public void WhenClicarParaCriarNovaConta() { var manageUserCreatePage = new CreateUserPage(); manageUserCreatePage.ClickCreateUser(); }
public void CancelUserInformation() { Driver.FindElement(By.XPath(CreateUserPage.CancelButtonElement())).Click(); }
public void SaveUserInformation() { Driver.FindElement(By.XPath(CreateUserPage.SaveButtonElement())).Click(); }