Skip to content

roggeo/phpunit-selenium-2

Repository files navigation

#PHPUnit Selenium 2

##Install

First download phpunit-selenium-2.zip

Use Composer commands:

Using Composer
Install Composer to Windows

php composer.phar update

Or use

composer install

##Testing

Downloading Selenium Standalone Server in: http://docs.seleniumhq.org/download/

Running server Selenium:

$ mv downloads/selenium-server-standalone-2.48.2.jar /usr/local/bin
$ java -jar selenium-server-standalone-2.48.2.jar

Selenium for Windows (Optional)

Create file "selenium.bat" with code:

@ECHO OFF
SET BIN_TARGET=%~dp0/selenium-server-standalone-2.48.2.jar
java -jar "%BIN_TARGET%" %*

Create an environment variable pointing to the file folder .jar

Ready, now you can running Selenium via command line.

$ cd vendor/bin
$ phpunit ../../src/App/Tests

or if exists variable of enviroment "phpunit", use in the root. To running phpunit.xml.dist:

$ phpunit

For more, see: here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages