I am assuming at this point that you have configured the $ANDROID_HOME and $PATH variable and you had installed HOMEBREW as well RUBY in your MAC to move forward and to make all the commands I will provide you are running. Open your terminal and type the follow commands:

  • brew install node
  • npm install -g appium
  • npm install wd

 

Once you had written those command, you have to type the command to start Appium server. You should type it each time you want to start your server. It is necessary to run the server in his window each time you’re running test suites. Open the terminal and type the follow command:

  • Appium &




Then wait until the system notifies you the server is listening (Image 1.1). It means your server is running and ready to receive to your command

Image 1.1

 

In case you want to emulate an Android device, you should run your Android AVD in another window and keep it running (Image 1.2), By type the command: “Android avd” in your command line it will trigger the program. There you have to select the devices you want to emulate (Image 1.3) and click on “Start” button, wait until the equipment is ready to continue with the process.

Image 1.2

Image 1.3

 

Otherwise, if you want to try it on a real device, just connect the device to your USB port. Before doing another step, run the command: “adb devices” and it should show you the device you want to use for the testing suite (The real or emulated devices) in the displayed list.
With both of them operating simultaneously, it’s time to run your robot test cases, as usually, you start a Robot Suite. Going to the directory where your test cases are storage, and writing the command “robot” before the folder-file name (Image 1.3). Once you are running your test cases, the appium server window will show some new commands while your robot framework is running (Image 1.5).




Image 1.4

 

Image 1.5