Will selenium mesh work under NAnt (not Ant)?

I am trying to run Selenium Grid using NAnt, but I lost a little, since all the explanations I can find use Ant - although I thought they were pretty similar, I cannot burn Selenium Grid my local computer in this way.

Here are the URLs of the Selenium Grid pages I found, but they are related to Ant ...

Beginning of work

... moving on to

Run demo

+3
source share
2 answers

On the Selenium Grid page:

To run Selenium Grid, you need a valid installation of Java 5+ JDK on your system.

AFAIK NAnt .Net, Java, , Ant, Java 1.5 Selenium Grid , ant NAnt .

+2

:

  <property name="selenium.server.file" value="${src.dir}\_tools\selenium\selenium-server.jar" />
  <property name="selenium.grid.hub.file" value="${src.dir}\_tools\selenium\selenium-grid-hub-standalone-1.0.4.jar" />
  <property name="selenium.grid.rc.file" value="${src.dir}\_tools\selenium\selenium-grid-remote-control-standalone-1.0.4.jar" />

start hub:

 <target name="start.selenium.grid.hub">
    <exec program="java" verbose="true" failonerror="false">
      <arg value="-jar" />
      <arg value="${selenium.grid.hub.file}" />
    </exec>
  </target>

start rc:

<target name="start.selenium.grid.rc">
    <exec program="java" verbose="true" failonerror="false">
      <arg value="-classpath" />
      <arg value="${selenium.server.file};${selenium.grid.rc.file}" />
      <arg value="com.thoughtworks.selenium.grid.remotecontrol.SelfRegisteringRemoteControlLauncher" />
    </exec>
  </target>

:

java -jar D:\work\SeleniumDesign\build_artifacts\\\source_tools\selenium\selenium-grid-hub-standalone-1.0.4.jar

java -classpath D:\work\SeleniumDesign\build_artifacts\\\source_tools\selenium\selenium-server.jar; D:\work\SeleniumDesign\build_artifacts\\\source_tools\selenium\selenium-grid- remote-control-standalone-1.0.4.jar com.thoughtworks.selenium.grid.remotecontrol.SelfRegisteringRemoteControlLauncher

+1

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


All Articles