Running Selenium RC as a Windows service

I am trying to start Selenium to start as a windows service. Everything seems to be in order, but does not seem to be working properly.

Using the Windows toolkit, I did:

"C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" SeleniumRC
"C:\Program Files\Windows Resource Kits\Tools\srvany.exe" -a [SeleniumUser] -p [SeleniumUserPass]

The following is saved as a .reg file (and then double-click it)

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SeleniumRC\Parameters]
"Application"="java.exe"
"AppDirectory"="C:\\Program Files\\selenium-server-1.0.3"
"AppParameters"="-Xrs -jar selenium-server.jar"

My SeleniumUser was granted login as a service permission.

Starting a service in the MMC service

But when I came to start my test hub (a simple user interface for invoking and running tests), I click run on the test, then it just sits with the plage swirly download and says that it is waiting for a response from the server.

Its almost as if it works, but it doesn’t connect.

If I run a java call through the command line, it tells me that another service is running on this port.

Windows , ( )

- , ?

+2
3

nssm ( Non-Sucking). java , -jar -role hub. .

nssm - http://nssm.cc/

+6
+1

Source: https://habr.com/ru/post/1774499/


All Articles