This is a presentation for you that need to learn about testing in other levels than the unit and integration testing and the importance of a testing pipeline in your project.
Bruno Souza and I presented this on JavaOne Conference 2017 in San Francisco on 02/09/2017
2. Different Test Levels
Unit Tests
Component Tests
Integration Test
API Test
Web
Mobile
UI
Static Analysis
Code coverage
Stubs
Mocks
Services
UI Tests
Visual Regression Test
Test Pyramid – Focus on Automated Testing
3.
4. Different Test Levels
Test Pyramid – Focus on Automated Testing
Unit Tests
Component Tests
Integration Test
API Test
Web
Mobile
UI
Machines for web execution
Devices for mobile
executions
Servers ”mid” tests
6. Strategy focus on a Test Pipeline
UNIT
TEST
INTEGRATION
TEST
SERVICE
TEST
ACCEPTANCE
TEST
FUNCTIONAL
TEST
MOCK
SMOKE
WEB
MOBILE
NON FUNCTIONAL TESTS
SCREENSHOTS – LOGS – REPORT – DATA MANAGEMENT - PARAMETERIZED
PARALLEL EXECUTION
SMOKE
CONTRACT
FUNCTIONAL
ACCEPTANCE
7. REST ASSURED
+
JAVA SPARK (mock)
REST
SELENIUM
WEBDRIVER
WEB
APPIUM
with
EMULATOR
MOBILE
REST ASSURED for test an REST endpoint
SELENIUM WEBDRIVER for a Web Test (functional and acceptance)
APPIUM for Mobile Test (functional and acceptance)
Tool box
Tools for think about test out-of-the-box
9. REST Assured
RestAssured test example
Sending a GET with id 1 (given) and the assert
the response/results (then)
Easy DSL to automating REST services that’s use Given-When-Then syntax
https://github.com/jayway/rest-assured
10. Selenium WebDriver
Easy DSL to automating REST services that’s use Given-When-Then syntax
https://seleniumhq.org
Selenium automated testing example
Complete example with navigation, localization, manipulation and synchronization
11. Appium
Tool for automated testing on native Android, iOS or Hybrid mobile apps
https://appium.io
Example with a pre-installed app
Complete example targeting an Android platform
12. Applied Pipeline
We gonna show this magic!
SERVICE
TEST
ACCEPTANCE
TEST
FUNCTIONAL
TEST
MOCK
WEB
MOBILE
SMOKE
FUNCTIONAL