Пример #1
0
        public void Register8()
        {
            //REJESTRACJA nie wpisano żadnych danych - Łukaś
            MainPageAction     mainPageAction     = new MainPageAction(driver);
            RegisterPageAction registerPageAction = new RegisterPageAction(driver);

            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZarejestrujBT();
            registerPageAction.registerBTClick();
            registerPageAction.registerNameErrValidate();
            registerPageAction.registerSurnameErrValidate();
            registerPageAction.registerEmailErrValidate();
            registerPageAction.registerPasswordErrValidate();
        }
Пример #2
0
        public void Register3()
        {
            //REJESTRACJA niepoprawny e-mail - Łukaś
            MainPageAction     mainPageAction     = new MainPageAction(driver);
            RegisterPageAction registerPageAction = new RegisterPageAction(driver);

            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZarejestrujBT();
            registerPageAction.registerNameETSet(GlobalVariables.registerNameCorrect);
            registerPageAction.registerSurnameETSet(GlobalVariables.registerSurnameCorrect);
            registerPageAction.registerEmailETSet(GlobalVariables.registerEmailIncorrect);
            registerPageAction.registerPasswordETSet(GlobalVariables.registerPasswordCorrect);
            registerPageAction.registerRepeatPasswordETSet(GlobalVariables.registerPasswordCorrect);
            registerPageAction.registerBTClick();
        }
Пример #3
0
        public void Register7()
        {
            //REJESTRACJA brak imienia i nazwiska - Łukaś
            MainPageAction     mainPageAction     = new MainPageAction(driver);
            RegisterPageAction registerPageAction = new RegisterPageAction(driver);

            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZarejestrujBT();
            registerPageAction.registerEmailETSet(GlobalVariables.registerEmailCorrect);
            registerPageAction.registerPasswordETSet(GlobalVariables.registerPasswordCorrect);
            registerPageAction.registerRepeatPasswordETSet(GlobalVariables.registerPasswordCorrect);
            registerPageAction.registerBTClick();
            registerPageAction.registerNameErrValidate();
            registerPageAction.registerSurnameErrValidate();
        }
Пример #4
0
        public void Register5()
        {
            //REJESTRACJA hasło za krótkie - Łukaś
            MainPageAction     mainPageAction     = new MainPageAction(driver);
            RegisterPageAction registerPageAction = new RegisterPageAction(driver);

            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZarejestrujBT();
            registerPageAction.registerNameETSet(GlobalVariables.registerNameCorrect);
            registerPageAction.registerSurnameETSet(GlobalVariables.registerSurnameCorrect);
            registerPageAction.registerEmailETSet(GlobalVariables.registerEmailCorrect);
            registerPageAction.registerPasswordETSet(GlobalVariables.registerPasswordIncorrect2);
            registerPageAction.registerRepeatPasswordETSet(GlobalVariables.registerPasswordIncorrect2);
            registerPageAction.registerBTClick();
            registerPageAction.registerPasswordErrValidate();
        }
Пример #5
0
        public void Register1()
        {
            //WALIDACJA FORMATKI - Łukaś
            MainPageAction     mainPageAction     = new MainPageAction(driver);
            RegisterPageAction registerPageAction = new RegisterPageAction(driver);

            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZarejestrujBT();
            registerPageAction.registerTitleTXValidate();
            registerPageAction.registerNameTXValidate();
            registerPageAction.registerNameETSet("name");
            registerPageAction.registerSurnameTXValidate();
            registerPageAction.registerSurnameETSet("surname");
            registerPageAction.registerEmailTXValidate();
            registerPageAction.registerEmailETSet("email");
            registerPageAction.registerPasswordTXValidate();
            registerPageAction.registerPasswordETSet("password");
            registerPageAction.registerRepeatPasswordTXValidate();
            registerPageAction.registerRepeatPasswordETSet("password");
            registerPageAction.registerBTClick();
        }
Пример #6
0
        public void Register2()
        {
            //REJESTRACJA POPRAWNE DANE + LOGOWANIE NA NOWE KONTO - Łukaś
            MainPageAction     mainPageAction     = new MainPageAction(driver);
            RegisterPageAction registerPageAction = new RegisterPageAction(driver);
            LoginPageAction    loginPageAction    = new LoginPageAction(driver);

            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZarejestrujBT();
            registerPageAction.registerNameETSet(GlobalVariables.registerNameCorrect);
            registerPageAction.registerSurnameETSet(GlobalVariables.registerSurnameCorrect);
            registerPageAction.registerEmailETSet(GlobalVariables.registerEmailCorrect);
            registerPageAction.registerPasswordETSet(GlobalVariables.registerPasswordCorrect);
            registerPageAction.registerRepeatPasswordETSet(GlobalVariables.registerPasswordCorrect);
            registerPageAction.registerBTClick();
            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZalogujBT();
            loginPageAction.emailETSet(GlobalVariables.registerEmailCorrect);
            loginPageAction.passwordETSet(GlobalVariables.registerPasswordCorrect);
            loginPageAction.loginBTClick();
            Thread.Sleep(2000);
            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickWylogujBT();
        }