Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use remote browsers for js-test-driver task on Jenkins?
    primarykey
    data
    text
    <p>We use Jenkins for the continuous integration of .NET web applications with NAnt/NUnit for the .NET tests. Jenkins is configured with 9 slaves (all of which are Windows Server 2003) that runs many builds along with their automated tests.</p> <p>We are trying to setup js-test-driver for running our JavaScript unit tests and the below NAnt task is working well locally on the developer workstations. Internet explorer is the only browser we would like to test on, as that is the only target browser for all our web applications.</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="--port 9876"/&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>We are running into problems with the same task on Jenkins, probably because: </p> <ol> <li>it's a server and we are running as a service account</li> <li>there are security restrictions on the browser installation on the server</li> </ol> <p>The <code>GettingStarted</code> page on the <a href="http://code.google.com/p/js-test-driver/wiki/GettingStarted" rel="noreferrer">js-test-driver wiki</a> says we could run the browsers on a different machine than where the js-test-driver server is running:</p> <blockquote> <p>Before you can run any of your tests you need to start the test server and capture at least one slave browser. The server does not have to reside on the machine where the test runner is, and the <strong>browsers themselves can be at different machines</strong> as well.</p> </blockquote> <ol> <li>Has anyone done this on Jenkins/Windows setup?</li> <li>Are there any other alternatives for a scalable setup to run js-test-driver?</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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