I'm trying to execute the Behat test on Windows. Unfortunately the tests are not working as expected.
I've a fresh Moodle installation and I adjusted my config.php (see attachment) according to https://docs.moodle.org/dev/Running_acceptance_test
Thereafter I initialized the testing environment:
So far, so good. Everything has been executed successfully, so I started my Selenium server (standalone mode), followed by the Behat tests itself:
java -jar selenium-server-standalone-3.141.59.jar
14:03:00.058 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
14:03:00.099 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a standalone Selenium Server on port 4444
2020-01-17 14:03:00.130:INFO::main: Logging initialized @187ms to org.seleniumhq.jetty9.util.log.StdErrLog
14:03:00.259 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet
14:03:00.401 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444
vendor\bin\behat --config C:\nginx\behatdata\behatrun\behat\behat.yml --format=pretty
Given I log in as "admin" # behat_auth::i_log_in_as()
Field matching locator "Username" not found. (Behat\Mink\Exception\ElementNotFoundException)
Scenario: Agree on behalf of another user as an admin who is logged in as a manager # C:\nginx\html\moodle381\admin\tool\policy\tests\behat\acceptances.feature:233
Given I log in as "admin" # behat_hooks::i_look_for_exceptions()
And I set the following system permissions of "Manager" role: # behat_permissions::i_set_the_following_system_permissions_of_role()
| capability | permission |
| tool/policy:acceptbehalf | Allow |
Xpath matching locator "//input[@name="tool/policy:acceptbehalf" and @value="1"]" not found. (Behat\Mink\Exception\ElementNotFoundException)
See behat.log I attached for more information.
So, I'm a bit confused whether the tests are working properly or not because of the erros I get and because Behat never logs in to.
Here are the version I'm using for my test environment:
PHP Version: 7.4.1
Moodle Version: 3.8.1
Firefox Version: 72.0.1
MariaDB Version: 10.3.13
OS: Windows 10
Furthermore, is there any description for the moodle-output-format? I haven't found any documentation about that... What's the meaning of the symbols 'E', 'F', 'S', '.'?
Any help is much appreciated! Thanks in advance!