Tech Me More

To quench our thirst of sharing knowledge about our day to day experience & solution to techincal problems we face in our projects.

Advertise with us !
Send us an email at diehardtechy@gmail.com

Friday, December 4, 2015

How to solve Failed to connect to server. Appium inspector Error

If you are unable to launch Appium inbuilt inspector and getting the error like failed to connect to server. Please chech that it is running. Even when your appium server is up and running. 

Please do the following changes in your appium Server.

1. Stop your appium Server.

2. Click Android Icon in appium and select application path.

3. click the choose button to locate you .apk file.



4. Click the settings icon and check the pre-launch application check box.




5. Restart your server.
6. Click on the inspector icon and click refresh.

7. It should be displayed. 


Appium element inspector is quite basic , we recommend to use Android's default UIAutomator viewer.

How to get rid of irritating SocketExceptions in TestNG?

While running your TestNG classes you may encounter some Exception like

java.net.SocketException: Software caused connection abort: socket write error

to avoid the SocketException in Eclipse please do the following changes.


  • Go to Windows from Menu Bar in Eclipse.
  • Select Preferences.
  • It will open a new window.
  • Choose TestNg and uncheck Use Project TestNG Jar.
  • Click apply and click OK.