51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 5708|回复: 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
回复 支持 反对

使用道具 举报

  • TA的每日心情
    开心
    2017-9-22 13:43
  • 签到天数: 7 天

    连续签到: 1 天

    [LV.3]测试连长

    3#
    发表于 2017-4-5 16:55:57 | 只看该作者
    友情提醒:
    烦请用户提供如下信息:出错日志(Agent、客户端、服务器),重现步骤,相应的被测应用(apk)等。以方便技术支持定位问题!
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
     楼主| 发表于 2017-4-5 16:56:11 | 只看该作者
    这个是用例的截图

    本帖子中包含更多资源

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

    x
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2017-9-22 13:43
  • 签到天数: 7 天

    连续签到: 1 天

    [LV.3]测试连长

    5#
    发表于 2017-4-5 16:59:19 | 只看该作者
    友情提醒:
    烦请提供如下信息:出错日志(Agent、客户端),重现步骤,相应的被测应用(apk)等。以方便技术支持定位问题!
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    6#
     楼主| 发表于 2017-4-5 17:15:49 | 只看该作者
    错误日志见doc文档,不知道为什么.log文件上传不了

    本帖子中包含更多资源

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

    x
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    7#
     楼主| 发表于 2017-4-5 17:17:28 | 只看该作者
    被测应用为用Chrome测试百度首页
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    8#
     楼主| 发表于 2017-4-5 17:20:41 | 只看该作者
    测试步骤只有3步,其他都是按照TW入门手册操作的

    本帖子中包含更多资源

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

    x
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    9#
    发表于 2017-4-17 10:55:07 | 只看该作者
    连接有问题。检查数据库连接,agent 连接。之后再录制调试看有无问题。另外,chrome浏览器有录制插件要安装。参考群文件。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    10#
     楼主| 发表于 2017-4-18 15:33:54 | 只看该作者
    谢谢你的回复!
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    11#
     楼主| 发表于 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)
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    12#
     楼主| 发表于 2017-4-18 17:47:54 | 只看该作者
    这个报错是什么原因呢?
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2017-9-22 13:43
  • 签到天数: 7 天

    连续签到: 1 天

    [LV.3]测试连长

    13#
    发表于 2017-4-24 10:05:55 | 只看该作者
    swllxj 发表于 2017-4-18 17:47
    这个报错是什么原因呢?

    如果是新问题,请重新开贴~
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-4-28 17:51 , Processed in 0.073594 second(s), 24 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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