当我在eclipse的appium帮助下运行程序时,我得到的会话没有创建错误

时间:2015-09-21 12:29:38

标签: java android eclipse

我已经安装了appium,android visual studio,而且我已经在env varibales中设置了路径,现在当我在eclipse上运行我的第一个示例程序时它会给我以下错误:

[TestNG] Running:
  C:\Users\Akash Srivastava\AppData\Local\Temp\testng-eclipse-1729078009\testng-customsuite.xml

FAILED CONFIGURATION: @BeforeClass setUp
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. 
  (Original error: Could not find adb. Please set the ANDROID_HOME 
   environment variable with the Android SDK root directory path.) 
  (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 433 milliseconds

任何人都可以帮我解决可能出错的问题。

1 个答案:

答案 0 :(得分:0)

上述问题得到了解决,因为我用于计算器应用程序的软件包名称可能因不同的设备而有所不同,目前我正在测试索尼上的计算器应用程序,这就是为什么它不起作用但是当我尝试使用谷歌手机时工作了,当我研究这个问题时,我发现了上面的答案。

相关问题