Tried to create a jMeter test plan on a fresh Moodle 3.5.11, PHP 7.0.33 (Debian 9 Stretch) and get the following error:
The selected course does not contain page module instances
More information about this error -> https://docs.moodle.org/35/en/error/tool_generator/error_nopageinstances
Error code: error_nopageinstances
line 482 of /lib/setuplib.php: moodle_exception thrown
line 265 of /admin/tool/generator/classes/testplan_backend.php: call to print_error()
line 146 of /admin/tool/generator/classes/testplan_backend.php: call to tool_generator_testplan_backend::get_course_test_data()
line 110 of /admin/tool/generator/classes/testplan_backend.php: call to tool_generator_testplan_backend::generate_test_plan()
line 53 of /admin/tool/generator/maketestplan.php: call to tool_generator_testplan_backend::create_testplan_file()
What I did was basically https://docs.moodle.org/dev/JMeter#Make_test_course.
- Created a fresh course,
- added a dummy user with standard password,
- put that password in to config.php:$CFG->tool_generator_users_password = 'standard password';
- Size of course: XS
- Target course: chosen
- Update course users password: ticked
I am sure, I've done this same exercise a couple of months ago (in a different Moodle instance).
Why does this step break?
Try first creating test course from Administration > Site administration > Development > Make a test course now you can create a jMeter test plan with this course
I Hope can help you
Hi Yamit David
Thanks for the reply! I have resolved the problem then. Only thing, I can't remember what happened, it was some time back. ;)
So the issue is RESOLVED.
P.S. It would be nice, if you could amend https://docs.moodle.org/dev/JMeter.