Ejemplo n.º 1
0
 public void TestFixtureSetUp()
 {
     // Setup once per fixture
     if (SolutionBrowser._browser == null)
     {
         SolutionBrowser.LaunchBrowser();
     }
 }
Ejemplo n.º 2
0
        public void TestFixtureSetUp()
        {
            ReporterWrapper.ReporterContext("Launch browser", () =>
            {
                if (SolutionBrowser._browser == null)
                {
                    SolutionBrowser.LaunchBrowser();
                }

                VerifyWrapper.IsNotNull(SolutionBrowser._browser, "Check Browser", "Open and launch browser if it hasn't been already done.");
            });
        }
Ejemplo n.º 3
0
        public void PasswordSet()
        {
            SolutionBrowser._browser.Sync();

            ReporterWrapper.ReporterContext("Set Password credentials", () =>
            {
                lp.PasswordEditField.SetValue(user.Pwd);
                SolutionBrowser._browser.Sync();
                VerifyWrapper.IsMatch(lp.PasswordEditField.Value, user.Pwd, "Set Password", "Check the PasswordEditField to make its value matches the one extracted from the Excel File.", SolutionBrowser.GetSnapshot());
            });
        }
Ejemplo n.º 4
0
        public void UsernameSet()
        {
            SolutionBrowser._browser.Sync();

            ReporterWrapper.ReporterContext("Set Username credentials", () =>
            {
                lp.UsernameEditField.SetValue(user.Email);
                SolutionBrowser._browser.Sync();
                VerifyWrapper.IsMatch(lp.UsernameEditField.Value, user.Email, "Set Username", "Check the UsernameEditField to make sure its value is the username extracted from the Excel file", SolutionBrowser.GetSnapshot());
            });
        }
Ejemplo n.º 5
0
        public void LoginLinkClick()
        {
            SolutionBrowser._browser.Sync();

            ReporterWrapper.ReporterContext("Click on login link", () =>
            {
                lp.LoginLink.Click();
                SolutionBrowser._browser.Sync();

                VerifyWrapper.IsMatch(SolutionBrowser._browser.URL, "login", "Navigate to login page", "Click on link to navigate to the login page", SolutionBrowser.GetSnapshot());
            });
        }
Ejemplo n.º 6
0
        public void CheckLogIn()
        {
            SolutionBrowser._browser.Sync();
            //ILink userWelcome = lp.CheckLogIn(FIRSTNAME, LASTNAME);

            var regex = "^Bonjour\\s" + user.FirstName + "\\s" + LASTNAME;

            VerifyWrapper.IsMatch(lp.LoggedInLink.InnerText, regex, "Check log in status", "Check if we were able to log in with the Excel file credentials.", SolutionBrowser.GetSnapshot());

            //if (userWelcome != null)
            //{
            //    string welcome = userWelcome.InnerText;
            //    var regex = "^Bonjour\\s" + user.FirstName + "\\s" + LASTNAME;

            //    var match = Regex.Match(welcome, regex, RegexOptions.IgnoreCase);

            //    if (!match.Success)
            //        Assert.Fail("The LogIn was not successful.");
            //}
            //else
            //    Assert.Fail("The LogIn was not successful.");
        }