简体   繁体   English

我在 FitNesse 中遇到错误,而与浏览器的通信很窄 _ 无法使用 SUT 发送/接收数据

[英]I am getting error in FitNesse while slim communication with browser _ Could not send/receive data with SUT

The error I got is fitnesse.testsystems.slim.SlimCommunicationException: Could not send/receive data with SUT我得到的错误是fitnesse.testsystems.slim.SlimCommunicationException:无法使用SUT发送/接收数据

FitNesse Code:健身代码:

!define TEST_SYSTEM {slim} !define TEST_SYSTEM {slim}

!path C:\\FitNesseUsingSelenium\\bin\\Debug*.dll !path C:\\FitNesseUsingSelenium\\bin\\Debug*.dll

!define COMMAND_PATTERN {%m -r fitSharp.Slim.Service.Runner %p} !define COMMAND_PATTERN {%m -r fitSharp.Slim.Service.Runner %p}

!define TEST_RUNNER {C:\\FitSharp.2.5.0\\lib\\net40\\Runner.exe} !define TEST_RUNNER {C:\\FitSharp.2.5.0\\lib\\net40\\Runner.exe}

!|import| !|进口| |FitNesseUsingSelenium| |使用硒的健身|

!|FitSeleniumFramework| !|FitSelenium 框架|

|TextInTitle|isTitleCorrect?| |TextInTitle|是否正确?|

|Google|yes| |谷歌|是的|

|google|no| |谷歌|否|

|bing|no| |bing|没有|

Actually is it opening and closing the browser perfectly but after the instead of displaying the results in FitNesse page, it always throwing the error "Could not complete testing: fitnesse.testsystems.slim.SlimCommunicationException: Could not send/receive data with SUT" enter image description here实际上它完美地打开和关闭浏览器但是在FitNesse页面中显示结果而不是之后,它总是抛出错误“无法完成测试:fitnesse.testsystems.slim.SlimCommunicationException:无法使用SUT发送/接收数据”输入图片说明在这里

But the same is working perfectly in Java using selenium但同样在 Java 中使用 selenium 也能完美运行

Could you please suggest some idea to resolve this issue???你能提出一些解决这个问题的想法吗???

Try adding this line:尝试添加这一行:

!define slim.port {8085}

There seems to a problem in the latest FitNesse version when using Selenium and fitSharp with the default Slim port.在默认的 Slim 端口中使用 Selenium 和 fitSharp 时,最新的 FitNesse 版本中似乎存在问题。 This is a workaround for the problem.这是该问题的解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Fitnesse Slim与C#获得苗条协议版本错误 - Fitnesse Slim with C# getting slim protocol version error 无法完成测试:fitnesse.slim.SlimError: Error SLiM server dead before Header Message could be read - Could not complete testing: fitnesse.slim.SlimError: Error SLiM server died before Header Message could be read 无法调用 CreatePrograms[0] 的构造函数 (FitNesse SLiM) - Could not invoke constructor for CreatePrograms[0] (FitNesse SLiM) Fitnesse Slim在更改端口时不执行 - Fitnesse Slim does not executing while changing the port FitNesse:比较 Slim Test 系统中的数据 - FitNesse: Comparing data in Slim Test system 在 Fitnesse 中,当我尝试运行测试时出现错误,但我的同事能够毫无问题地在相同的脚本上运行测试 - In Fitnesse I am getting an error when I try to run tests but my coworkers are able to run tests on the same scripts with no problem 如何使用FitNesse / SLIM验证表中的数据? - How to verify data in table using FitNesse/SLIM? 在执行Slim类型的Suite文件后,Fitnesse不会停止 - After executing suite file of Slim type Fitnesse is not getting stopped Fitnesse Slim查询测试在尝试访问linq datacontext时失败 - Fitnesse Slim query test fails while trying to access linq datacontext STA在Slim(FitNesse)中未被认可 - STA not recognized in Slim (FitNesse)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM