-
Bug
-
Resolution: Fixed
-
Major
-
2.0.10, 2.1.7, 2.2.4, 2.3.1
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE
-
The blackboard format in question/format/blackboard is broken since Moodle 2.0 because of the changes made in the files API.
This issue is different from MDL-25492 wich deals with the "Blackboard V6+" format in question/format/blackboard_six, but I understand that with so many "Blackboard" formats people are completely lost .
As the question/format/blackboard format is a lot simpler it seems logical to first tackle this one before doing the hardest one.
While I was working on it I discovered that import of matching questions was not working in all cases, so I reworked it.
So the proposed file includes :
- fixes to repair the format for all question types
- reworked import of matching questions that I think works in all cases
- coding style fixes, the codechecker still reports 15 warnings about too long lines that I didn't bother to fix (in fact I don't really know the rules to break lines !)
I have included phpunit tests of truefalse, multichoice single and multi, and matching imports. The test of matching import was really needed to see if my new code was working and if I didn't broke something, but while I was writing tests I also included questions types for wich I had sample files (truefalse and multichoice single and multi). I started from real examples files and changed the questions to standard ones.
Unfortunately I don't have sample of essay and fill in the blank questions in blackboard form, so I was not able to include them in tests. Of course I can do some "reverseengineering" of the format's code and create fake examples but that don't seems to me a very good proof that the code is working .
I also included the xml file used for the tests in question/format/blackboard/test/fixtures/ so that for instance it is possible to use this file to test import in Moodle 1.9 and see that the matching question "Classify the animals." is not imported correctly in Moodle 1.9, contrary to my reworked version.
- blocks
-
MDL-34846 Extend the Blackboard plugin to import zip files with images
- Closed
- has a non-specific relationship to
-
MDL-25492 Blackboard V6+ question import is broken
- Closed
- has been marked as being related by
-
MDL-34808 Add phpunit tests to examview import format
- Closed
- is duplicated by
-
MDL-16479 Importing matching questions using Blackboard import process does not handle multiple selections or distractors
- Closed