Running Selenium RC as a Windows Service

前端 未结 3 1674
醉话见心
醉话见心 2021-01-03 16:18

I\'m trying to get Selenium setup to run as a windows service. It seems to be okay but, then does not seem to run properly.

Using the windows toolkit I hav

相关标签:
3条回答
  • 2021-01-03 16:22

    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.

    0 讨论(0)
  • 2021-01-03 16:39

    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

    0 讨论(0)
  • 2021-01-03 16:47

    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/

    0 讨论(0)
提交回复
热议问题