Error after upgrade from 2.9 to 3.2.3 in acceptance testing

Error after upgrade from 2.9 to 3.2.3 in acceptance testing

by Ripa Desai -
Number of replies: 8
Hello,

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
Average of ratings: -
In reply to Ripa Desai

Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

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


In reply to AL Rachels

Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing

by Ripa Desai -

Thanks for the updates. I will follow this steps and let you know.


Thanks

In reply to AL Rachels

Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing

by Ripa Desai -

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

In reply to Ripa Desai

Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing

by Ripa Desai -

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:

rerun error

In reply to Ripa Desai

Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing

by Ripa Desai -
Hello,



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>
In reply to Ripa Desai

Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

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.
In reply to AL Rachels

Re: Error after upgrade from 2.9 to 3.2.3 in acceptance testing

by Ripa Desai -

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