Merge pull request #138 from retornam/add-debug-launcher

Adding launch-node-debug and launch-hub-debug: Turns on -debug and -log ...
This commit is contained in:
retornam 2014-08-01 09:32:32 -07:00
Родитель 8115f4e85c b9df9ebc33
Коммит e620bc18ac
1 изменённых файлов: 40 добавлений и 0 удалений

Просмотреть файл

@ -104,6 +104,23 @@
</java>
</target>
<target name="launch-hub-debug"
description="Launch Selenium Hub in debug mode"
depends="fetch-dependencies">
<java classname="org.openqa.grid.selenium.GridLauncher"
classpathref="selenium.classpath"
fork="true"
failonerror="true">
<arg value="-role"/>
<arg value="hub"/>
<arg value="-hubConfig"/>
<arg value="hub_configuration.json"/>
<arg value="-debug"/>
<arg value="-log"/>
<arg value="hub.log"/>
</java>
</target>
<target name="launch-node"
description="Launch Selenium Node"
depends="fetch-dependencies, set-config, set-hosts">
@ -123,4 +140,27 @@
<arg value="${node.configuration.file}"/>
</java>
</target>
<target name="launch-node-debug"
description="Launch Selenium Node in debug mode"
depends="fetch-dependencies, set-config, set-hosts">
<java classpathref="selenium.classpath"
classname="org.openqa.grid.selenium.GridLauncher"
fork="true"
failonerror="true">
<arg value="-role"/>
<arg value="node"/>
<arg value="-id"/>
<arg value="${env.HOSTNAME}"/>
<arg value="-hub"/>
<arg value="http://${hub.host}:${hub.port}/grid/register"/>
<arg value="-host"/>
<arg value="${node.host}"/>
<arg value="-nodeConfig"/>
<arg value="${node.configuration.file}"/>
<arg value="-debug"/>
<arg value="-log"/>
<arg value="node.log"/>
</java>
</target>
</project>