示例#1
0
        public void CriarPerfilDefault()
        {
            LoginFlows loginFlows = new LoginFlows();
            GerenciarPerfisGlobaisPageObjects gerenciarPerfisGlobaisPageObjects = new GerenciarPerfisGlobaisPageObjects();

            string plataforma = "Plataform";
            string so         = "Windows";
            string versao     = "Versao1";

            loginFlows.EfetuarLoginComUsuarioDefault();

            gerenciarPerfisGlobaisPageObjects.ClicarGerenciar();
            gerenciarPerfisGlobaisPageObjects.ClicarGerenciarPerfisGlobais();
            gerenciarPerfisGlobaisPageObjects.PreencherCampoPlataforma(plataforma);
            gerenciarPerfisGlobaisPageObjects.PreencherCampoSistemaOperacional(so);
            gerenciarPerfisGlobaisPageObjects.PreencherVersao(versao);
            gerenciarPerfisGlobaisPageObjects.ClicarAdicionarPerfil();
        }
示例#2
0
        public void PerfilFalhaSO()
        {
            LoginFlows loginFlows = new LoginFlows();
            GerenciarPerfisGlobaisPageObjects gerenciarPerfisGlobaisPageObjects = new GerenciarPerfisGlobaisPageObjects();

            string so         = "";
            string plataforma = "Plataform";
            string versao     = "Versao1";

            loginFlows.EfetuarLoginComUsuarioDefault();

            gerenciarPerfisGlobaisPageObjects.ClicarGerenciar();
            gerenciarPerfisGlobaisPageObjects.ClicarGerenciarPerfisGlobais();
            gerenciarPerfisGlobaisPageObjects.PreencherCampoPlataforma(plataforma);
            gerenciarPerfisGlobaisPageObjects.PreencherVersao(versao);
            gerenciarPerfisGlobaisPageObjects.ClicarAdicionarPerfil();

            Assert.IsTrue(gerenciarPerfisGlobaisPageObjects.RetornaTextoSO(so));
        }
        public void PerfilFalhaPlataforma()
        {
            LoginFlows loginFlows = new LoginFlows();
            GerenciarPerfisGlobaisPageObjects gerenciarPerfisGlobaisPageObjects = new GerenciarPerfisGlobaisPageObjects();

            string plataforma = "";
            string so         = "Windows";
            string versao     = "Versao1";

            loginFlows.EfetuarLoginComUsuarioDefault();

            gerenciarPerfisGlobaisPageObjects.ClicarGerenciar();
            gerenciarPerfisGlobaisPageObjects.ClicarGerenciarPerfisGlobais();
            gerenciarPerfisGlobaisPageObjects.PreencherCampoSistemaOperacional(so);
            gerenciarPerfisGlobaisPageObjects.PreencherVersao(versao);
            gerenciarPerfisGlobaisPageObjects.ClicarAdicionarPerfil();

            //Assert.IsTrue(gerenciarPerfisGlobaisPageObjects.RetornaTextoPlataforma(plataforma));
            Assert.AreEqual(plataforma, gerenciarPerfisGlobaisPageObjects.RetornaTextoPlataforma2());
        }