Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added trailing slash to website URL, moved parameter order for java


  1. Do a normal install on the machine you wish to test on (this is so a valid configuration file is present) 
  2. Create a behat.xml file in your config directory. It should contain the following settings:

    Code Block
    <?xml version="1.0" encoding="UTF-8"?>

  3. Run the following script: testing/behat/cli/init.php
  4. Download selenium from
  5. Download ChromeDriver from


  1. Start the webserver referenced in behat's website setting. You can use the builtin php web server with the following command: php  php -S localhost:8000
  2. Start Selenium with a command similar to: java  java<path_to_chromedriver> -jar selenium-server-standalone-<version_number>.jar<path_to_chromedriver>
  3. Run the following command to run the test suite: vendor/bin/behat --config <rogo_root_directory>/testing/behat/config/behat.yml

Additional information

titleAlternative configuration

It is also possible to configure behat using the main Rogo config using the following settings:

  1. $cfg_behat_website - Should be a url and specific port, for example http://localhost:8000/
  2. $cfg_behat_db_database - Should be the name of a database schema that is different to the live schema, but on the same server
  3. $cfg_behat_data - The location that you wish behat to store user data files, must be different to the value of $cfg_rogo_data
  4. $cfg_behat_db_user - Username that can be used to fully control your database
  5. $cfg_behat_db_password - The password for the database user
Settings in the behat.xml file will override any behat settings in the main file.


5. Run the following command to run the test suite: vendor/bin/behat --config <rogo_root_directory>/testing/behat/config/behat.yml

Ideas for the future

We can probably set things up so that our tests will run automatically in the cloud on something like: