swllxj 发表于 2017-4-5 16:52:30

TestWriter测试用例执行不通过

本帖最后由 TestWriter 于 2017-4-6 11:16 编辑

1、测试用例为,打开百度首页,在文本框中输入“宇天科技”,点击“百度一下”
2、执行测试用例后,查看执行结果,测试用例均不通过
执行信息如下:
A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:64301/session. The status of the exception was ReceiveFailure, and the message was: The underlying connection was closed: An unexpected error occurred on a receive.
D:\QQ图片20170405165258.png

swllxj 发表于 2017-4-5 16:54:15

这个是截图的图片

TestWriter 发表于 2017-4-5 16:55:57

友情提醒:
烦请用户提供如下信息:出错日志(Agent、客户端、服务器),重现步骤,相应的被测应用(apk)等。以方便技术支持定位问题!

swllxj 发表于 2017-4-5 16:56:11

这个是用例的截图

TestWriter 发表于 2017-4-5 16:59:19

友情提醒:
烦请提供如下信息:出错日志(Agent、客户端),重现步骤,相应的被测应用(apk)等。以方便技术支持定位问题!

swllxj 发表于 2017-4-5 17:15:49

错误日志见doc文档,不知道为什么.log文件上传不了

swllxj 发表于 2017-4-5 17:17:28

被测应用为用Chrome测试百度首页

swllxj 发表于 2017-4-5 17:20:41

测试步骤只有3步,其他都是按照TW入门手册操作的

gengdong 发表于 2017-4-17 10:55:07

连接有问题。检查数据库连接,agent 连接。之后再录制调试看有无问题。另外,chrome浏览器有录制插件要安装。参考群文件。

swllxj 发表于 2017-4-18 15:33:54

谢谢你的回复!

swllxj 发表于 2017-4-18 17:47:22

2017-04-18 17:45:44,642 ERROR TestWriter.Common.Log4net.Log4netLoggingService - 计算并记录执行结果到数据库出错:A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:18500/session. The status of the exception was ReceiveFailure, and the message was: The underlying connection was closed: An unexpected error occurred on a receive.
OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:18500/session. The status of the exception was ReceiveFailure, and the message was: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。. ---> System.Net.Sockets.SocketException: 远程主机强迫关闭了一个现有的连接。
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
   --- End of inner exception stack trace ---
   at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
   at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities)
   at TestWriter.Web.SeleniumEmulator.SeleniumBrowser.?????????????????????????????????????????(Uri , ICapabilities )
   at TestWriter.Web.SeleniumEmulator.SeleniumBrowser.?????????????????????????????????????????(BrowserCoreTypes )
   at TestWriter.Web.SeleniumEmulator.SeleniumBrowser.Initialize()
   at TestWriter.Web.SeleniumEmulator.SeleniumEmulator.Start(DeviceInfo _deviceInfo, ApplicationCapability _capablity, String& info)
   at Bwf.EmulatorServices.EmulatorCreator.GetCommonEmulator(ApplicationCapability capability, DeviceInfo deviceInfo, String& info)
   at TestWriter.Agent.Core.CommonExecuteEnginee.CheckEmulator(ExecuteTest test, ExecuteTestStep step, ExecuteTestItem caseItem)
   at TestWriter.Agent.Core.CommonExecuteEnginee.ExecuteTestCase(ExecuteTestItem testcase, ExecuteTest test)
   at TestWriter.Agent.Core.CommonExecuteEnginee.ExecuteTest(ExecuteTest& test)

swllxj 发表于 2017-4-18 17:47:54

这个报错是什么原因呢?

TestWriter 发表于 2017-4-24 10:05:55

swllxj 发表于 2017-4-18 17:47
这个报错是什么原因呢?

如果是新问题,请重新开贴~
页: [1]
查看完整版本: TestWriter测试用例执行不通过