abcnull / appuitest4j

java+appium+testng for AppUITest 整体已经完成可以进行 android 正常测试了,以后有扩展会不断丰富它

Home Page:https://blog.csdn.net/abcnull/article/details/107986791

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to change the adb device id to my local device id

kane1997 opened this issue · comments

beforeTest(com.abcnull.testcase.CSDN_HomeTest) Time elapsed: 1.75 sec <<< FAILURE!
org.openqa.selenium.WebDriverException:
It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'KANES-EXPERTBOO', ip: '192.168.88.35', os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '18.0.2.1'
Driver info: driver.version: BaseDriver
Caused by: java.lang.reflect.InvocationTargetException
Caused by: org.openqa.selenium.WebDriverException:
An unknown server-side error occurred while processing the command. Original error: Device 3a789767 was not in the list of connected devices
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'KANES-EXPERTBOO', ip: '192.168.88.35', os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '18.0.2.1'
Driver info: driver.version: BaseDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Device 3a789767 was not in the list of connected devices
at getResponseForW3CError (C:\Users\zkw64\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Users\zkw64\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:380:37)

beforeClass(com.abcnull.testcase.CSDN_HomeTest) Time elapsed: 1.873 sec <<< FAILURE!
java.lang.NullPointerException