Minimal setup to get everyone started with Behat and Mink for easy browser testing
Find a file
Daniel Siepmann dc960eb556 [FEATURE] Add tests for local sonar
* In order to show some interaction in browser, test login with sonar.
2015-11-14 21:33:06 +01:00
features/simple-examples/daniel-siepmann [FEATURE] Add tests for local sonar 2015-11-14 21:33:06 +01:00
.gitignore [INIT] Initial version 2015-11-14 21:07:10 +01:00
behat.yml [INIT] Initial version 2015-11-14 21:07:10 +01:00
composer.json [INIT] Initial version 2015-11-14 21:07:10 +01:00
composer.lock [INIT] Initial version 2015-11-14 21:07:10 +01:00
LICENSE.txt [TASK] Added license 2015-11-14 21:12:39 +01:00
readme.md [BUGFIX] Install 2015-11-14 21:16:23 +01:00

This repository will provide all you need to get you up and running with Behat and mink in a basic setup.

Install

  1. Clone the repository, or download.
  2. Run composer install from within the repository.
    You can verify with bin/behat -di whether Behat works and the language is available to write website tests.

For non headless browser

Headless means without a GUI, just CLI. This is default for this setup. So all your tests are run without a GUI of an actual browser.

To use a real browser like Firefox, you need to install selenium standalone server, in addition, by downloading from http://www.seleniumhq.org/download/

Execute

Per default you just can run your tests. Therefor execute: bin/behat features.

If you wanna see your tests running in real time inside the browser, or need a specific feature, you need to start the selenium server before running the tests. Start selenium server: java -jar bin/selenium-server-standalone-2.48.2.jar. Modify the call to match path and filename of downloaded server. Uncomment the line containing default_session in behat.yml, then run your tests again.

Extending

Once the tests work you are set to start your own. Just follow the official documentation and write your own tests.

Support

Native support is given for Firefox. This repository aims to provide basic support to get you started. For full support contact us or dive deeper on your own.

Further resources

For further features