|
问题求助
问题描述及重现步骤: |
win10系统下,使用安卓手机后报错,但我在win7环境下却可正常启动 |
问题类型: |
Android测试 |
TW版本: |
|
被测应用的名称和版本: |
|
本帖最后由 TestWriter 于 2017-9-7 14:18 编辑
以下是报错日志,麻烦看下怎么回事
2017-08-29 11:21:41,382 [GUI Thread] ERROR TestWriter.Common.Log4net.Log4netLoggingService - OpenQA.Selenium.Appium.Service.Exceptions.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: C:\ProgramData\TestWriterEnviroment\Appium\Appium1_6_4\node.exe Arguments: "C:\ProgramData\TestWriterEnviroment\Appium\Appium1_6_4\node_modules\appium\build\lib\main.js" --port 4723 --address 127.0.0.1 --log C:\ProgramData\TestWriterData\Logs\androidEngineLog4723.txt.
Time 120000 ms for the service starting has been expired!
在 OpenQA.Selenium.Appium.Service.AppiumLocalService.Start()
在 TestWriter.Android.AppiumEmulator.Utils.AppiumServerManagerWithNativeSupport.?????????????????????????????????????????(AppiumLocalService )
在 TestWriter.Android.AppiumEmulator.Utils.AppiumServerManagerWithNativeSupport.?????????????????????????????????????????(String , DesiredCapabilityInfo )
2017-08-29 11:23:41,765 [GUI Thread] ERROR TestWriter.Common.Log4net.Log4netLoggingService - OpenQA.Selenium.Appium.Service.Exceptions.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: C:\ProgramData\TestWriterEnviroment\Appium\Appium1_6_4\node.exe Arguments: "C:\ProgramData\TestWriterEnviroment\Appium\Appium1_6_4\node_modules\appium\build\lib\main.js" --port 4731 --address 127.0.0.1 --log C:\ProgramData\TestWriterData\Logs\androidEngineLog4731.txt.
Time 120000 ms for the service starting has been expired!
在 OpenQA.Selenium.Appium.Service.AppiumLocalService.Start()
在 TestWriter.Android.AppiumEmulator.Utils.AppiumServerManagerWithNativeSupport.?????????????????????????????????????????(AppiumLocalService )
在 TestWriter.Android.AppiumEmulator.Utils.AppiumServerManagerWithNativeSupport.?????????????????????????????????????????(String , DesiredCapabilityInfo )
2017-08-29 11:23:42,920 [GUI Thread] ERROR TestWriter.Common.Log4net.Log4netLoggingService - Restart AppiumDriver counts:1
2017-08-29 11:23:42,920 [GUI Thread] ERROR TestWriter.Common.Log4net.Log4netLoggingService - OpenQA.Selenium.WebDriverException: Unexpected error. System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:4731
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- 内部异常堆栈跟踪的结尾 ---
在 OpenQA.Selenium.Appium.Service.AppiumCommandExecutor.Execute(Command commandToExecute)
在 OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
在 OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
在 OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
在 OpenQA.Selenium.Appium.AppiumDriver`1.Execute(String driverCommandToExecute, Dictionary`2 parameters)
在 OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
在 OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
在 OpenQA.Selenium.Appium.AppiumDriver`1..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
在 OpenQA.Selenium.Appium.AppiumDriver`1..ctor(Uri remoteAddress, ICapabilities desiredCapabilities, TimeSpan commandTimeout)
在 OpenQA.Selenium.Appium.Android.AndroidDriver`1..ctor(Uri remoteAddress, DesiredCapabilities desiredCapabilities, TimeSpan commandTimeout)
在 TestWriter.Android.AppiumEmulator.AndroidEmulator.?????????????????????????????????????????(DesiredCapabilityInfo )
在 TestWriter.Android.AppiumEmulator.AndroidEmulator.Start(ApplicationCapability capability)
|
|