october_1x0/vendor/phpunit/phpunit-selenium
Kerim f037dd7b2d first commit 2022-06-24 19:32:37 +05:00
..
PHPUnit/Extensions first commit 2022-06-24 19:32:37 +05:00
Tests first commit 2022-06-24 19:32:37 +05:00
build first commit 2022-06-24 19:32:37 +05:00
selenium-1-tests first commit 2022-06-24 19:32:37 +05:00
.gitignore first commit 2022-06-24 19:32:37 +05:00
.travis.yml first commit 2022-06-24 19:32:37 +05:00
ChangeLog.markdown first commit 2022-06-24 19:32:37 +05:00
LICENSE first commit 2022-06-24 19:32:37 +05:00
README.md first commit 2022-06-24 19:32:37 +05:00
after_script.sh first commit 2022-06-24 19:32:37 +05:00
before_script.sh first commit 2022-06-24 19:32:37 +05:00
build.xml first commit 2022-06-24 19:32:37 +05:00
composer.json first commit 2022-06-24 19:32:37 +05:00
composer.lock first commit 2022-06-24 19:32:37 +05:00
package.xml first commit 2022-06-24 19:32:37 +05:00
phpunit-selenium-bootstrap.php first commit 2022-06-24 19:32:37 +05:00
phpunit.xml.dist first commit 2022-06-24 19:32:37 +05:00

README.md

This package contains a base Testcase Class that can be used to run end-to-end tests against Selenium 2 (using its Selenium 1 backward compatible Api).

Please direct pull requests to giorgiosironi/phpunit-selenium for automated testing upon merging.

A feature branch containing all the commits you want to propose works best.

Running the test suite

To run the test suite for this package, you should serve selenium-1-tests via HTTP:

selenium-1-tests/ $ python -m SimpleHTTPServer 8080

and configure the constant that you will be asked for accordingly if you do not run the server on localhost:8080. You also need to run a Selenium Server:

$ java -jar  selenium-server-standalone-2.x.xjar

or with xvfb:

$ sudo xvfb-run java -jar bin/selenium-server-standalone-2.x.x.jar

Take a look at before_script.sh for an automated way to setup the HTTP and Selenium servers.

Dependencies are managed via Composer, so you must grab them like this:

$ composer install --dev

The tests can then be run with:

$ vendor/bin/phpunit Tests

You can copy phpunit.xml.dist to phpunit.xml and setup a custom configuration for browsers, but the test suite is based on Firefox on an Ubuntu machine.