<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Off Shore Development India &#187; Woring with Selenium Grid</title>
	<atom:link href="http://www.offshoresoftwaredevelopmentindia.com/blog/tag/woring-with-selenium-grid/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.offshoresoftwaredevelopmentindia.com/blog</link>
	<description>Offshore Software Development India</description>
	<lastBuildDate>Wed, 25 Jan 2012 13:14:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Working with Selenium-Grid and run PHP Tests</title>
		<link>http://www.offshoresoftwaredevelopmentindia.com/blog/2009/06/01/working-with-selenium-grid-and-run-php-tests/</link>
		<comments>http://www.offshoresoftwaredevelopmentindia.com/blog/2009/06/01/working-with-selenium-grid-and-run-php-tests/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 02:50:17 +0000</pubDate>
		<dc:creator>nirav</dc:creator>
				<category><![CDATA[.Net Development]]></category>
		<category><![CDATA[Php Development]]></category>
		<category><![CDATA[Selenium Testing]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[Asp.Net Selenium Tests]]></category>
		<category><![CDATA[Development based on Unit Testing]]></category>
		<category><![CDATA[Functional Testing]]></category>
		<category><![CDATA[PHP Selenium Tests]]></category>
		<category><![CDATA[PHP Tests by Selenium Grid]]></category>
		<category><![CDATA[PHP Unit Testing]]></category>
		<category><![CDATA[Selenium Grid Testing]]></category>
		<category><![CDATA[Software Testing Framework]]></category>
		<category><![CDATA[Testing Methods]]></category>
		<category><![CDATA[Web Application Testing]]></category>
		<category><![CDATA[Website Functional Testing]]></category>
		<category><![CDATA[Website Testing]]></category>
		<category><![CDATA[Woring with Selenium Grid]]></category>

		<guid isPermaLink="false">http://www.offshoresoftwaredevelopmentindia.com/blog/?p=35</guid>
		<description><![CDATA[By Vaishal,
Working with Selenium-Grid
1. Download selenium Grid from
http://seleniumhq.org/download/
And extract files any location. Mostly in C:\selenium
2. Install latest jre from
http://java.sun.com/
3. Download ant from
http://ant.apache.org/
Extract files in C:\Ant.
- Set environment variable ANT_HOME as
- Go to the properties menu of MyComputer
- Go to the advance menu and click on &#8216;Environment Variable&#8217;
- Click on new and Enter value &#8216;ANT_HOME&#8217; variable [...]]]></description>
			<content:encoded><![CDATA[<p>By Vaishal,</p>
<p>Working with Selenium-Grid</p>
<p>1. Download selenium Grid from<br />
<a href="http://seleniumhq.org/download/">http://seleniumhq.org/download/</a><br />
And extract files any location. Mostly in C:\selenium</p>
<p>2. Install latest jre from</p>
<p><a href="http://java.sun.com/">http://java.sun.com/</a></p>
<p>3. Download ant from</p>
<p><a href="http://ant.apache.org/">http://ant.apache.org/</a><br />
Extract files in C:\Ant.</p>
<p>- Set environment variable ANT_HOME as<br />
- Go to the properties menu of MyComputer<br />
- Go to the advance menu and click on &#8216;Environment Variable&#8217;<br />
- Click on new and Enter value &#8216;ANT_HOME&#8217; variable with your folder value where you have installed Ant.<br />
- Now set the path variable as<br />
Edit value and add location of your ant\bin folder</p>
<p>4. Now go to the selenium-grid folder from command prompt and launch-hub as follow:</p>
<p>ant launch-hub</p>
<p>Hub will start on port no 4444 as follow:</p>
<p>5. Now start remote server from new terminal from same selenium-grid folder as follow</p>
<p>ant launch-remote-control</p>
<p>It will start as follow:</p>
<p>6. Now in browser go to the hub location by</p>
<p><a href="http://localhost:4444/console">http://localhost:4444/console</a></p>
<p>It will look like</p>
<p>7. To start more remote server enter<br />
ant -Dport=5556 launch-remote-control<br />
ant -Dport=5557 launch-remote-control<br />
ant -Dport=5558 launch-remote-control</p>
<p>8. Now the hub on browser will show as</p>
<p>Available Remote Controls<br />
Host Port Environment<br />
localhost 5555 *firefox<br />
localhost 5556 *firefox<br />
localhost 5557 *firefox<br />
localhost 5558 *firefox</p>
<p>Note: The total run time is directly proportional to the number of available remote controls. So don’t start more controls if not necessary.</p>
<p>9. Run the hub</p>
<p>This setup illustrates that you can run the hub and the remote controls on arbitrary machines. When you do so though, you need to provide a lot more information when launching a remote control. You need to launch it with:<br />
ant -Dport=&lt;port&gt; -Dhost=&lt;hostname&gt; -DhubURL=&lt;hub url&gt; launch-remote-control<br />
Where:</p>
<p>port Port that the remote control will be listening at. Must be unique on the machine the remote control runs on. hostname Hostname or IP address of the machine the remote control runs on. Must be visible from the Hub machine. Note: this information could be inferred as it is always referring to the machine the remote control runs on. It might not be required in future versions of the Selenium Grid. hub url Which hub the remote control should register/unregister to. If the hub is running on hostname my.hub.com, this URL will be <a href="http://my.hub.com:4444">http://my.hub.com:4444</a></p>
<p>10. Now to run a test open new cmd prompt and go the test folder.<br />
phpunit Example</p>
<p>11. This will start the test.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.offshoresoftwaredevelopmentindia.com/blog/2009/06/01/working-with-selenium-grid-and-run-php-tests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

