【发布时间】:2016-10-01 17:05:38
【问题描述】:
配置失败:@BeforeTest 设置 org.openqa.selenium.SessionNotCreatedException:无法创建新会话。 (原始错误:未设置应用程序;要么使用 --app 启动 appium,要么在所需功能中传入“应用程序”值,或者设置 androidPackage 以在设备上启动预先存在的应用程序)(警告:服务器未提供任何堆栈跟踪信息) 命令持续时间或超时:98 毫秒 构建信息:版本:'2.48.2',修订:'41bccdd',时间:'2015-10-09 19:55:52' 系统信息:主机:'GOD23342',ip:'10.244.46.14',os.name:'Windows 7',os.arch:'amd64',os.version:'6.1',java.version:'1.8.0_92 ' 驱动程序信息:org.openqa.selenium.remote.RemoteWebDriver 在 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 在 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 在 java.lang.reflect.Constructor.newInstance(Constructor.java:423) 在 org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) 在 org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) 在 org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647) 在 org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:247) 在 org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:129) 在 org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:156) 在 Android.firsttest.setUp(firsttest.java:39) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:498) 在 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) 在 org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510) 在 org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211) 在 org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138) 在 org.testng.TestRunner.beforeRun(TestRunner.java:647) 在 org.testng.TestRunner.run(TestRunner.java:615) 在 org.testng.SuiteRunner.runTest(SuiteRunner.java:357) 在 org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352) 在 org.testng.SuiteRunner.privateRun(SuiteRunner.java:310) 在 org.testng.SuiteRunner.run(SuiteRunner.java:259) 在 org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) 在 org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) 在 org.testng.TestNG.runSuitesSequentially(TestNG.java:1185) 在 org.testng.TestNG.runSuitesLocally(TestNG.java:1110) 在 org.testng.TestNG.run(TestNG.java:1018) 在 org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) 在 org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) 在 org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
【问题讨论】: