Exemplo n.º 1
0
        public void ApagarPerfil()
        {
            #region Parameters
            string usuario    = Properties.Settings.Default.DEFAULT_USER;
            string senha      = Properties.Settings.Default.DEFAULT_PASSWORD;
            string plataforma = "Plataforma " + GeneralHelpers.ReturnStringWithRandomNumbers(2);
            string os         = GeneralHelpers.ReturnStringWithRandomCharacters(3);
            string build      = GeneralHelpers.ReturnStringWithRandomCharacters(5);

            #endregion
            ProfileDBSteps.CriarPerfilDB(plataforma, os, build);
            loginFlows.EfetuarLogin(usuario, senha);

            accountPage.ClicarAlterarConta();
            accountPage.ClicarPerfil();
            Assume.That(accountPage.VerificarExistenciaDePerfil());
            accountPage.RetornaQuantidadeDeOpcoesNoComboBox();
            accountPage.SelecionarPerfil();
            accountPage.ClicarEmApagar();
            accountPage.ClicarEnviar();

            Assert.AreEqual(0, ProfileDBSteps.VerificarQuantidadeDePerfilExistenteDB(plataforma));
            Assert.Greater(accountPage.amountOption, accountPage.restOption);
        }