Date: Fri, 29 Mar 2024 14:38:14 +0000 (UTC) Message-ID: <883612547.5.1711723094005@2a8b326bef1c> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4_651681481.1711723094005" ------=_Part_4_651681481.1711723094005 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Create a behat.xml file in your config directory. It should contain the = following settings:
<?xml= version=3D"1.0" encoding=3D"UTF-8"?> <rogo> <website>http://localhost:8000/</website> <db_database>behat_database_schema_name</db_database> <db_user>username</db_user> <db_password>password</db_password> <data>path_to_behat_user_data</data> <faildump>path_for_screenshots_of_failures</faildump> </rogo>
testing/behat/cli/init.php
Note for Windows users
You will need to install composer.phar into the root rogo directory manu= ally from https://getcomposer.org/download/
php -S lo=
calhost:8000
java -Dwebdriver.c=
hrome.driver=3D<path_to_chromedriver> -jar selenium-server-standalone=
-<version_number>.jar
vendor/bin/behat=
--config <rogo_root_directory>/testing/behat/config/behat.yml
=
Alternative configuration
It is also possible to configure behat using the main Rogo config using = the following settings:
Useful information
Start up rogo docker
docker-= compose -f docker-compose.yml -f db.yml -f expose.yml -f selenium.yml up -d=
Create a behat.xml file in your config directory. It should contain the = following settings:
<?xml= version=3D"1.0" encoding=3D"UTF-8"?> <rogo> <website>http://web:8003</website> <db_database>behat_database_schema_name</db_database> <db_user>username</db_user> <db_password>password</db_password> <data>path_to_behat_user_data</data> </rogo>
... ... extensions: Behat\MinkExtension: base_url: 'http://web:8003' goutte: null selenium2: browser: chrome wd_host: 'selenium:4444/wd/hub'
5. Run the f=
ollowing command to run the test suite: vendor/bin/behat --config <=
;rogo_root_directory>/testing/behat/config/behat.yml
We can probably set things up so that our tests will run automatically i= n the cloud on something like: https://travis-ci.com/