51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 5774|回复: 12
打印 上一主题 下一主题

[已解决-使用] TestWriter测试用例执行不通过

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2017-4-5 16:52:30 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
问题求助
问题描述及重现步骤: TestWriter测试用例执行不通过:
测试用例为,打开百度首页,在文本框中输入“宇天科技”,点击“百度一下”
2、执行测试用例后,查看执行结果,测试用例均不通过

测试步骤只有3步,其他都是按照TW入门手册操作的
问题类型: Web测试 
TW版本:
被测应用的名称和版本: 用Chrome测试百度首页
本帖最后由 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
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2017-4-5 16:54:15 | 显示全部楼层
这个是截图的图片

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2017-4-5 16:56:11 | 显示全部楼层
这个是用例的截图

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2017-4-5 17:15:49 | 显示全部楼层
错误日志见doc文档,不知道为什么.log文件上传不了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2017-4-5 17:17:28 | 显示全部楼层
被测应用为用Chrome测试百度首页
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2017-4-5 17:20:41 | 显示全部楼层
测试步骤只有3步,其他都是按照TW入门手册操作的

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
回复 支持 反对

使用道具 举报

该用户从未签到

7#
 楼主| 发表于 2017-4-18 15:33:54 | 显示全部楼层
谢谢你的回复!
回复 支持 反对

使用道具 举报

该用户从未签到

8#
 楼主| 发表于 2017-4-18 17:47:22 | 显示全部楼层
2017-04-18 17:45:44,642 [7232] 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)
回复 支持 反对

使用道具 举报

该用户从未签到

9#
 楼主| 发表于 2017-4-18 17:47:54 | 显示全部楼层
这个报错是什么原因呢?
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-5-13 15:57 , Processed in 0.076941 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表