<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Installing Selenium-RC as a Windows service</title>
	<atom:link href="http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/</link>
	<description></description>
	<pubDate>Sat, 19 May 2012 07:22:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: CoreTech</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-87</link>
		<dc:creator>CoreTech</dc:creator>
		<pubDate>Tue, 22 Nov 2011 07:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-87</guid>
		<description>We just put up a step-by-step tutorial showing how to use our commercial app (AlwaysUp) to easily run Selenium RC server as a Windows Service:

http://www.coretechnologies.com/products/AlwaysUp/Apps/RunSeleniumServerAsAService.html</description>
		<content:encoded><![CDATA[<p>We just put up a step-by-step tutorial showing how to use our commercial app (AlwaysUp) to easily run Selenium RC server as a Windows Service:</p>
<p><a href="http://www.coretechnologies.com/products/AlwaysUp/Apps/RunSeleniumServerAsAService.html" rel="nofollow">http://www.coretechnologies.com/products/AlwaysUp/Apps/RunSeleniumServerAsAService.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Staton</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-86</link>
		<dc:creator>Steven Staton</dc:creator>
		<pubDate>Wed, 28 Sep 2011 19:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-86</guid>
		<description>Has anyone figured out a way to capture the console log of Selenium when launched as a Service (wrapped)?</description>
		<content:encoded><![CDATA[<p>Has anyone figured out a way to capture the console log of Selenium when launched as a Service (wrapped)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dazhang</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-82</link>
		<dc:creator>dazhang</dc:creator>
		<pubDate>Wed, 27 Jul 2011 19:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-82</guid>
		<description>I would like to know can I do the similar thing on Linux? I am now writing some testing suite using Selenium. But it really bothers a lot every time when I execute the testing suite, a Firefox browser will pop up. Is there any solution for that?</description>
		<content:encoded><![CDATA[<p>I would like to know can I do the similar thing on Linux? I am now writing some testing suite using Selenium. But it really bothers a lot every time when I execute the testing suite, a Firefox browser will pop up. Is there any solution for that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daz</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-76</link>
		<dc:creator>Daz</dc:creator>
		<pubDate>Fri, 05 Nov 2010 16:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-76</guid>
		<description>Hi,

Followed the instructions as above but, whilst the service appears to run,  my web application does not seem to find it.  My page with a list of tests to fire just hangs and says Waiting for server.

I've tried running it from command line.  It says something else is using port 4444 but, when I stop the service and run it via command line it works.

Are there any permissions that I need to change so that my web app can see the server.  (I've added Selenium user to my c:\program files\selenium-server-1.0.3)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Followed the instructions as above but, whilst the service appears to run,  my web application does not seem to find it.  My page with a list of tests to fire just hangs and says Waiting for server.</p>
<p>I&#8217;ve tried running it from command line.  It says something else is using port 4444 but, when I stop the service and run it via command line it works.</p>
<p>Are there any permissions that I need to change so that my web app can see the server.  (I&#8217;ve added Selenium user to my c:\program files\selenium-server-1.0.3)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Automating smoke tests with Selenium, CruiseControl and NUnit</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-75</link>
		<dc:creator>Automating smoke tests with Selenium, CruiseControl and NUnit</dc:creator>
		<pubDate>Sun, 24 Oct 2010 11:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-75</guid>
		<description>[...] Selenium RC is by default just a standalone application that runs selenium tests. To be able to use it under a Continous Integration framework we need to be able to run it as a Windows service. Here is summary of how this is done on a Windows 2003 server inspired by this article. [...]</description>
		<content:encoded><![CDATA[<p>[...] Selenium RC is by default just a standalone application that runs selenium tests. To be able to use it under a Continous Integration framework we need to be able to run it as a Windows service. Here is summary of how this is done on a Windows 2003 server inspired by this article. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-68</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 26 Jul 2010 19:36:32 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-68</guid>
		<description>@manisha: change &lt;code&gt;java -jar selenium-server.jar&lt;/code&gt; back to &lt;code&gt;-Xrs -jar selenium-server.jar&lt;/code&gt; and it should work fine.

You don't need to specify 'java' in the &lt;code&gt;AppParameters&lt;/code&gt; because it's already specified as the &lt;code&gt;Application&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@manisha: change <code>java -jar selenium-server.jar</code> back to <code>-Xrs -jar selenium-server.jar</code> and it should work fine.</p>
<p>You don&#8217;t need to specify &#8216;java&#8217; in the <code>AppParameters</code> because it&#8217;s already specified as the <code>Application</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Integrating Selenium Tests into CruiseControl.Net via NUnit &#171; Everything Web</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-67</link>
		<dc:creator>Integrating Selenium Tests into CruiseControl.Net via NUnit &#171; Everything Web</dc:creator>
		<pubDate>Mon, 26 Jul 2010 02:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-67</guid>
		<description>[...] found a great resource that details how to do this. To summarize the article, follow these simple [...]</description>
		<content:encoded><![CDATA[<p>[...] found a great resource that details how to do this. To summarize the article, follow these simple [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manisha</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-66</link>
		<dc:creator>manisha</dc:creator>
		<pubDate>Wed, 14 Jul 2010 13:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-66</guid>
		<description>Hi,

I followed this instructions to run RC as service.

I was able to create registory entery by name SeleniumRC. I don't know what is -Xrs -jar selenium-server.jar is used for so I changed it to java -jar selenium-server.jar command.

I hope its okay. 

After this I am not sure how to start SeleniumRC as service.

Can some one help?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I followed this instructions to run RC as service.</p>
<p>I was able to create registory entery by name SeleniumRC. I don&#8217;t know what is -Xrs -jar selenium-server.jar is used for so I changed it to java -jar selenium-server.jar command.</p>
<p>I hope its okay. </p>
<p>After this I am not sure how to start SeleniumRC as service.</p>
<p>Can some one help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NuclearFisher</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-65</link>
		<dc:creator>NuclearFisher</dc:creator>
		<pubDate>Wed, 26 May 2010 16:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-65</guid>
		<description>I was able to run Selenium-server-1.0.3 as Windows service with JavaService-2.0.10 (http://forge.ow2.org/projects/javaservice/) as follows:

1. Copy "JavaService.exe" to selenium-server-1.0.3\ directory as "selenium.exe"
2. Run the following batch in the same directory (edit paths and SEL_PARAMS if needed):
========
@echo off
set JAVA_HOME=c:\java\jre6
set JVMDIR=%JAVA_HOME%\bin\client
set JSBINDIR=%CD%
set JSEXE=%JSBINDIR%\selenium.exe
set SVC_NAME=Selenium4445

set SEL_PARAMS="-port 4445 -log %JSBINDIR%\logs\%SVC_NAME%.log -ensureCleanSession -trustAllSSLCertificates"
set SEL_JAR=%JSBINDIR%\selenium-server.jar
set SEL_START=org.openqa.selenium.server.SeleniumServer

echo . About to remove the previously installed service if any:
pause
%JSEXE% -uninstall %SVC_NAME%

echo . Using following version of JavaService executable:
%JSEXE% -version
echo .

echo Installing service... Press Control-C to abort
pause
echo .

%JSEXE% -install %SVC_NAME% %JVMDIR%\jvm.dll -Djava.class.path=%SEL_JAR% -start "%SEL_START%" -params "%SEL_PARAMS%"
echo .
pause

%JSEXE% -queryconfig %SVC_NAME%
========

Voila!

PS: Draw your attention to how double quotes are used. Each substring in SEL_PARAMS should be passed to SeleniumServer.class as a separate parameter and should not be combined to the single string. Otherwise nothing will work.
See the corresponding registry key below:
========
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Selenium4445\Parameters]
"JavaService Version"="2,0,10,0"
"JVM Library"="c:\\java\\jre6\\bin\\client\\jvm.dll"
"JVM Option Count"=dword:00000001
"JVM Option Number 0"="-Djava.class.path=C:\\Java\\selenium\\selenium-server-1.0.3\\selenium-server.jar"
"Start Class"="org.openqa.selenium.server.SeleniumServer"
"Start Method"="main"
"Shutdown Timeout"=dword:00007530
"Overwrite Files Flag"=dword:00000000
"Startup Sleep"=dword:00000000
"Start Param Count"=dword:00000006
"Start Param Number 0"="-port"
"Start Param Number 1"="4445"
"Start Param Number 2"="-log"
"Start Param Number 3"="C:\\Java\\selenium\\selenium-server-1.0.3\\logs\\Selenium4445.log"
"Start Param Number 4"="-ensureCleanSession"
"Start Param Number 5"="-trustAllSSLCertificates"
========</description>
		<content:encoded><![CDATA[<p>I was able to run Selenium-server-1.0.3 as Windows service with JavaService-2.0.10 (http://forge.ow2.org/projects/javaservice/) as follows:</p>
<p>1. Copy &#8220;JavaService.exe&#8221; to selenium-server-1.0.3\ directory as &#8220;selenium.exe&#8221;<br />
2. Run the following batch in the same directory (edit paths and SEL_PARAMS if needed):<br />
========<br />
@echo off<br />
set JAVA_HOME=c:\java\jre6<br />
set JVMDIR=%JAVA_HOME%\bin\client<br />
set JSBINDIR=%CD%<br />
set JSEXE=%JSBINDIR%\selenium.exe<br />
set SVC_NAME=Selenium4445</p>
<p>set SEL_PARAMS=&#8221;-port 4445 -log %JSBINDIR%\logs\%SVC_NAME%.log -ensureCleanSession -trustAllSSLCertificates&#8221;<br />
set SEL_JAR=%JSBINDIR%\selenium-server.jar<br />
set SEL_START=org.openqa.selenium.server.SeleniumServer</p>
<p>echo . About to remove the previously installed service if any:<br />
pause<br />
%JSEXE% -uninstall %SVC_NAME%</p>
<p>echo . Using following version of JavaService executable:<br />
%JSEXE% -version<br />
echo .</p>
<p>echo Installing service&#8230; Press Control-C to abort<br />
pause<br />
echo .</p>
<p>%JSEXE% -install %SVC_NAME% %JVMDIR%\jvm.dll -Djava.class.path=%SEL_JAR% -start &#8220;%SEL_START%&#8221; -params &#8220;%SEL_PARAMS%&#8221;<br />
echo .<br />
pause</p>
<p>%JSEXE% -queryconfig %SVC_NAME%<br />
========</p>
<p>Voila!</p>
<p>PS: Draw your attention to how double quotes are used. Each substring in SEL_PARAMS should be passed to SeleniumServer.class as a separate parameter and should not be combined to the single string. Otherwise nothing will work.<br />
See the corresponding registry key below:<br />
========<br />
REGEDIT4</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Selenium4445\Parameters]<br />
&#8220;JavaService Version&#8221;=&#8221;2,0,10,0&#8243;<br />
&#8220;JVM Library&#8221;=&#8221;c:\\java\\jre6\\bin\\client\\jvm.dll&#8221;<br />
&#8220;JVM Option Count&#8221;=dword:00000001<br />
&#8220;JVM Option Number 0&#8243;=&#8221;-Djava.class.path=C:\\Java\\selenium\\selenium-server-1.0.3\\selenium-server.jar&#8221;<br />
&#8220;Start Class&#8221;=&#8221;org.openqa.selenium.server.SeleniumServer&#8221;<br />
&#8220;Start Method&#8221;=&#8221;main&#8221;<br />
&#8220;Shutdown Timeout&#8221;=dword:00007530<br />
&#8220;Overwrite Files Flag&#8221;=dword:00000000<br />
&#8220;Startup Sleep&#8221;=dword:00000000<br />
&#8220;Start Param Count&#8221;=dword:00000006<br />
&#8220;Start Param Number 0&#8243;=&#8221;-port&#8221;<br />
&#8220;Start Param Number 1&#8243;=&#8221;4445&#8243;<br />
&#8220;Start Param Number 2&#8243;=&#8221;-log&#8221;<br />
&#8220;Start Param Number 3&#8243;=&#8221;C:\\Java\\selenium\\selenium-server-1.0.3\\logs\\Selenium4445.log&#8221;<br />
&#8220;Start Param Number 4&#8243;=&#8221;-ensureCleanSession&#8221;<br />
&#8220;Start Param Number 5&#8243;=&#8221;-trustAllSSLCertificates&#8221;<br />
========</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kostia</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-63</link>
		<dc:creator>Kostia</dc:creator>
		<pubDate>Thu, 21 Jan 2010 23:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-63</guid>
		<description>Thanks for the post!

I ran into the same problem (the parameters) and solved it by using a BAT-file containing the whole command line:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SeleniumRC\Parameters]
"Application"="C:\\Path\To\My\BAT\File"</description>
		<content:encoded><![CDATA[<p>Thanks for the post!</p>
<p>I ran into the same problem (the parameters) and solved it by using a BAT-file containing the whole command line:</p>
<p>Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SeleniumRC\Parameters]<br />
&#8220;Application&#8221;=&#8221;C:\\Path\To\My\BAT\File&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

