简体   繁体   English

无法创建新的 session。 (原始错误:命令失败:...\adb.exe -s 192.168.150.105:5555 shell “ps 'uiautomator'”” ps: uiautomator)

[英]A new session could not be created. (Original error: Command failed: …\adb.exe -s 192.168.150.105:5555 shell “ps 'uiautomator'”" ps: uiautomator )

A new session could not be created.无法创建新的 session。 (Original error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "C:\Users\Mohsin\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 192.168.150.105:5555 shell "ps 'uiautomator'"" ps: uiautomator ) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.4.0', revision: 'unknown', time: 'unknown' System info: host: 'MOHSIN', ip: '192.168.150.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.2' Driver info: driver.version: AndroidDriver (原错误:命令失败:C:\WINDOWS\system32\cmd.exe /s /c "C:\Users\Mohsin\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 192.168.150.105: 5555 shell "ps 'uiautomator'"" ps: uiautomator ) (警告:服务器未提供任何堆栈跟踪信息)命令持续时间或超时:0 毫秒构建信息:版本:'3.4.0',修订:'未知',时间:'未知'系统信息:主机:'MOHSIN',ip:'192.168.150.2',os.name:'Windows 10',os.arch:'amd64',os.version:'10.0',Z93F725A07423FE1C8863F '15.0.2' 驱动程序信息:driver.version:AndroidDriver

Logs日志

C:\Users\Mohsin.jdks\openjdk-15.0.2\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:58622,suspend=y,server=n -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:C:\Users\Mohsin\AppData\Local\JetBrains\IdeaIC2020.3\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.2\lib\idea_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.2\plugins\testng\lib\testng-rt.jar;D:\Glowfish\CarSwitch_Android_Automation\target\test-classes;D:\Glowfish\CarSwitch_Android_Automation\target\classes;D:\Glowfish\CarSwitch_Android_Automation\lib\commons-lang3-3.6.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\org.json.Z68995FCBF432492D15484D0 C:\Users\Mohsin.jdks\openjdk-15.0.2\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:58622,suspend=y,server=n -ea -Didea.test .cyclic.buffer.size=1048576 -javaagent:C:\Users\Mohsin\AppData\Local\JetBrains\IdeaIC2020.3\captureAgent\debugger-agent.jar -DBfile:\程序编码. Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.2\lib\idea_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.2\plugins\testng\lib\testng-rt.jar;D:\Glowfish \CarSwitch_Android_Automation\target\test-classes;D:\Glowfish\CarSwitch_Android_Automation\target\classes;D:\Glowfish\CarSwitch_Android_Automation\lib\commons-lang3-3.6.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\org.Z6548.DEEC76ECDF2AFC Z68995FCBF432492D15484D0 4A9D2AC40Z;D:\Glowfish\CarSwitch_Android_Automation\lib\google-api-client-1.20.0.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\selenium-server-standalone-3.4.0.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\jwt-generator.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\testng-6.9.4.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\Algolia\algoliasearch-2.23.0.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\Algolia\algoliasearch-common-2.23.0.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\java-client-5.0.0-BETA8.jar" com.intellij.rt.testng.RemoteTestNGStarter -usedefaultlisteners false -socket58621 @w@C:\Users\Mohsin\AppData\Local\Temp\idea_working_dirs_testng.tmp -temp C:\Users\Mohsin\AppData\Local\Temp\id 4A9D2AC40Z;D:\Glowfish\CarSwitch_Android_Automation\lib\google-api-client-1.20.0.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\selenium-server-standalone-3.4.0.jar;D:\Glowfish\CarSwitch_Android_Automation \lib\jwt-generator.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\testng-6.9.4.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\Algolia\algoliasearch-2.23.0.jar;D:\Glowfish\ CarSwitch_Android_Automation\lib\Algolia\algoliasearch-common-2.23.0.jar;D:\Glowfish\CarSwitch_Android_Automation\lib\java-client-5.0.0-BETA8.jar" com.intellij.rt.testng.RemoteTestNGStarter -usedefaultlisteners false - socket58621 @w@C:\Users\Mohsin\AppData\Local\Temp\idea_working_dirs_testng.tmp -temp C:\Users\Mohsin\AppData\Local\Temp\id ea_testng.tmp Connected to the target VM, address: '127.0.0.1:58622', transport: 'socket' OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.testng.xml.XMLParser (file:/D:/Glowfish/CarSwitch_Android_Automation/lib/testng-6.9.4.jar) to constructor com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl() WARNING: Please consider reporting this to the maintainers of org.testng.xml.XMLParser WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [TestNG] Running: C:\Users\Mohsin\A ea_testng.tmp 已连接到目标 VM,地址:'127.0.0.1:58622',传输:'socket' OpenJDK 64 位服务器 VM 警告:仅引导加载程序类支持共享,因为已附加引导类路径 警告:非法reflective access operation has occurred WARNING: Illegal reflective access by org.testng.xml.XMLParser (file:/D:/Glowfish/CarSwitch_Android_Automation/lib/testng-6.9.4.jar) to constructor com.sun.org.apache.xerces .internal.jaxp.SAXParserFactoryImpl() 警告:请考虑将此报告给 org.testng.xml.XMLParser 警告的维护者。将在未来版本中被拒绝 [TestNG] 运行:C:\Users\Mohsin\A ppData\Local\JetBrains\IdeaIC2020.3\temp-testng-customsuite.xml ppData\Local\JetBrains\IdeaIC2020.3\temp-testng-customsuite.xml

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J:无法加载 class “org.slf4j.impl.StaticLoggerBinder”。 SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. SLF4J:默认为无操作 (NOP) 记录器实现 SLF4J:有关详细信息,请参阅http://www.slf4j.org/codes.html#StaticLoggerBinder

java.lang.NoSuchMethodError: 'com.google.common.util.concurrent.SimpleTimeLimiter com.google.common.util.concurrent.SimpleTimeLimiter.create(java.util.concurrent.ExecutorService)' java.lang.NoSuchMethodError: 'com.google.common.util.concurrent.SimpleTimeLimiter com.google.common.util.concurrent.SimpleTimeLimiter.create(java.util.concurrent.ExecutorService)'

at com.algolia.search.TimeoutableHostNameResolver.<init>(TimeoutableHostNameResolver.java:20)
at com.algolia.search.ApacheHttpClient.<init>(ApacheHttpClient.java:68)
at com.algolia.search.ApacheAPIClientBuilder.build(ApacheAPIClientBuilder.java:136)
at com.algolia.search.APIClientBuilder.build(APIClientBuilder.java:126)
at Setup.CarSwitchBase.getFirstPageCarsFromAlgolia(CarSwitchBase.java:81)
at Tests.TestsRun.SomkeTestsRun(TestsRun.java:24)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:659)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:845)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1153)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:771)
at org.testng.TestRunner.run(TestRunner.java:621)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1199)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1124)
at org.testng.TestNG.run(TestNG.java:1032)
at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66)
at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:109)

