1. Settings in Android Emulator:
Go to Settings > Developer Options > Select all three Check boxes
USB Debugging
Stay Awake
Allow Mock Locations
2.Open command prompt
3. Go to the platform-tools folder in android SDK installation path C:\Program Files\Android\android-sdk\platform-tools
4. Forward port number using below command
adb forward tcp:8080 tcp:8080
5. 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)
6. Now run the project. Run Project as > JUnit Test >Check on Use Configuration Specific settings> Select Android JUnit Test Launcher > OK
3. Go to the platform-tools folder in android SDK installation path C:\Program Files\Android\android-sdk\platform-tools
4. Forward port number using below command
adb forward tcp:8080 tcp:8080
5. 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)
6. Now run the project. Run Project as > JUnit Test >Check on Use Configuration Specific settings> Select Android JUnit Test Launcher > OK
-
No comments:
Post a Comment