I am getting an error message after upgrading from 2.9 to 3.2.3.
When I click on acceptance testing, I am getting following error:
Fatal error: Class 'Behat\Mink\Selector\ExactNamedSelector' not found in /var/www/html/moodle/lib/behat/classes/exact_named_selector.php on line 33
Please help me out to solve that
You got the Fatal error because you have not gone through the set up yet. It is at https://docs.moodle.org/dev/Running_acceptance_test#Installation
Thanks for the updates. I will follow this steps and let you know.
It seems like acceptance testing is not installed properly or not installed on our server.
That was the first reason for getting this error
Can I disable acceptance testing ?
I tried to initialize acceptance testing and still getting a same error message. Any advise would be appreciated.
When I am trying to run acceptance testing, i am getting following error:
It seems like software bug of Moodle 3.2.3 version..
I am following steps of the above documentation, and still getting an error
message while accessing the acceptance testing.
Because I didn't do any setup during Moodle 2.9 upgrade..
Do you have any video or thoroughly documentation to setup acceptance
If you have,I would be thankful to you...
I am in conclusion phase of my testing upgrade. If I will be fail to figure
out the solution of that, I gotto find another way to deal to upgrade
On May 22, 2017 12:50 PM, "Ripa Desai (via Moodle.org)" <firstname.lastname@example.org>
Sorry, I don't know of any video or other documentation on setting up and running acceptance testing. Just started working on learning about it myself four days ago as I need to come up with Behat tests for the two plugins that I maintain.
My setup and what I've done.
Completed the directions for Single run at https://docs.moodle.org/dev/Running_acceptance_test
and ran the following to get things set up on my server.
Each time I've added a file to my behat folder, I have had to use the following to get the new tests to run.
php admin/tool/behat/cli/util.php --enable
I have also figured out how to run just a single feature so I don't have to wait hours for the whole suite of test to run.
e.g. Here is what I use to run the two behat tests for the journal plugin.
php admin/tool/behat/cli/run.php --feature="/var/www/moodle3dev/moodle/mod/journal/tests/behat/add_entry.feature"
php admin/tool/behat/cli/run.php --feature="/var/www/moodle3dev/moodle/mod/journal/tests/behat/grade_entries.feature"Of course, if you try them you would need to adjust the path to that of your Moodle on your server.
I checked in my previous version and we are not using any set up for acceptance testing. Do you have any fix to get it fixed..
We have the same problem with Moodle 3.2.*. We've opened an issue in the tracker: https://tracker.moodle.org/browse/MDL-59535
It's not critical, but it's better to show information like in previous versions.
Best wishes from Barcelona!