private void Logout_Btn_Click(object sender, EventArgs e) { Tela_Login Login = new Tela_Login(); this.Hide(); Login.Show(); }
public static void ConsegueLogar() { //#region Cabeçalho CTF //CTF.Iniciar(TestContext.CurrentContext.Test.Properties.Get("Nome").ToString()); //CTF.InformacoesIniciais( // TestContext.CurrentContext.Test.Properties.Get("Módulo").ToString(), // TestContext.CurrentContext.Test.Properties.Get("Função").ToString(), // TestContext.CurrentContext.Test.Properties.Get("Pré Condição").ToString(), // TestContext.CurrentContext.Test.Properties.Get("Pós Condição").ToString(), // TestContext.CurrentContext.Test.Properties.Get("Ambiente").ToString(), // TestContext.CurrentContext.Test.Properties.Get("Versão").ToString(), // TestContext.CurrentContext.Test.Properties.Get("SAC").ToString(), // TestContext.CurrentContext.Test.Properties.Get("Responsável").ToString(), // DateTime.Today.ToString(@"DD/MM/YYYY")); //// //#endregion #region Cabeçalho CTF CTF.Iniciar("teste-login"); CTF.InformacoesIniciais( "login", "login", "", "usuário logado", "Browser:IE10\tWeb:10.10.100.147\tBD:Homo_Med", "11", "N/A", "Peterson Andrade", DateTime.Today.ToString(@"DD/MM/YYYY")); // #endregion #region Passos do Caso de Teste //try //{ Tela_Login.IrPara(); Tela_Login.InformarBase("HOMO_MED"); Tela_Login.InformarUsuario("admin"); Tela_Login.InformarSenha("topdown"); CTF.inserirImagem(Browser.Print()); Tela_Login.ClicarEmLogar(); Assert.IsTrue(Tela_Principal.EstaEm()); CTF.inserirImagem(Browser.Print()); CTF.registrarSucesso(); //} //catch (Exception ex) //{ // CTF.registrarErro(); // throw ex; //} CTF.Finalizar(); #endregion }