appium java脚本实例_Appium+java实现自动化测试实例

你好,我按照步骤操作的,但是报错了

控制台:org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Command failed: C:\Windows\system32\cmd.exe /s /c "D:\android\android-sdk-windows\platform-tools\adb.exe -s 30836ece shell "ps 'uiautomator'""

ps: uiautomator

) (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 13.64 seconds

Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43'

System info: host: 'DESKTOP-E52I8HN', ip: '192.168.0.212', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_144'

Driver info: io.appium.java_client.android.AndroidDriver

appium:> error: Failed to start an Appium session, err was: Error: Command failed: C:\Windows\system32\cmd.exe /s /c "D:\android\android-sdk-windows\platform-tools\adb.exe -s 30836ece shell "ps 'uiautomator'""

> ps: uiautomator

>

> info: [debug] Error: Command failed: C:\Windows\system32\cmd.exe /s /c "D:\android\android-sdk-windows\platform-tools\adb.exe -s 30836ece shell "ps 'uiautomator'""

> ps: uiautomator

>

>     at ChildProcess.exithandler (child_process.js:751:12)

>     at ChildProcess.emit (events.js:110:17)

>     at maybeClose (child_process.js:1016:16)

>     at Process.ChildProcess._handle.onexit (child_process.js:1088:5)

> info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: C:\\Windows\\system32\\cmd.exe /s /c \"D:\\android\\android-sdk-windows\\platform-tools\\adb.exe -s 30836ece shell \"ps 'uiautomator'\"\"\nps: uiautomator\r\n)","killed":false,"code":1,"signal":null,"cmd":"C:\\Windows\\system32\\cmd.exe /s /c \"D:\\android\\android-sdk-windows\\platform-tools\\adb.exe -s 30836ece shell \"ps 'uiautomator'\"\"","origValue":"Command failed: C:\\Windows\\system32\\cmd.exe /s /c \"D:\\android\\android-sdk-windows\\platform-tools\\adb.exe -s 30836ece shell \"ps 'uiautomator'\"\"\nps: uiautomator\r\n"},"sessionId":null}

> info:

请问是什么原因

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值