运行 FitNesse Web 测试示例时出错

发布于 2024-11-02 16:07:10 字数 2268 浏览 3 评论 0原文

我刚刚下载了 FitNesse WebTest,并在启动 FitNesse 和 SeleniumRC 后遇到了这个问题。

    start browser
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:4444
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at Selenium.HttpCommandProcessor.DoCommand(String command, String[] args)
   at Selenium.HttpCommandProcessor.GetString(String commandName, String[] args)
   at Selenium.HttpCommandProcessor.Start()
   at Selenium.DefaultSelenium.Start()
   at com.neuri.webfixture.PlainSeleniumTest.startBrowser(String browser, String rcServer, Int32 rcPort, String seleniumURL)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at fitlibrary.Method.Invoke(Object[] theParameters)
   at fitlibrary.Method.Invoke(Fixture theFixture, IEnumerable theCells)
   at fitlibrary.FlowFixtureBase.ExecuteMethod(Method theMethod, CellRange theCells)
   at fitlibrary.FlowFixtureBase.ProcessFlowRows(Parse theRows)

任何帮助我克服这个问题的帮助将不胜感激,因为它让我发疯。

I've just downloaded FitNesse WebTest and ran into this issue after starting FitNesse and SeleniumRC.

    start browser
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:4444
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at Selenium.HttpCommandProcessor.DoCommand(String command, String[] args)
   at Selenium.HttpCommandProcessor.GetString(String commandName, String[] args)
   at Selenium.HttpCommandProcessor.Start()
   at Selenium.DefaultSelenium.Start()
   at com.neuri.webfixture.PlainSeleniumTest.startBrowser(String browser, String rcServer, Int32 rcPort, String seleniumURL)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at fitlibrary.Method.Invoke(Object[] theParameters)
   at fitlibrary.Method.Invoke(Fixture theFixture, IEnumerable theCells)
   at fitlibrary.FlowFixtureBase.ExecuteMethod(Method theMethod, CellRange theCells)
   at fitlibrary.FlowFixtureBase.ProcessFlowRows(Parse theRows)

Any help would be appreciated to get past this as it's driving me mad.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

听,心雨的声音 2024-11-09 16:07:10

听起来你还没有启动 selenium 服务器,

java -jar c:\selenium\selenium-server.jar

假设你已经在默认位置安装了 selenium 来启动它。

Sounds like you haven't started the selenium server, start it using

java -jar c:\selenium\selenium-server.jar

assuming you have installed selenium in the default location.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文