Configure Android Devices WebDriver , Mobile Testing

1. download android sdk  & extract ,,,,skd folder and sdkmanager.exe into selenium project folder

2. install ADT plugin  in eclipse---help menu--install software---enter "ADT" and  url is below

https://dl-ssl.google.com/android/eclipse/

select developer tools
-------next---finish

3. restart eclipse after install and give the path of sdk folder and it will do some more installations

4. download android-server.apk  file  from below link and copy to sdk\platform-tools folder

http://code.google.com/p/selenium/downloads/list

5. Connect android device to the system

give all the below commands in sdk\platform-tools folder


6. adb devices
         it will display the serrial id of the device

7. ---------install android-server.apk

adb -s -e install -r android-server.apk

8. -------start webdriver in the device
adb -s 0123456789ABCDEF shell am start -a android.intent.action.MAIN -n org.openqa.selenium.android.app/.MainActivity

9. ------routie traffice to device
adb -s 0123456789ABCDEF forward tcp:8080 tcp:8080


10. write webdriver script in eclipse and run

Comments