QTI Imports Multiple Choice question as T/F if Question text contains the word "True"

Description

When importing a QTI version 1.2 compliant XML file that contains multiple choice questions, if the question text contains the word "True" in it, then the question will be imported as a True/False question. See attached Q/A file and testing guide to reproduce.

Notes:

  • Interestingly, the word "false" being present in a question's text (i.e. Question #1 of the attached Q/A file) does not seem to adversely affect the import of the question.

  • If you modify the word "true" to "correct," save, and then import, the question and its possible answers import just fine. 

Attachments

1

Activity

Andrea Schmidt March 5, 2020 at 6:48 PM

Verified on 19x: https://qa19-mysql.nightly.sakaiproject.org/, build: da9c719e using test plan

John Buckingham October 21, 2019 at 6:26 PM

Tested/Verified in Trunk using Chrome Version 77.0.3865.90 (Official Build) (64-bit).

Bernardo Garcia Vila October 18, 2019 at 7:10 AM
Edited

First of all, for the provided xml it isn't finding any exact type ("Multiple Choice") and that's why it's making special guesses. Basically I'm going to alter the order on the item extraction strategy, but only for this case*: it will check the itemIntrospect before.

That part of Samigo has more than 10 years and it's quite ugly: lots of checks agains words inside the title and the likes...

EDIT: I'm not very keen on that, though. I'd rather use the itemIntrospect everytime an exact match hasn't been found AND itemIntrospect is not the default. Only on those cases I'd go for the terrible word guesses bit. What does everyone think?

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Labels

Created October 9, 2019 at 11:53 AM
Updated March 5, 2020 at 6:49 PM
Resolved October 21, 2019 at 7:23 AM