Esempio n. 1
0
        public void TestQaListMale()
        {
            ResultsPage lista;
            HomePage    naslovna = new HomePage(driver);

            naslovna.GoToPage();
            lista = naslovna.ClickOnLink();
            Assert.GreaterOrEqual(lista.MaleUsers, 10);
        }
Esempio n. 2
0
        public void RegistrationUser()
        {
            HomePage naslovna = new HomePage(driver);

            naslovna.GoToPage();
            naslovna.ClickRegistarLink();
            RegistrationPage registar = new RegistrationPage(driver);

            registar.RegisterUser("User", "New", "John", "12345-589", "Serbia", "Novi Sad", "Main Street", 1);
            if (registar.SuccessAlert.Displayed)
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail("Test failed - user is not registered.");
            }
        }