presentacion de pruebas automatizadas
TRANSCRIPT
![Page 1: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/1.jpg)
Pruebas unitariaspara calidad de Dokeos
![Page 2: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/2.jpg)
Uso
Automatizar pruebas
![Page 3: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/3.jpg)
Uso
Asegurar paquetes robustos
![Page 4: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/4.jpg)
Uso
Repetibles e Independiente
![Page 5: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/5.jpg)
Uso
Asegurar usuarios felices
![Page 6: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/6.jpg)
Uso
Ahorrar tiempo y dinero
![Page 7: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/7.jpg)
Esquema de una prueba
Función
FunciónClases
Prueba
Resultado
Tipos de assert
PasóError
Código de DokeosCódigo de la Prueba
Pedida
Devuelve
Verifica
Envía Simple Test
![Page 8: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/8.jpg)
¿Como lo hacemos?
![Page 9: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/9.jpg)
SELENIUM
Registra los clic, escritura, y acciones prueba
-Fácil reproducción y grabación.
-Reporte en distintos formatos.
-Llenado en los campos.
![Page 10: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/10.jpg)
Imagen de Selenium IDE
http://seleniumhq.org/docs/03_selenium_ide.html
![Page 11: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/11.jpg)
Imagen de Selenium IDE
![Page 12: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/12.jpg)
PHING
Constructor de proyectos
Generador paquete
Ahorro de tiempo
![Page 13: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/13.jpg)
Estructura de configuración
![Page 14: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/14.jpg)
Estructura de configuración
![Page 15: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/15.jpg)
Estructura de configuración
![Page 16: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/16.jpg)
Estructura de configuración
![Page 17: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/17.jpg)
XINC
Generador de reporte
![Page 18: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/18.jpg)
![Page 19: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/19.jpg)
![Page 20: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/20.jpg)
![Page 21: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/21.jpg)
SIMPLE TEST
¿QUE ES?
![Page 22: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/22.jpg)
FUNCIONES
CLASES
¿Donde probamos?
![Page 23: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/23.jpg)
Tipos de Pruebas
BASICAS
INTERMEDIAS
AVANZADAS
![Page 24: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/24.jpg)
BASICO
TRUE / FALSE
![Page 25: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/25.jpg)
Imagen de prueba básica
![Page 26: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/26.jpg)
Imagen de prueba básica
![Page 27: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/27.jpg)
Assert
Set up
Tear down
INTERMEDIO
![Page 28: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/28.jpg)
Assert
![Page 29: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/29.jpg)
SET UP / TEAR DOWN
require_once('../classes/writer.php');
class FileTestCase extends UnitTestCase {
function FileTestCase() { $this->UnitTestCase('File test'); } function setUp() { } function tearDown() { } function testCreation() {
$writer = &new FileWriter('../temp/test.txt'); $writer->write('Hello'); $this->assertTrue(file_exists('../temp/test.txt'), 'File created'); }}
![Page 30: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/30.jpg)
Mock
Buffer
Refactoring
AVANZADO
![Page 31: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/31.jpg)
Resultados Específicos
Devolver el valor esperado
Mensajes de excepción
No retorna nada
![Page 32: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/32.jpg)
Conclusiones
Ubica y ayuda al programador.
Ayuda automatizar las pruebas.
Sirve en licitaciones.
Software de calidad.
![Page 33: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/33.jpg)
Visión
Pruebas para seguridad
Pruebas reutilizables.
![Page 34: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/34.jpg)
Glosariohttp://simpletest.org/index.html
http://www.lastcraft.com/simple_test.php
http://blog.rodrigoarce.com/unit-testing-otra-manera-de-testear/#comment-195
http://www.devpapers.com/article/303/
http://www.republicait.com/2009/02/24/phing/
http://www.lunasil.com/docs/index.html
http://seleniumhq.org/
http://www.pablasso.com/2009/05/29/unit-tests-en-php-con-simpletest
![Page 35: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/35.jpg)
GRACIAS
![Page 36: Presentacion De Pruebas Automatizadas](https://reader035.vdocuments.co/reader035/viewer/2022081720/559924af1a28ab1a5e8b4749/html5/thumbnails/36.jpg)
Preguntas?
VISITANOShttp://dokeoslatinoamerica.wordpress.com/