It's a testing technique that executes specific test suites using special testing software tools, comparing expected and actual test results. It reduces the human effort of sitting in front of a computer and manually testing all test suites.
Why Automate Tests ….?
- Its time & money saving with no human intervention needed.
- Manual testing could sometimes become boring and thus could lead to errors.
- Automation tools provide the facility to record the tests, in order to re-play them when required.
There are many testing frameworks for automation testing for Mobile Apps. 2 frameworks which we most commonly used are the Detox framework and the Wdio framework.
The Detox Framework
It is a grey box end-to-end testing framework for testing test suites in real device/simulator. It's way faster than other testing frameworks like Appium, as it doesn't use the client-server architecture for test execution. React Native developers use Detox a lot as it faster and debuggable and can be used with any test runner like Jest, Mocha.Detox tests could be run on CI systems which run the tests regularly. Some of the CI systems supporting Detox are Travis CI, Bitrise and GitlabCI.
The Wdio Framework
It is an automation framework used to automate modern web and mobile in order to create robust and stable test suites. It has a lot of community plugins in addition to its inbuilt plugins, which helps in creating complex test suites.Wdio has different protocols for different platforms, selenium protocol for web and appium for mobile.Wdio tests could be run remotely on cloud systems such as Sauce Labs, BrowserStack, TestingBot and many more…
Why we preferred Wdio over Detox
As we have infinite number of mobile devices these days, it is almost impossible to test a mobile app in all of them with all scenarios. So to provide a world-class experience without any glitches, we use BrowserStack for testing our Mobile App as it supports over 2500+ mobile devices and browsers, and thus helps developers to not actually own and manage such in-house test devices.
Detox does not support BrowserStack but Wdio does. And that's the main reason we went ahead with Wdio as our automation testing framework for Mobile. We wanted to take the full power of BrowserStack multi device testing and use it to deliver world class applications.
Automation is a must in everyone's tech arsenal as it really saves lot of manual testing effort and improves the overall product quality.