Thursday 12 January 2012

Requirements to write test script for android web applications in Android Emulator using CSharp with Visual Studio IDE

1.Download SDK from http://developer.android.com/sdk/index.html and follow the instruction to install SDK
2.Download android server from http://code.google.com/p/selenium/downloads/list
Copy this into C:\Program Files\Android\android-sdk\platform-tools this path.
3. Install android server using Command Prompt. Go to the above path and install by usiing the command
Go to the C:\Program Files\Android\android-sdk\platform-tools and execute below command
adb install android-server-2.13.0.apk 
After installation we will get the webdriver icon in application list


4. Click on webdriver icon then we'll get message like webdriver ready or Jetty started
5. Settings in Android Emulator:
Go to Settings > Developer Options > Select all three Check boxes
      USB Debugging
      Stay Awake
      Allow Mock Locations


6.Open command prompt
7. Go to the platform-tools folder in android SDK installation path  C:\Program Files\Android\android-sdk\platform-tools
8. Forward port number using below command
adb forward tcp:8080 tcp:8080
9. Pass the url http://localhost:8080/wd/hub/ to check android server is running in your local machine or not. If it is running properly we will ge the below screen. (Before going to this start android webdriver in emulator)



No comments:

Post a Comment