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
Thanks
Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing
Hi Ripa,
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
Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing
Thanks for the updates. I will follow this steps and let you know.
Thanks
Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing
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 ?
Thanks
Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing
Hello,
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:
Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing
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
testing??
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
Moodle 2.9.
Thanks
On May 22, 2017 12:50 PM, "Ripa Desai (via Moodle.org)" <noreply@moodle.org>
Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing
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.
Centos 7, Apache 2.4.6, PHP 7.0.18, MySQL 5.6.36
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.
php admin/tool/behat/cli/init.php
Used phpMyAdmin to look at my Moodle database and saw that I had all the normal Moodle tables duplicated for behat with the correct bht_ prefix.
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.
Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing
Hello,
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..
Thanks
Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing
Hi!
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!
Sara