Exemplo n.º 1
0
        public static void EnsureTestUserIsCreated()
        {
            Hooks.Driver.Url = ConfigurationManager.AppSettings["Website"] + "register";
            WaitPageToLoad();

            var page = new RegisterPage(Hooks.Driver);

            page.SetRegisterInfo(ConfigurationManager.AppSettings["Username"],
                                 ConfigurationManager.AppSettings["FirstName"],
                                 ConfigurationManager.AppSettings["LastName"],
                                 ConfigurationManager.AppSettings["Userpass"],
                                 ConfigurationManager.AppSettings["Userpass"]);
            page.CommitChanges();
        }
Exemplo n.º 2
0
        public static void EnsureUserIsCreated()
        {
            Hooks.Driver.Url = ConfigurationManager.AppSettings["Website"] + "register";
            WaitPageToLoad();

            Hooks.Username = ConfigurationManager.AppSettings["LoginName"] + "-" + Guid.NewGuid().ToString("N");
            Hooks.Password = ConfigurationManager.AppSettings["OldPassword"];

            var page = new RegisterPage(Hooks.Driver);

            page.SetRegisterInfo(Hooks.Username,
                                 ConfigurationManager.AppSettings["FirstName"],
                                 ConfigurationManager.AppSettings["LastName"],
                                 Hooks.Password,
                                 Hooks.Password);
            page.CommitChanges();
        }
Exemplo n.º 3
0
        public void BeforeScenarioUniqueId()
        {
            Utils.EnsureUsersLoggedOut();

            var page = new RegisterPage(Driver);

            page.Header.Register.Click();

            Username = ConfigurationManager.AppSettings["Username"] + "-" + Guid.NewGuid().ToString("N");

            page.SetRegisterInfo(Username,
                                 ConfigurationManager.AppSettings["FirstName"],
                                 ConfigurationManager.AppSettings["LastName"],
                                 ConfigurationManager.AppSettings["Password"],
                                 ConfigurationManager.AppSettings["Password"]);
            page.CommitChanges();
            page.Login(Username, ConfigurationManager.AppSettings["Password"]);
        }