I have been recently asked to automate flow on mobile devices but I have no clue about mobile automation. I have tried setting up Appium on my machine but to no avail and I find it very cumbersome and confusing. Please suggest how to setup and get started. Step by step detailed instructions please!
closed as too broad by Peter M., Bharat Mane, NarendraC, kirbycope, demouser123 Apr 19 '18 at 6:38
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Do not install nodejs through apt-get, which will need sudo rights and appium will not work if node is installed as sudo user. If you have already installed remove it using
sudo apt-get remove nodejs sudo apt-get remove npm
Extract into a folder that doesn't need sudo rights to access, for example your home folder.
tar -xvf <downloaded_binary_tar.gz>
Add the following line to your ~/.bashrc file.
npm install -g grunt-cli
Open a now terminal and do
npm install -g appium
Set up a symlink in your .bashrc file for Appium:
ln -s /path/to/appium.js /usr/bin/appium
Test to make sure it can run by running appium in your terminal. The output should be something like:
info: Welcome to Appium v0.16.0 (REV 292d265edd9c7aaf96f165009285c814b218363d) info: Appium REST http interface listener started on 0.0.0.0:4723 info - socket.io started
sudo apt-get install openjdk-6-jre
Download the SDK and extract it to your home folder.
Launch the Android SDK Manager:
Install the packages that you'll need in the new window:
- Android 4.X
- Android Support Library
- Android SUpport Repository
- Google Play services
- Everything under Tools
- Everything under Extras
You can also create a symlink for the Android SDK Manager by doing:
ln -s /path/to/android-sdk/tools/android /usr/bin/android