Presentacion De Pruebas Automatizadas

36
Pruebas unitarias para calidad de Dokeos

Transcript of Presentacion De Pruebas Automatizadas

Page 1: Presentacion De Pruebas Automatizadas

Pruebas unitariaspara calidad de Dokeos

Page 2: Presentacion De Pruebas Automatizadas

Uso

Automatizar pruebas

Page 3: Presentacion De Pruebas Automatizadas

Uso

Asegurar paquetes robustos

Page 4: Presentacion De Pruebas Automatizadas

Uso

Repetibles e Independiente

Page 5: Presentacion De Pruebas Automatizadas

Uso

Asegurar usuarios felices

Page 6: Presentacion De Pruebas Automatizadas

Uso

Ahorrar tiempo y dinero

Page 7: Presentacion De Pruebas Automatizadas

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

¿Como lo hacemos?

Page 9: Presentacion De Pruebas Automatizadas

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

Imagen de Selenium IDE

http://seleniumhq.org/docs/03_selenium_ide.html

Page 11: Presentacion De Pruebas Automatizadas

Imagen de Selenium IDE

Page 12: Presentacion De Pruebas Automatizadas

PHING

Constructor de proyectos

Generador paquete

Ahorro de tiempo

Page 13: Presentacion De Pruebas Automatizadas

Estructura de configuración

Page 14: Presentacion De Pruebas Automatizadas

Estructura de configuración

Page 15: Presentacion De Pruebas Automatizadas

Estructura de configuración

Page 16: Presentacion De Pruebas Automatizadas

Estructura de configuración

Page 17: Presentacion De Pruebas Automatizadas

XINC

Generador de reporte

Page 18: Presentacion De Pruebas Automatizadas
Page 19: Presentacion De Pruebas Automatizadas
Page 20: Presentacion De Pruebas Automatizadas
Page 21: Presentacion De Pruebas Automatizadas

SIMPLE TEST

¿QUE ES?

Page 22: Presentacion De Pruebas Automatizadas

FUNCIONES

CLASES

¿Donde probamos?

Page 23: Presentacion De Pruebas Automatizadas

Tipos de Pruebas

BASICAS

INTERMEDIAS

AVANZADAS

Page 24: Presentacion De Pruebas Automatizadas

BASICO

TRUE / FALSE

Page 25: Presentacion De Pruebas Automatizadas

Imagen de prueba básica

Page 26: Presentacion De Pruebas Automatizadas

Imagen de prueba básica

Page 27: Presentacion De Pruebas Automatizadas

Assert

Set up

Tear down

INTERMEDIO

Page 28: Presentacion De Pruebas Automatizadas

Assert

Page 29: Presentacion De Pruebas Automatizadas

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

Mock

Buffer

Refactoring

AVANZADO

Page 31: Presentacion De Pruebas Automatizadas

Resultados Específicos

Devolver el valor esperado

Mensajes de excepción

No retorna nada

Page 32: Presentacion De Pruebas Automatizadas

Conclusiones

Ubica y ayuda al programador.

Ayuda automatizar las pruebas.

Sirve en licitaciones.

Software de calidad.

Page 33: Presentacion De Pruebas Automatizadas

Visión

Pruebas para seguridad

Pruebas reutilizables.

Page 34: Presentacion De Pruebas Automatizadas

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

GRACIAS

Page 36: Presentacion De Pruebas Automatizadas

Preguntas?

VISITANOShttp://dokeoslatinoamerica.wordpress.com/