public void MyAccount_InserirProfile() { //OSBUILD VAZIO HomePageObjects homePageObjects = new HomePageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); MyAccountPageObjects myAccountPageObjects = new MyAccountPageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.EscolherProjeto(ConfigurationManager.AppSettings["Projeto"].ToString()); homePageObjects.AcessarAbaMyAccount(); myAccountPageObjects.AcessarProfiles(); myAccountPageObjects.VerificaAcessoProfiles(); string conteudo = myAccountPageObjects.InserirProfile_Validar(); myAccountPageObjects.BotaoSubmeter(); conteudo = conteudo + " " + conteudo + " " + conteudo; myAccountPageObjects.VerificarInsercao(conteudo); Assert.Pass(); }
public void Issue_InsertIssuee_AlterarResolution() { ReportIssuesPageObjects reportIssuesPageObjects = new ReportIssuesPageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); HomePageObjects homePageObjects = new HomePageObjects(); UpdateIssuePageObjects updateIssuePageObjects = new UpdateIssuePageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.VerificaProjeto(); homePageObjects.AcessarAbaReportIssue(); reportIssuesPageObjects.VerificarAcessaReportIssue(); String summary = reportIssuesPageObjects.InserirTarefa_RetornoSummary();//Aqui você o sumário inserido reportIssuesPageObjects.AcessarEdicaoIssue(summary); updateIssuePageObjects.AlterarResolution("no change required"); updateIssuePageObjects.Atualizar(); Assert.Pass(); }
public void Issue_ExclusaoTotal() { HomePageObjects homePageObjects = new HomePageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); ViewIssuesPageObjects viewIssuesPageObjects = new ViewIssuesPageObjects(); ReportIssuesPageObjects reportIssuesPageObjects = new ReportIssuesPageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.AcessarAbaReportIssue(); reportIssuesPageObjects.VerificarAcessaReportIssue(); //Obriga inserir uma tarefa e verifica se foi excluída String summary = reportIssuesPageObjects.InserirTarefa_RetornoSummary(); homePageObjects.AcessarAbaViewIssue(); viewIssuesPageObjects.VerificaAcessoViewIssues(); viewIssuesPageObjects.SelecionarTudo(); viewIssuesPageObjects.Excluir(); viewIssuesPageObjects.VerificaZero(); Assert.Pass(); }
public void CriarNovoUsuario() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); GerenciarPageObjects gerenciar = new GerenciarPageObjects(); Relatorio.iniciarTeste("Criar Novo Usuario"); login.acessarLogin(); login.realizaLogin(); home.verificaAcessoTelaHome(); gerenciar.acessarMenuGerenciar(); gerenciar.acessarSubMenuGerenciarUsuarios(); gerenciar.verificaAcessoSubMenuGerenciarUsuarios(); string usuario = gerenciar.criarNovoUsuarioAleatorio(); gerenciar.verificaAcessoAlterarUsuario(); gerenciar.acessarSubMenuGerenciarUsuarios(); gerenciar.verificaAcessoSubMenuGerenciarUsuarios(); Assert.IsTrue(gerenciar.verificarListagemUsuario(usuario)); }//fim void
public void CriarTarefasDinamicas(string frequencia, string gravidade ) { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); CriarTarefaPageObjects criar = new CriarTarefaPageObjects(); VerTarefasPageObjects tarefas = new VerTarefasPageObjects(); Relatorio.iniciarTeste("Criar tarefa dinâmica (frequência: " + frequencia + ", gravidade: " + gravidade + ")"); login.acessarLogin(); login.realizaLogin(); home.verificaAcessoTelaHome(); criar.acessarCriarTarefa(); string resumo = criar.criarNovaTarefaAleatoria(frequencia, gravidade); tarefas.verificarAcessoVerTarefas(); tarefas.resetarFiltro(); Assert.IsTrue(tarefas.verificarListagemResumo(resumo)); }//fim void
public void MyAccount_InserirProfile_MakeDefault() { //OSBUILD VAZIO //Insere um profile //edita //verifica se foi inserido HomePageObjects homePageObjects = new HomePageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); ReportIssuesPageObjects reportIssuesPageObjects = new ReportIssuesPageObjects(); MyAccountPageObjects myAccountPageObjects = new MyAccountPageObjects(); SeleniumMaps Maps = new SeleniumMaps(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.EscolherProjeto(ConfigurationManager.AppSettings["Projeto"].ToString()); homePageObjects.AcessarAbaMyAccount(); myAccountPageObjects.AcessarProfiles(); myAccountPageObjects.VerificaAcessoProfiles(); string conteudo = myAccountPageObjects.InserirProfile_Validar(); myAccountPageObjects.BotaoSubmeter(); conteudo = conteudo + " " + conteudo + " " + conteudo; myAccountPageObjects.VerificarInsercao(conteudo); myAccountPageObjects.MakeDefault(); //tornando default homePageObjects.AcessarAbaReportIssue(); //validando reportIssuesPageObjects.VerificarAcessaReportIssue(); //vai lá na report e ve se tornou default reportIssuesPageObjects.VerificarDefaultProfile(conteudo); Assert.Pass(); }
public void InvalidLogin() { LoginPageObjects.Login("*****@*****.**", "tester"); MyAccountPageObjects.VerifyErrorTextDisplay(); }
MarkAttendanceSteps(LoginPageObjects loginPage, DashboardPageObjects dashboardPage, AttendacePageObjects attendacePage) { this.loginPage = loginPage; this.dashboardPage = dashboardPage; this.attendacePage = attendacePage; }
FillTimeSheetSteps(DashboardPageObjects dashboardPage, LoginPageObjects loginPage, AttendacePageObjects attendacePage, TimesheetPageObjects timesheetPage) { this.dashboardPage = dashboardPage; this.timesheetPage = timesheetPage; }
public Login() { _loginPage = new LoginPageObjects(); _login = new LoginPage(); _commonFunction = new CommonFunction(); }
public void ThenProvideCredentialAndClickLogon() { LoginPageObjects LoginPage = new LoginPageObjects(); LoginPage.LoginPage1("HMSTIL_User", "HMSTIL_User"); }
public LoginPage() { _loginPage = new LoginPageObjects(); }
LoginNIITSteps(LoginPageObjects loginPage, DashboardPageObjects dashboardPage) { this.loginPage = loginPage; this.dashboardPage = dashboardPage; }
public LoginSteps(Hooks webHooks, LoginPageObjects loginPageObjects) { this.webDriver = webHooks.WebDriver; this.loginPageObjects = loginPageObjects ?? throw new ArgumentNullException(nameof(loginPageObjects)); }
public void ValidLogin() { LoginPageObjects.Login("*****@*****.**", "blessed"); MyAccountPageObjects.VerifyMyAccountTextDisplay(); }
public void WhenUserEnterAnd(string username, string password) { LoginPageObjects page = new LoginPageObjects(_driver); page.Fill(username, password); }
//[BeforeTestRun] //public ApplicationLoginPageSteps() : base (IWebDriver driver) //{ // loginPageObjects = new LoginPageObjects(driver); //} protected override void ClassInitialize() { loginPageObjects = new LoginPageObjects(driver); }
public void WhenClickOnTheLogInButton() { LoginPageObjects page = new LoginPageObjects(_driver); page.loginBtn.Click(); }
public void ThenProvideLoggedInNameAndEmailAddressAndClickNext() { LoginPageObjects LoginPage = new LoginPageObjects(); LoginPage.LoginPage2("Jigar", "*****@*****.**"); }
public void LoginTest() { ILog log = LogManager.GetLogger("ErrorLog"); try { LoginAction.Login(); Assert.AreEqual(TestEnvironment.LoadJson().Welcome.Text, WebDriverUtils.TextChecker(LoginPageObjects.WelcomeText())); log.Info(System.Reflection.MethodBase.GetCurrentMethod()); log.Info(LoginPageObjects.SuccessMessage()); } catch (Exception ex) { log.Error(System.Reflection.MethodBase.GetCurrentMethod()); log.Error(LoginPageObjects.FailedMessage() + ex.Message); Assert.Fail(ex.Message); } }