=============================================== Default Suite Total tests run: 1, Failures: 1, Skips: 0 ================================================= 默认套件总计测试运行:1,失败:1,跳过:0

Disconnected from the target VM, address: '127.0.0.1:58622', transport: 'socket'与目标 VM 断开连接,地址:'127.0.0.1:58622',传输:'socket'

Process finished with exit code 0进程以退出代码 0 结束

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法创建新的会话。 (原始错误:“ java -version”失败。错误:生成ENOENT) - A new session could not be created. (Original error: 'java -version' failed. Error: spawn ENOENT) org.openqa.selenium.SessionNotCreatedException:无法创建新的会话。 (原始错误:&#39;java -version&#39;失败。错误:产生ENOENT) - org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: 'java -version' failed. Error: spawn ENOENT) Appium错误:无法创建新会话。 (原始错误:没有从Chromedriver获得会话重定向) - Appium Error : A new session could not be created. (Original error: Did not get session redirect from Chromedriver) org.openqa.selenium.SessionNotCreatedException:无法创建新会话。 (原始错误:请求了一个新会话,但正在进行中) - org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Requested a new session but one was in progress) 无法创建新会话。 appium代码中的错误 - A new session could not be created. error in code for appium 原始错误:io.appium.uiautomator2.common.exceptions.UiAutomator2Exception - Original error: io.appium.uiautomator2.common.exceptions.UiAutomator2Exception Appium找不到“ adb.exe” - Appium could not find 'adb.exe' 如何使用adb.exe shell命令执行android应用程序时发送参数 - howto send a parameter when executing a android app with adb.exe shell command UIAutomator绑定到使用ADB的坐标 - Uiautomator bounds to coordinates using adb 进行测试时出现UIAutomator错误 - UIAutomator error when runnging tests
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM