示例#1
0
        public void LoginTest()
        {
            LoginServices s     = new LoginServices(driver);
            Login         login = BOGenerator.generateSimpleLogin();

            s.setLoginAndClickNext(login);
            Assert.IsTrue(s.singInExists());
        }
示例#2
0
        public void PasswordTest()
        {
            LoginServices s     = new LoginServices(driver);
            Login         login = BOGenerator.generateSimpleLogin();

            s.setPasswordAndClickSignIn(login);
            Assert.IsTrue(s.logoutExists());
        }
示例#3
0
        public void TestMethod1()
        {
            IWebDriver driver = new ChromeDriver();

            driver.Url = "http://yandex.ru";
            driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));

            User user = BOGenerator.createUser("super.bizmartek", "nfhfyhb87KGD");

            new LoginLogoutService(driver).login(user);
            Assert.IsTrue(new LoginPage(driver).isPostDysplayed());

            new WriteMailService(driver).writeMessage();
            new WriteMailService(driver).prepareMessage();
            // new LoginLogoutService(driver).logout(user);
            // Assert.IsTrue(new LoginPage(driver).isPasswdDisplayed());

            // driver.Close();
        }
示例#4
0
        //private BOGenerator _bog = new BOGenerator();

        public Collection <Asistencia> ConsultaRegistroAsistenciaMes(int mes, int anno, int depart)
        {
            BOGenerator _bog = new BOGenerator();

            return(_bog.ConsultaRegistroAsistenciaMes(mes, anno, depart));
        }