示例#1
0
        public void AAgrgarItems(List <string> lstItems)
        {
            try
            {
                Reporte.Reporte.CasoPrueba = ext.CreateTest("Agregar Elementos").Info("Agrega Elementos");
                MetodosAgregarItems items = new MetodosAgregarItems(Driver);
                Generico = new Genericos(Driver);
                Reporte.Reporte.TestInfo("Abrir navegador");
                Generico.AbrirNavegador(cUrl);
                Reporte.Reporte.TestPass("Test exitoso");

                Reporte.Reporte.TestInfo("Agrega 2 Elementos");
                foreach (var item in lstItems)
                {
                    items.AgregaItem(item);
                    if (item == "Hola Mundo")
                    {
                        Assert.IsTrue(lstItems.Contains("Hola Mundo"), item);
                    }
                    else
                    {
                        Assert.IsTrue(lstItems.Contains("Adios Mundo"), item);
                    }
                }
                Reporte.Reporte.TestPass("Elementos agregados correctamente");
            }
            catch (System.Exception)
            {
                throw;
            }
        }
示例#2
0
 public void CSeleccionarBtn()
 {
     try
     {
         Reporte.Reporte.CasoPrueba = ext.CreateTest("Seleccionar el Segundo Elemento").Info("Seleccionar");
         MetodosAgregarItems items = new MetodosAgregarItems(Driver);
         Reporte.Reporte.TestInfo("Seleccionar el elemento");
         items.SelectBtn();
         Reporte.Reporte.TestPass("Elemento seleccionado");
         //Assert.AreEqual(true, items.RadioBtn.isSelected());
     }
     catch (System.Exception)
     {
         throw;
     }
 }
示例#3
0
 public void FTextoSubrayado()
 {
     try
     {
         Reporte.Reporte.CasoPrueba = ext.CreateTest("Comprobar texto subrayado").Info("texto subrayado");
         MetodosAgregarItems items = new MetodosAgregarItems(Driver);
         Reporte.Reporte.TestInfo("Obtener el texto subrayado");
         string textoSub = "line-through";
         items.TextoSubrayado();
         Reporte.Reporte.TestPass("prueba exitosa");
         //Assert.AreEqual(items.TextoSubrayado(), textoSub);
     }
     catch (System.Exception)
     {
         throw;
     }
 }
示例#4
0
 public void EColorTexto()
 {
     try
     {
         Reporte.Reporte.CasoPrueba = ext.CreateTest("Recuperar Color de Elemento").Info("Recuperar Color");
         MetodosAgregarItems items = new MetodosAgregarItems(Driver);
         Reporte.Reporte.TestInfo("Color de elemento");
         string colorText = "#d9d9d9";
         items.ColorTexto(colorText);
         Reporte.Reporte.TestPass("Color recuperado");
         // Assert.AreEqual(items.ColorTexto(colorText), colorText);
     }
     catch (System.Exception)
     {
         throw;
     }
 }
示例#5
0
        public void DCompletarItems()
        {
            try
            {
                Reporte.Reporte.CasoPrueba = ext.CreateTest("Completar Elementos").Info("Completa los dos elementos agregados");
                MetodosAgregarItems items = new MetodosAgregarItems(Driver);
                Reporte.Reporte.TestInfo("Da clic en el botón completar");
                items.CompletarItem();
                Reporte.Reporte.TestPass("Clic realizado con exito");

                // Assert
            }
            catch (System.Exception)
            {
                throw;
            }
        }
示例#6
0
        public void BCambiarNombreItem()
        {
            try
            {
                Reporte.Reporte.CasoPrueba = ext.CreateTest("Cambiar Nombre del Elemento").Info("Cambia Nombre");
                MetodosAgregarItems items = new MetodosAgregarItems(Driver);
                string nuevoNombre        = "Tengo Hambre";
                Reporte.Reporte.TestInfo("Cambia Nombre elemento 2");
                items.CambiarNombreItem(nuevoNombre);

                Assert.IsTrue(nuevoNombre.Contains("Tengo Hambre"));
                Reporte.Reporte.TestPass("El nombre del elemento cambio correctamente");
            }
            catch (System.Exception)
            {
                throw;
            }
        }