1 Codebase, 2 Mobile Platforms: How to Test iOS and Android by Just Writing Tests Once

Talk
🇬🇧
English
Duration: 30-45 min
Developing consistent mobile apps on iOS and Android is difficult enough, but writing automated end to end tests so they run on both platforms without writing them twice is even harder. The limited selectors on mobile make it very difficult to only use one testing code base for both platforms. By using accessibilityIds with translation keys in the same way as in the app, we use the fastest and least brittle selector on mobile possible, being resistant to tests breaking in case of text changes, allowing to also check the app in all languages without any additional effort. Using a hybrid framework like React Native or NativeScript with WebdriverIO, François will show how to use utility methods to cleverly encapsulate all of the platform differences as much as possible, so writing tests is efficient, readable and maintainable. Key Takeaways
  • Learn how to apply approaches from developing multi-platform apps with just one codebase (as used in NativeScript, React Native and Flutter) to end-to-end test automation
  • Get to know how to easily write tests in a way you can have them run on multiple platforms (even at the same time!) by just writing tests once
  • Find out which selectors to use for testing multi-platform apps with the least effort possible
  • Learn about testing accessibility and internationalization without any additional effort
  • Increase maintainability and readability of your automated end-to-end tests
Events
StartEndEventLocationMaterials
May 12, 2020May 14, 2020SauceCon Online 2020Online