Geb+spock: larga y próspera vida a tus tests funcionales

Preview:

Citation preview

Geb+Spock: larga y próspera vida a tus tests funcionales

Esther Lozano@esloh

o

Tests funcionales

SpockFramework para testing de aplicaciones Java y Groovy

Open source (Apache License 2.0)

Tests expresivos y fáciles de leer

Estructura Given-When-Then

Integración con JUnit (vía Sputnik)

GebFramework en Groovy para automatización de navegadores

(WebDriver)

Open source (Apache License 2.0)

Patrón página

API de navegación similar a jQuery

Optimizado para Spock pero apto para JUnit, TestNG y Cucumber-JVM

Page ObjectEncapsulación y modelado del contenido de la página web

Popularizado por WebDriver

Reduce duplicidad de código

Mejora mantenibilidad y comprensión

Soportado por Geb vía Page y Module

Demo time!

ReferenciasDocumentación oficial de Spock http://spockframework.github.io/spock/docs/1.0/

Documentación oficial de Geb (magnífica) http://www.gebish.org/manual/current/

Taming Functional Web Testing https://www.youtube.com/watch?v=SNMgf6ndoeU

Tutorial http://www.adictosaltrabajo.com/tutoriales/tests-funcionales-con-spock-y-geb-para-una-aplicacion-spring-boot/

Código demo https://github.com/esloho/functional-testing-with-spock

Esther Lozano@esloh

o

esloho@gmail.com

https://github.com/esloho

¿Preguntas?

Recommended