<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Automation Testing - Medium]]></title>
        <description><![CDATA[Helpful links related to automation testing using Selenium - Medium]]></description>
        <link>https://medium.com/automation-testing?source=rss----aecb0a0af10c---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Automation Testing - Medium</title>
            <link>https://medium.com/automation-testing?source=rss----aecb0a0af10c---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 12:49:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/automation-testing" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Selenium Grid and TestNG]]></title>
            <link>https://medium.com/automation-testing/selenium-grid-and-testng-d589127b2ab2?source=rss----aecb0a0af10c---4</link>
            <guid isPermaLink="false">https://medium.com/p/d589127b2ab2</guid>
            <dc:creator><![CDATA[Pushkar Deshpande]]></dc:creator>
            <pubDate>Wed, 02 Jul 2014 05:15:08 GMT</pubDate>
            <atom:updated>2016-02-22T14:35:24.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*he7JoqBttZnhZetkzmJwbQ.jpeg" /></figure><h4>How to run parallel test scripts using Selenium Grid and TestNG</h4><p><strong>How to run parallel test execution</strong></p><ul><li>Setting up Selenium Grid Server</li><li>Adding node to hub</li><li>Creating and executing Selenium script in parallel with TestNG</li></ul><p><strong>Setting up selenium Server:</strong></p><p>1. Download Selenium server (.jar) from : <a href="http://docs.seleniumhq.org/download/">Selenium Grid</a></p><p>2. Place the .jar file in the hard disk location</p><p>3. Open command prompt and go to the location where .jar file is placed</p><p>4. Run following command :</p><p>java -jar selenium-server-standalone-2.52.0.jar -role hub</p><p>5. Verify whether hub is running using followin URL :</p><p><a href="http://localhost:4444/grid/console"><em>http://localhost:4444/grid/console</em></a></p><p><strong>Adding node to hub</strong></p><p>1. Open command prompt (new instance as hub is already running on 1 instance) and go to the location where .jar is placed</p><p>2. Run following command :</p><p>java -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub <a href="http://172.16.15.140:4444/grid/register">http://172.16.15.140:4444/grid/register</a> -port 5568</p><p>(Note that the IP address provided should be of the client machine. If you are running scripts on same machine then use same IP address of the server machine.)</p><p>Above command will add a single node to the hub. To add multiple nodes open and run same command in new command prompt. Make sure that the port will be different for each node.</p><p>eg.</p><ul><li>java -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub <a href="http://172.16.15.140:4444/grid/register">http://172.16.15.140:4444/grid/register</a> -port 5568</li><li>java -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub <a href="http://172.16.15.140:4444/grid/register">http://172.16.15.140:4444/grid/register</a> -port 5569</li></ul><p>3. Above node will work successfully for Firefox</p><p>4. If you are trying to add a node to hub for internet explorer (IE) use following command :</p><p>java -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub <a href="http://172.16.15.140:4444/grid/register">http://172.16.15.140:4444/grid/register</a> -port 5555 -Dwebdriver.ie.driver=”C:/Selenium/Grid/Resource/IEDriverServer.exe”</p><p>5. Verify whether hub and nodes are running using followin URL :</p><p><a href="http://localhost:4444/grid/console"><em>http://localhost:4444/grid/console</em></a></p><p><strong>Creating and executing Selenium script in parallel with TestNG</strong></p><p>Java Code and XML Code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*TdWmsoIZpIOJF9wAuUqX5A.png" /><figcaption>Java Code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*Y5eylArZx_PLnPAijhm5mg.png" /><figcaption>XML File</figcaption></figure><p><em>Run the code using configuration</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d589127b2ab2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automation-testing/selenium-grid-and-testng-d589127b2ab2">Selenium Grid and TestNG</a> was originally published in <a href="https://medium.com/automation-testing">Automation Testing</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>