Hi, I’m using this sample calculator code on Eclipse, using selenium with TestNG, and Appium Server.
[RemoteTestNG] detected TestNG version 6.14.2
FAILED CONFIGURATION: @BeforeClass setUp
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: ENOENT: no such file or directory, scandir ‘C:\Users\Caramel QA\AppData\Local\Android\Sdk;\build-tools’ (WARNING: The server did not provide any stacktrace information)
P.S. I have set the environment variable ANDROID_HOME as "C:\Users\QA\AppData\Local\Android\Sdk"
And Compile Time Errors changed to
[RemoteTestNG] detected TestNG version 6.14.2
FAILED CONFIGURATION: @BeforeClass setUp
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: ‘3.9.1’, revision: ‘63f7b50’, time: ‘2018-02-07T22:42:28.403Z’
System info: host: ‘ZEESHANK’, ip: ‘192.168.80.48’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.8.0_151’
Driver info: driver.version: RemoteWebDriver
I think there is something wrong with your ANDROID_HOME path. The error says it is looking in ‘C:\Users\Caramel QA\AppData\Local\Android\Sdk;\build-tools’. First off, there shouldn’t be a semicolon in there. Second, you say you have ANDROID_HOME set to ‘C:\Users\QA\AppData\Local\Android\Sdk’, which is not the same as the path it’s looking for.
org.openqa.selenium.remote.UnreachableBrowserException: --> Normally happens if appium server is not started properly or if you give wrong address/port value while instantiating driver.