To use this boilerplate on a local machine for Android, emulator(s) need to be available. To setup your local machine you should download Android Studio, see for instructions here.
Follow the instructions to download and setup Android studio and configure a your emulators with this tutorial.
Please use Google to find the correct instructions to setup your environment (Windows / Mac / Linux).
If you were able to create emulators you can use the following options to start the emulators
-
From Android Studio itself through:
- Open
Tools > AVD Manager
- Select your emulator and click on the
play
-button
- Open
-
From the command line with the default Android commands, see this link
-
Use a module called
start-android-emulator
which can be found here
It is advised to keep an emulator open and start tests against an already opened emulator to speed up tests. Starting an emulator manually/by Appium is time consuming and will slow down the test execution.
Make sure you have a Mac, if you don't have a Mac then buy/get one, otherwise it will not work (no legal way to use iOS on Windows/Linux).
To be able to configure iOS simulators you need to download Xcode on your machine, check this on how to install it.
After installation you'll get the latest supported iOS version already installed. At the moment of writing this was iOS 12.0
. If you want an older version of iOS please download them manually by doing the following:
-
Open Xcode (you don't need to start a project, having the project selector open is sufficient)
-
Go to Xcode preferences like below
-
A pop-up will appear like below
-
Go to
Components
and download the needed versions like below
You can use the following options to manually start a simulator:
-
Through the Simulator app, find it on Mac and add it to your dock like below
-
Use a module called
start-ios-simulator
which can be found here. With this module you can easily use your terminal to select your simulator
It is advised to keep a simulator open and start tests against an already opened simulator to speed up tests. Starting a simulator manually/by Appium is time consuming and will slow down the test execution.