Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6052287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:54:43+00:00 2026-05-23T07:54:43+00:00

I was trying to setup Selenium Grid and instead of using ant configuration available

  • 0

I was trying to setup Selenium Grid and instead of using ant configuration available with Selenium Grid download I continued using my ant configuration.

For ant users who are not aware of Selenium Gird – it is a java lib which lets UI tests be distributed on different system specified in one “yml” file. Herein I can start one hub machine and which in turn can ctrl browser on different slave machines.

Ant configuration which I was using –

<target name="setClassPath">
    <path id="classpath_jars">
        <fileset dir="${lib.dir}" includes="*.jar"/>
    </path>
    <pathconvert pathsep=":" property="test.classpath"
        refid="classpath_jars" />
</target>

<target name="launch-hub" description="Launch Selenium Hub" depends="setClassPath">
    <java classname="com.thoughtworks.selenium.grid.hub.HubServer" 
        classpathref="classpath_jars" 
        fork="true" 
        failonerror="true">

        <sysproperty key="http.proxyHost" value="${http.proxyHost}" />
        <sysproperty key="http.proxyPort" value="${http.proxyPort}" />
        <sysproperty key="https.proxyHost" value="${https.proxyHost}" />
        <sysproperty key="https.proxyPort" value="${https.proxyPort}" />

    </java>
 </target>

Now while using this configuration, my hub always starts with “yml” file which is available in “selenium-grid-hub-standalone-1.0.8.jar” instead of considering the “yml” file which I defined on my project root.

Following this I changed the ant configuration as following, which is available in Selenium Grid distribution –

<path id="hub.classpath">
    <pathelement path="${basedir}/"/>
    <fileset dir="${basedir}/lib">
        <include name="selenium-grid-hub-standalone-1.0.8.jar"/>
    </fileset>
</path>

<target name="launch-hub" description="Launch Selenium Hub">
    <java classname="com.thoughtworks.selenium.grid.hub.HubServer"
          classpathref="hub.classpath"
          fork="true"
          failonerror="true" >

        <sysproperty key="http.proxyHost" value="${http.proxyHost}"/>
        <sysproperty key="http.proxyPort" value="${http.proxyPort}"/>
        <sysproperty key="https.proxyHost" value="${https.proxyHost}"/>
        <sysproperty key="https.proxyPort" value="${https.proxyPort}"/>
    </java>
</target>

And now when I start the hub, it consider the “yml” file which is defined in my project root and not the one which is available in “selenium-grid-hub-standalone-1.0.8.jar” file.

I am no ant aficionado but I find both configuration almost similar, wherein first configuration has dependency on target while other uses the “pathid”. Any one who could throw light on this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:54:43+00:00Added an answer on May 23, 2026 at 7:54 am

    I think the difference is that the classpath in the second example includes your project root dir:

    <pathelement path="${basedir}/"/>
    

    whereas the first one does not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to setup Selenium WebDriver 2.5.1 on my project using NuGet . I
I'm trying setup a subset of boost and get it properly compiled using bjam,
I'm trying to setup an Apache/PHP/Postgresql server locally on my machine. I'm using Windows
I'm trying to run Selenium RC 1.0.3 using Java 6, JUnit 4, and Eclipse
I an trying to setup Forms Based Authentication using ASPNetSQLMembershipProvider. In 2010 Beta 2,
I'm trying to do set up some Selenium WebTests using PHPUnit, but php is
I'm trying to set up Selenium RC with Eclipse, but when I download the
Trying to setup SSL on jetty 7.2.2 using these instructions: http://docs.codehaus.org/display/JETTY/How+to+configure+SSL stuck on 3b:
I'm trying to follow the tutorial here to setup a headless selenium test-run with
I am trying automate a login process to my web application using Selenium-Python Client

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.