[英]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.