https://github.com/eddiejaoude/phpunit-selenium-parallel
- Standard grid
- Pros: simple.
- Cons: All tests sequential.
- Ant running groups in parallel (evenly split)
- Pros: easy to setup, does not effect current setup (provided Ant is used as build too), 2 result sets.
- Cons: tests in group run sequentially, as fast as slowest group.
- Parallel tests (I. /brianium/paratest )
- Pros: runs all tests in parallel.
- Cons: results come back separately.
- Parallel tests (II. /verkkokauppacom/parallel-phpunit)
- Pros: runs all tests in parallel.
- Cons: results come back separately.
NB: From project root directory
- Hub: java -jar selenium-server-standalone-2.32.0.jar -role hub
- Slave(s): java -jar selenium-server-standalone-2.32.0.ja-role node -hub http://[HUB-IP]:4444/grid/register
tests/ directory
- phpunit --configuration phpunit-selenium.xml
- ant -f build-selenium.xml
- (did not work!) ../vendor/bin/paratest -p 2 -f --phpunit=/usr/bin/phpunit ApplicationTest/Selenium/
- ./../vendor/bin/parallel-phpunit --pu-threads 2 -c phpunit-selenium.xml ApplicationTest/Selenium/
NB: 2 tests with 2 assertions, 2 worker agents
- 14s
- 8s
-
- 12s
Pen testing via zap proxy
More tests should be created & run against a larger amount of selenium nodes