Hello to all Behat fellow users/sufferers!
This is my 3rd attempt at using Behat on my local Windows Moodle site. First time was a few years ago and I gave up. Second attempt was last year and I finally managed to get it going.
I am trying again, scrupulously following the instructions at Running acceptance tests
but I am stumped!
Using Windows 11. PHP 8.2.13. WampServer 3.3.3. Moodle 4.3.3+ (Build: 20240215)
1.- I am getting a conflict between geckodriver and selenium-server. When I launch them one after the other, they complain that they cannot use the same port 4444. So I have launched selenium with the -port 4000 param, and it seemss to satisfy both.
It says: INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4000
and geckodriver INFO Listening on 127.0.0.1:4444
2.- I have set up everything as expected in my Moodle config.php file.
3.- When I run php admin/tool/behat/cli/init.php in my local moodle test site, it does create all the behat tables in the database, etc. and it says:
Creating Behat configuration ... done in 8.79 seconds.
Building theme CSS for boost [ltr] ... done in 9.63 seconds.
Building theme CSS for classic [ltr] ... done in 9.72 seconds.
Testing environment themes built
Acceptance tests environment enabled on http://127.0.0.1, to run the tests use:
vendor\bin\behat --config C:\wamp64\www\moodledatatest_behat\behatrun\behat\behat.yml
4.- But when I try vendor\bin\behat --config C:\wamp64\www\moodledatatest_behat\behatrun\behat\behat.yml
nothing happens! no error messages, nothing, after a couple of seconds I am getting the windows prompt back.
Any help welcome...