Back to Appium Tutorial Index
Having set up appium, lets run our first tests. But before that start the appium and android device / emulator as following -
Having set up appium, lets run our first tests. But before that start the appium and android device / emulator as following -
navigate to appium installation, which is following on my Ubuntu -
/home/tarun/node-v0.12.2-linux-x64/bin
and start appium from command line or using Appium Desktop app
./appium
Open another command prompt and execute -
adb devices
and you should see list of devices attached as -
List of devices attached
emulator-5554 device
If you see any error message then re-verify all the steps mentioned earlier to make sure none of the step is missed
Sample JUnit project to run tests on android emulator
- Clone the following appium project -
git@github.com:tarun3kumar/appium-tests.git
- Import project in IDEA (or your favorite IDE) and Open AndroidEmulatorWebTest class -
- Right click on method testMobileWebOnEmulator and click Run. This would execute test on android emulator -