Running Selenium RC as a Windows Service

偶尔善良 提交于 2019-11-30 16:43:35

I was able to install it using nssm (the Non-Sucking Service Manager). You just need to provide java as the application and then provide the option -jar -role hub. Then start up the service from the services menu.

Link to nssm - http://nssm.cc/

I ran into a similar problem when trying to run Selenium RC as a service. The basic problem I had was that my registry entries were incorrect. Use the "sc" command to create the service with srvany.exe and then update the registry. That should do it. For a more detailed explanation, check out this post: http://www.claytonstechnobabble.com/2011/08/run-any-application-as-windows-service.html

-Clayton

http://brantleytec.blogspot.com/2012/11/selenium-hub-and-node-as-windows-service.html

That link describes the process setting up and using Selenium hub and/or node as a service using native Microsoft programs. I was able to get this running locally on my work PC as well as on a remote server which runs my tests after every build.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!