hello, i am running Moodle on a centos 7 server but i have problem with using behat for testing moodle.
First of all, i do not know how i can set a different behat_wwwroot then wwwroot. this is what my config.php look like :
///////////////BEHAT CFG CONFIG///////////
$CFG->behat_dataroot = '/var/www/dataroot_Behat';
$CFG->behat_prefix = 'behat_';
$CFG->behat_wwwroot = "http://localhost:8000/ena-295";
////////////////////////////////////////////////////////////////////////////////
$CFG->wwwroot = 'http://12.145.178.81/ena-295';
$CFG->dataroot = '/var/www/enatestdata';
$CFG->admin = 'admin';
//MathJax Local
$CFG->forced_plugin_settings = array('filter_mathjaxloader' =>
array('httpurl' => 'http://localhost/MathJax/MathJax.js',
'httpsurl' => 'https://localhost/MathJax/MathJax.js'),
);
$CFG->behat_extraallowedsettings = array('forced_plugin_settings');
////////////////////
$CFG->directorypermissions = 0777;
require_once(dirname(__FILE__) . '/lib/setup.php');
////////////////////////////////////////////////////////////////////////////////
I think i've tried many things but I keep getting this error - > "Behat requirement not satisfied: http://localhost:8000/ena-295 is not available, ensure you specified correct url and that the server is set up and started. More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests"
For information, i use a docker for selenium.
Sorry for my bad english and thank you for your futur help