用Ant

2012-05-15 25 views
2

運行硒我看着就谷歌和這裏的計算器,但無法找到它。用Ant

我知道這是可能的,與Ant腳本啓動硒獨立服務器。

我想現在就這樣做了一天的一半。

腳本應該做的唯一的事情是:

  • 啓動硒獨立服務器
  • 轉到Firefox中
  • 關機
+0

http://adam.goucher.ca/?p=423? – oers

+0

但我在哪裏可以把URL,因爲這是檢查是否Server已啓動:另要點是這段代碼有點麻煩,並且是用於測試硒腳本的。我只想去URL。沒有什麼比這更簡單了。 – Gynnad

+0

您使用的硒版本是? 1.x還是2.x? –

回答

3

1的網頁網址,我用了以下解決方案與螞蟻啓動硒獨立服務器:

<target name="selenium"> 
    <exec executable="cmd"> 
     <arg value="/c"/> 
     <arg value="java -jar ${selenium.standalone} -htmlSuite ${selenium.browser} ${selenium.url} ${selenium.testsuite} ${selenium.result}"/> 
    </exec> 
</target>