appium

Run Android samples

First, we need to start our avd, so that appium can connect to it and run test afterwards.

emulator -avd nexus5 # nexus5 is the avd name, which we input when creating avd

Alt text

You can use adb devices to check the Android emulator or device is connected.

Alt text

Now we can run the sample test "xunit_android.rb" to see how appium works:

Please make sure the appium is running at background.

cd ~/Documents/appium-master/sample-code/examples/ruby
ruby xunit_android.rb

Alt text

Alt text