Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I've done something similar but no in a 100% windows setup, but I guess you wont have any problems doing something similar on Windows.</p> <p>In my case, I had to test on more browsers: IE7, IE8, IE9, Chrome, Safari, Firefox 3.6 and latest versions, so, what I've done, was install virtual machines with all the browsers that I need, and another machine with jstestdriver running on server mode:</p> <pre><code>java -Xmx256m -jar JsTestDriver-1.3.4-a.jar --port 4224 </code></pre> <p>All the virtual machines with the browsers, have always an instance of them pointing to that server (http://[jstd-server-ip]:4224/capture)</p> <p>On those machines I have created a scheduled task, that resets the instance of the browsers every morning, because I've seen that some browsers, specially IE7 tends to stop working if it's running for more than 3 days.</p> <pre><code>taskkill /f /IM iexplore.exe iexplore.exe http://[jstd-server-ip]:4224/capture </code></pre> <p>Those machines, and the jstestdriver server are running all the time. I'm not sure if in your case that's possible.</p> <p>Then, on the applications, I'm using a maven plugin for launching tests: <a href="http://code.google.com/p/jstd-maven-plugin/wiki/GettingStarted" rel="nofollow">http://code.google.com/p/jstd-maven-plugin/wiki/GettingStarted</a> that works better in my case, but if you are not using maven, I guess that in NAnt shoud be something like this:</p> <pre><code>&lt;target name="jsTests" &gt; &lt;echo message="Running JavaScript tests..." /&gt; &lt;exec program="java.exe"&gt; &lt;arg line="-jar '${jstestdriver.dir}\JsTestDriver.jar'" /&gt; &lt;arg line="--config '${ui.webtests.dir}\JsTestDriver.conf'" /&gt; &lt;arg line="--browser 'C:\program files\internet explorer\iexplore.exe'"/&gt; &lt;arg line="--verbose"/&gt; &lt;arg line="--reset"/&gt; &lt;arg line="--tests all"/&gt; &lt;arg line="--testOutput '${results.jstestdriver.dir}'"/&gt; &lt;/exec&gt; &lt;/target&gt; </code></pre> <p>And in <em>JsTestDriver.conf</em> add this line on the top:</p> <pre><code>server: http://[jstd-server-ip]:4224 </code></pre> <p>This tells your <em>client</em> instance of jstestdriver executed by jenkins to use <em>http://[jstd-server-ip]:4224</em> as it's server.</p> <p>Hope this helps you!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload