Pull Request for parallel ANT execution


#1

I just opened a pull request for a reshaped implementation of the ANT build script to run test in parallel on the machine executing the tests. So you can run two Chromes at the same time and speed up the test by factor 2. If you have more resources locally, more browsers are possible too.

Each browser eats at least one local physical cpu core. So even with 2 more hyper-threaded core, you won’t gain anything on a 2+2 machine.

This implementation relies on the JavaScript support of ANT. Some other newer feature have been used as well, so ANT 1.9.1 is required.

https://github.com/Xceptance/SiteGenesis-Community-TestSuite/pull/56


#2

Please note, that there is an issue with the new JavaScript Engine in Java 8. Running the testsuite via ANT leads to the exception:

javax.script.ScriptException: ReferenceError: "importClass" is not defined

Adding the following to the build.xml file in line number 139 before the importClass commands will fix the problem for now:

load("nashorn:mozilla_compat.js");

You can find more information about it here: http://stackoverflow.com/questions/22503100/java-8-javascript-engine-backwards-compatibility


#3

Thanks. This has been incorporated into a pull request update. So hopefully that is not longer an issue.