Post on 22-May-2020
How to kick-off
Test Automation (using Docker)
Szymon Wagner
Robert Hospodarysko
01.03.2017
Wymagania dla
Testów Automatycznych aplikacji webowej
• Przejrzyste scenariusze testowe
• Przeglądarki desktopowe
• Przeglądarki mobilne (Android, iOS)
• Natywne aplikacje na urządzeniach mobilnych (Android, iOS)
2PapryQArz - We test with taste. www.papryqarz.org
Wymagania dla
Testów Automatycznych aplikacji webowej
• Testowanie w Continuous Delivery
- Środowiska: Dev, Staging, Production
- Typy testów: Smoke, Regression, Full
• Przejrzyste raporty z Continuous Integration
3PapryQArz - We test with taste. www.papryqarz.org
TA aplikacji webowej - Selenium WebDriver
4PapryQArz - We test with taste. www.papryqarz.org
Scenariusze testowe - Gherkin Cucumber
5PapryQArz - We test with taste. www.papryqarz.org
Przeglądarki mobilne - Appium Server
6PapryQArz - We test with taste. www.papryqarz.org
Continuous Integration - Jenkins
7PapryQArz - We test with taste. www.papryqarz.org
Docker – Jenkins / Selenium Grid
9PapryQArz - We test with taste. www.papryqarz.org
Raporty z testów – Cucumber Reports
10PapryQArz - We test with taste. www.papryqarz.org
3 x file
• Makefile
• Dockerfile
• Jenkinsfile
11PapryQArz - We test with taste. www.papryqarz.org
Docker images / containers / binaries
Test Automation - Jenkins
13PapryQArz - We test with taste. www.papryqarz.org
Update TA
• Properties file
• Feature files (scenariusze testowe)
• Step definitions
• Page Objects
14PapryQArz - We test with taste. www.papryqarz.org
Użyte narzędzia• Selenium WebDriver (http://www.seleniumhq.org/projects/webdriver/)
• Selenium Page Object (https://github.com/SeleniumHQ/selenium/wiki/PageObjects)
• Appium (http://appium.io/)
• Cucumber (https://cucumber.io/)
• Cucumber reporter Jenkins plugin (https://wiki.jenkins-ci.org/display/JENKINS/Cucumber+Reports+Plugin)
• Jenkins Pipeline (https://jenkins.io/doc/book/pipeline/)
• Android SDK (https://developer.android.com/studio/index.html)
• Selenium Docker (https://github.com/SeleniumHQ/docker-selenium)
• Jenkins Docker (https://github.com/jenkinsci/docker)
15PapryQArz - We test with taste. www.papryqarz.org
16
Dziękujemy za uwagę!
szymon.wagner@intive.com
robert.hospodarysko@intive.com
PapryQArz - We test with taste. www.papryqarz.org