簡體   English   中英

當我在eclipse上借助appium運行程序時,出現會話未創建錯誤

[英]When I am running program with the help of appium on eclipse i am getting session not created error

我已經安裝了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

誰能幫我什么可能出了問題。

上面的問題已解決,因為我用於計算器應用程序的軟件包名稱對於不同的設備可能會有所不同,目前我正在Sony上測試計算器應用程序,這就是為什么它無法正常工作的原因,但是當我嘗試使用Google Mobile時,它就可以工作了,並且當我研究此問​​題時,我發現了上述答案。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM