DETOX�MOBILE AUTOMATION TEST
Flavio, Di Carlo | Software engineer
MEETING AGENDA
CASE STUDY�POKER PLATFORM
POKER PLATFORM
CASE STUDY
MANUAL TESTING ADVANTAGES
CASE STUDY
HOW CAN AUTOMATION HELP
CASE STUDY
CUMULATED COSTS
CASE STUDY
AUTOMATION�TEST TOOLS
AUTOMATION TEST TOOLS
MOBILE AUTOMATION
| PROS | CONS |
|
|
|
AUTOMATION TEST TOOLS
DETOX�WHAT IS IT?
DETOX
WHAT IS IT?
DETOX
ARCHITECTURE
DETOX
DETOX
TESTER
DETOX�MEDIATOR�SERVER
DETOX�NATIVE�CLIENT
TEST�RUNNER
test.js
EARL�GREY
RESULT
DETOX�API
OBJECT
DETOX
DETOX | DEVICE |
.init() .cleanup() .beforeAll() .beforeEach() .afterAll() .afterEach() | .installApp() .launchApp() .terminateApp() .takeScreenshot() .setLocation(lat, lon) .sendUserNotification(n) .matchFace() .unmatchFace() |
METHODS
DETOX
MATCHERS | ACTIONS | EXPECT |
by.id() by.label() by.text() by.type() | .tap() .swipe() .typeText() .clearText() .longPress() .scrollToIndex() .getAttributes() | .toExist() .toBeVisible() .toBeFocused() .toHaveId() .toHaveText() .toHaveValue() .not() |
DETOX
EXAMPLE TEST SCRIPT
DETOX�LET’S START
DETOX
PRE-REQUIREMENTS
DETOX
INSTALL AND INIT
DETOX
CONFIGURE DETOX PROJECT
DETOX
CONFIGURE DETOX PROJECT
DETOX
EXECUTE TEST
Execute specific .js file
$ detox test --configuration ios e2e/firstTest.e2e.js
Execute all .js files in e2e folder
$ detox test --configuration ios
DETOX
DEBUGGING PARAMS
--loglevel Log level ["fatal", "error", "warn", "info", "verbose", "trace"]
--record-logs Save logs during each test to artifact directory
--record-timeline Record tests and events timeline, for visual display on the � chrome://tracing tool [Jest Only]
--record-videos Save screen recordings before and after each test to artifacts directory
--take-screenshots Save screenshots before and after each test to artifacts directory�
DETOX
TEST RESULT LOG
DEMO
QUESTIONS
THANK YOU