Automation Tests with Docker

Danilo Porcelani

Software Developer

Globalcode – Open4education

Globalcode – Open4education

Why am i here?!

Globalcode – Open4education

About me

Ex Marine,

Specialist in Eletronic by Brazilian Navy,

Bachelor in Computer Science (UERJ),

Software Developer,

Enthusiast of agile methods and tests area,

Currently coursing a specialization in Web Development (UEM).

Contact: http://www.porcelani.com/

Globalcode – Open4education

Why Virtualization

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Docker

https://docs.docker.com/engine/understanding-docker/

Globalcode – Open4education

http://blog.toshimaru.net/docker-compose-rails/

Globalcode – Open4education

http://zeroturnaround.com/wp-content/uploads/2016/03/Docker-cheat-sheet-by-RebelLabs.png

Globalcode – Open4education

Easing your environment

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Easing your environment

DB

http://www.liquibase.org/
https://flywaydb.org/

Globalcode – Open4education

Easing your environment

DB

SERVER

Dokerfiles example - https://github.com/webdevops

Globalcode – Open4education

Easing your environment

DB

SERVER

...

...

http://www.mock-server.com/where/docker.html

Globalcode – Open4education

Easing your environment

DB

SERVER

...

BROWSER

TESTS

Globalcode – Open4education

Easing your environment

DB

SERVER

...

BROWSER

TESTS

http://pt.slideshare.net/stefanteixeira/scrum-gathering-rio-2016-conteinerizando-testes-com-docker-compose

Globalcode – Open4education

Hands-on

https://github.com/porcelani/lecture-automation-tests-with-docker

Globalcode – Open4education

Hands-on

POSTGRES

WILDFLY

FIREFOX

JUNIT

SELENIUM GRID

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Globalcode – Open4education

Simplifying Development,

  • Everyone can run the tests;
  • No more H2 or comuns server developer;
  • Fast Build and Destroy images;
  • Eliminate Environment Inconsistencies;

Simplifying Test,

  • We don’t need special servers that only QA has access;
  • Automation tests relly run and QA can focus on tasks beyond regression testing.

http://blogs.plos.org/tech/testing-made-awesome-with-docker/

Globalcode – Open4education

“Legacy code is code without tests.”

- Michal Feathers

Globalcode – Open4education

Discussions

Globalcode – Open4education

Thank you

Contact: http://www.porcelani.com

Globalcode – Open4education

TDC2016 - Automation test with docker - Google Slides