无法对后台运行的服务器运行硒测试

发布于 2024-10-07 10:25:05 字数 277 浏览 0 评论 0原文

我在 nssm 服务的帮助下在后台运行我的 selenium 服务器。我在特定端口(11111)运行服务器。

我在 VS 2010 中编写了一些单元测试,当我尝试使用

selenium = new DefaultSelenium("localhost", 11111, "*iehta", "http://www.google.co.in");
selenium.Start()

它调用 selenium 服务时,出现错误“无法连接到远程服务器”。请帮忙。

I am running my selenium server in background with the help of nssm service. I am running the server at a particular port (11111).

I wrote some unit test in VS 2010 and when I am trying to invoke the selenium service with

selenium = new DefaultSelenium("localhost", 11111, "*iehta", "http://www.google.co.in");
selenium.Start()

it gives me error "Unable to connect to the remote server". Please help.

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

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

发布评论

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

评论(1

昔日梦未散 2024-10-14 10:25:05

你能远程登录到那个端口吗?这不太可能是 Selenium 问题,而是与您如何启动该服务器有关的问题。

Can you telnet to that port? This is unlikely to be a Selenium problem, but rather one related to how you're starting that server.

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