mathiasbroekelmann / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Browsers hang when having multiple requests to jstestdriver server #336

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
My question is how can I run different tests on the same tests machine, i.e. 
accessing browsers concurrently and not to need to restart browsers manually. 
Thank you in advance.

What steps will reproduce the problem?
1. JstestDriver server runs on remote machine.
2. Browsers are opened when the server starts and maintain always opened.
3. Different machines run same tests and access JsTestDriver machine at the 
same time.
3. Browsers hang, timeout occurs, and the project running tests don't compile 
due this error.

What is the expected output? What do you see instead?
The output is the infinite sequence of the following:
Microsoft Internet Explorer: {}
Microsoft Internet Explorer: {}
Microsoft Internet Explorer: {}
Microsoft Internet Explorer: {}
Microsoft Internet Explorer: {}
Microsoft Internet Explorer: {}
Microsoft Internet Explorer: {}

At this time we need to manually restart the jstestdriver server. :\

What version of the product are you using? On what operating system?
We are using jstestdriver1.3.2 on windows machine and maven plugin version 
1.3.2.5 to run tests.

Please provide any additional information below.

I am starting a server with the following parameters:
java -jar JsTestDriver-1.3.2.jar --port 9876 --browser 
"C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe","C:\
Program Files (x86)\Mozilla Firefox\firefox.exe","C:\Program Files 
(x86)\Internet Explorer\iexplore.exe","C:\Program Files (x86)\Mozilla Firefox 
3.6\firefox.exe"

Configuration in my pom.xml:
      <plugin>
        <groupId>com.googlecode.jstd-maven-plugin</groupId>
        <artifactId>jstd-maven-plugin</artifactId>
        <version>1.3.2.5</version>
        <executions>
          <execution>
            <id>run-tests</id>
            <phase>test</phase>
            <goals>
              <goal>test</goal>
            </goals>
            <configuration>
              <runnerMode>QUIET</runnerMode>
              <server>http://nightly-win:9876</server>
              <config>${basedir}/src/test/resources/js-test-driver.conf</config>
              <browserTimeout>3000</browserTimeout>
             <testOutput>${basedir}/target/jstests/dat/</testOutput>
              <basePath>${test.base.path}</basePath>
              <preloadFiles>true</preloadFiles>
              <verbose>true</verbose>
              <reset>true</reset>
              <captureConsole>true</captureConsole>
            </configuration>
          </execution>
        </executions>
      </plugin>

Original issue reported on code.google.com by chud...@gmail.com on 14 Feb 2012 at 11:43

GoogleCodeExporter commented 8 years ago
I've experienced the same issue using IE9, it seems to often hang in the middle 
of the tests when an exception is thrown during a test, such as:

Error: Unexpected call to method or property access.

Original comment by daCrazyC...@gmail.com on 9 Apr 2012 at 2:48

GoogleCodeExporter commented 8 years ago
@daCrazyCoder, that is a different issue, which is currently resolved on head.

Original comment by corbinrs...@gmail.com on 9 Apr 2012 at 4:33