1

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.

  • What research you did to answer your question, if any? – Peter M. Apr 18 '18 at 13:10
  • I researched online and found that I need to get ADB Android Debug Bridge on my system. This took a lot of while because I did't want to install the whole Android Studio and just the Android SDK. What are the next steps now for the setup and test execution? – Rohan Kalia Apr 18 '18 at 16:44
  • You have two options: (1) either you follow instructions EXACTLY as written (and hope they are correct and give you promised results), or (2) you ADAPT steps to your exact needs (and then it is YOUR responsibility to understand the consequences of the changes, and deal with them). Good luck. Please post self-answer (what steps you found), it is interesting question but sadly too broad. – Peter M. Apr 18 '18 at 16:58
  • There are like million of tutorials available. Why not research/apply and if you've run in to a problem come back. – demouser123 Apr 19 '18 at 6:39
  • I know there are umpteen tutorials but I found it a tad confusing the setup part in particular. Can you please send a link that guides step by step in detail for setup and getting started with the Appium tool. – Rohan Kalia Apr 19 '18 at 9:50
0

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

Download latest nodejs linux binaries

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.

export PATH=$PATH:<full_path_of_the_extracted_node_folder>/bin

Install grunt-cli:

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

Install Java JRE 6

sudo apt-get install openjdk-6-jre

Install Android SDK:

Download the SDK and extract it to your home folder.

Launch the Android SDK Manager:

~/path/to/android-sdk/tools/android

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.