How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska:...

16
How to kick-off Test Automation (using Docker) Szymon Wagner Robert Hospodarysko 01.03.2017

Transcript of How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska:...

Page 1: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

How to kick-off

Test Automation (using Docker)

Szymon Wagner

Robert Hospodarysko

01.03.2017

Page 2: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

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

Page 3: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

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

Page 4: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

TA aplikacji webowej - Selenium WebDriver

4PapryQArz - We test with taste. www.papryqarz.org

Page 5: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

Scenariusze testowe - Gherkin Cucumber

5PapryQArz - We test with taste. www.papryqarz.org

Page 6: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

Przeglądarki mobilne - Appium Server

6PapryQArz - We test with taste. www.papryqarz.org

Page 7: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

Continuous Integration - Jenkins

7PapryQArz - We test with taste. www.papryqarz.org

Page 8: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

Selenium Grid

8PapryQArz - We test with taste. www.papryqarz.org

Page 9: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

Docker – Jenkins / Selenium Grid

9PapryQArz - We test with taste. www.papryqarz.org

Page 10: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

Raporty z testów – Cucumber Reports

10PapryQArz - We test with taste. www.papryqarz.org

Page 11: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

3 x file

• Makefile

• Dockerfile

• Jenkinsfile

11PapryQArz - We test with taste. www.papryqarz.org

Docker images / containers / binaries

Page 12: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

Smart TA kick-off

12PapryQArz - We test with taste. www.papryqarz.org

Page 13: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

Test Automation - Jenkins

13PapryQArz - We test with taste. www.papryqarz.org

Page 14: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

Update TA

• Properties file

• Feature files (scenariusze testowe)

• Step definitions

• Page Objects

14PapryQArz - We test with taste. www.papryqarz.org

Page 15: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

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

Page 16: How to kick-off Test Automation (using Docker)...• Testowanie w Continuous Delivery - Środowiska: Dev, Staging, Production - Typy testów: Smoke, Regression, Full • Przejrzyste

16

Dziękujemy za uwagę!

[email protected]

[email protected]

PapryQArz - We test with taste. www.papryqarz.org