Automate tests for your Android & iOS apps using WebdriverIO & TypeScript!
https://github.com/steven-the-qa/mobile-automation-template- WebdriverIO (Appium support)
- TypeScript (type safety)
- NodeJS (writing to the file system)
- Cucumber (supported out-of-the-box via WebdriverIO's CLI)
- BrowserStack (devices)
- Install Node 16 or higher
- Clone the repo
- From the
ios
andandroid
directories, runnpm install
to install dependencies
That's it! At this point, you should be able to run tests.
- Navigate to the directory of either the
android
orios
project - Run
npm run all
to run all tests in the project
- Navigate to the directory of either the
android
orios
project - Run
npm run test features/{name}.feature
using the name of your feature file
- Navigate to the directory of either the
android
orios
project - Run
npm run test {feature_path_1} {feature_path_2} etc...
- Navigate to the directory of either the
android
orios
project - DEVICE={device_name1} {device_name2} npm run test {feature_path}
iOS Devices:
- iphone_12_pro_16
- iphone_13_pro_15
Android Devices:
- pixel_6_12
- galaxy_s21_12