E2E tests: Write once and run anywhere
@vilvaathibanpb
- Vilva athiban p b
About me
Platform and Tooling @ Omio, Berlin
Crazy about Traveling and trying new things
Endless love for OSS but am not committed to a single project for long 😉
Workshops, Blogs and YT videos in free time
Building 2 innovative products currently
@vilvaathibanpb
Let's begin
@vilvaathibanpb
e2e testing
E2E testing is a methodology used for ensuring that applications behave as expected and that the flow of data is maintained for all kinds of user tasks and processes. This type of testing approach starts from the end user's perspective and simulates a real-world scenario
why e2e testing?
current e2e setups
top frameworks
cypress
PUPPETEER
Playwright
What ABOUT android & iOS
the problems in current setup
consistency
redundant logic
high maintenance
solution?
Cucumber js
+
Appium js
+
WEB driver
cucumber JS
Cucumber is a tool for running automated tests written in plain language.
They can be read by anyone on your team.
Better Collabration
appium JS
Doesn't require an SDK or recompiling your app
Use your preferred test practices, frameworks, and tools
WebdriverIO
Next-gen browser and mobile automation test framework for Node.js
It simplifies the interaction with your app and provides a set of plugins that help you create a scalable, robust and stable test suite.
Supports React, Vue, Angular, Svelte or other frontend frameworks,
📱 hybrid or native mobile applications &
💻 native desktop applications
how the magical combo works together?
pre-requisite
SETUP APPIUM
npm install appium -g
npm install appium-doctor -g
APPIUM DOCTOR
appium inspector
setup webdriver
npm init wdio .
- NPM Install required deps
@wdio/appium-service
@wdio/cli
@wdio/cucumber-framework
@wdio/local-runner
@wdio/mocha-framework
@wdio/spec-reporter
wdio-chromedriver-service
Install CUCUMBER-JS
DEMO TIME
CODE Walk THROUGH
CONFIGURATION
PAGE OBJECTS
CUCUMBER FEATURES
STEPS
if my live coding is messed :(
NEXT STEPS
- SELENIUM GRID
- SAUCELABS/BROWSERSTACK
- CI/CD
- TESTING PERIODICALLY
QA Time
thank you for being the best audience
@vilvaathibanpb
Any more questions?
E2E tests: Write once and run anywhere
By Vilva Athiban
E2E tests: Write once and run anywhere
- 219