Ejemplo n.º 1
0
        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();
        }