Importing Quiz from QTI generated programmatically -- glitch with description and quiz_type fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2023
09:15 PM
Hi,
I have a technical question regarding QTI imports of quizzes, and I was wondering if someone familiar with Canvas imports could help me pin down the problem.
I've been testing the automatic generation of quiz material via the R {exams} package (https://r-forge.r-project.org/projects/exams/, https://www.r-exams.org/).
In short, it generates the XML and wraps it in a zip file that I can import in Canvas. It basically works, but there are two annoying glitches that I don't understand, and the package developer is also stumped.
We've made diffs of the QTI exported by Canvas and the one we're trying to import, and we've been unable to find a meaningful difference that would explain the failure to import two fields: the description of the quiz (a little blurb at the start of the page), and the quiz_type (assessment vs practice etc.).
These fields seem ignored in the import when we generate the XML via exams, but not when re-importing a QTI v1.2 previously exported from Canvas. It must be therefore a subtle difference in syntax somewhere, but it's hard to debug without knowing how Canvas imports these files internally.
Here's the content of assessment_meta.xml, if it helps:
<?xml version="1.0" encoding="UTF-8"?>
<quiz identifier="Preliminary_Maths_Skills_Assessment_652597184" xmlns="http://canvas.instructure.com/xsd/cccv1p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://canvas.instructure.com/xsd/cccv1p0 https://canvas.instructure.com/xsd/cccv1p0.xsd">
<title>Preliminary_Maths_Skills_Assessment</title>
<description>THIS DESCRIPTION LINE IS IGNORED, FOR SOME REASON</description>
<shuffle_answers>true</shuffle_answers>
<scoring_policy>keep_highest</scoring_policy>
<hide_results></hide_results>
<quiz_type>PRACTICE (ALSO IGNORED)</quiz_type>
<points_possible>2</points_possible>
<require_lockdown_browser>false</require_lockdown_browser>
<require_lockdown_browser_for_results>false</require_lockdown_browser_for_results>
<require_lockdown_browser_monitor>false</require_lockdown_browser_monitor>
<lockdown_browser_monitor_data/>
<show_correct_answers>true</show_correct_answers>
<anonymous_submissions>false</anonymous_submissions>
<could_be_locked>false</could_be_locked>
<time_limit></time_limit>
<allowed_attempts>1</allowed_attempts>
<one_question_at_a_time>false</one_question_at_a_time>
<cant_go_back>false</cant_go_back>
<available>false</available>
<one_time_results>false</one_time_results>
<show_correct_answers_last_attempt>false</show_correct_answers_last_attempt>
<only_visible_to_overrides>false</only_visible_to_overrides>
<module_locked>false</module_locked>
<assignment identifier="AID_Preliminary_Maths_Skills_Assessment_280375093">
<title>Preliminary_Maths_Skills_Assessment</title>
<due_at/>
<lock_at/>
<unlock_at/>
<module_locked>false</module_locked>
<workflow_state>unpublished</workflow_state>
<assignment_overrides>
</assignment_overrides>
<quiz_identifierref>Preliminary_Maths_Skills_Assessment_280375093</quiz_identifierref>
<allowed_extensions></allowed_extensions>
<has_group_category>false</has_group_category>
<points_possible>2</points_possible>
<grading_type>points</grading_type>
<all_day>false</all_day>
<submission_types>online_quiz</submission_types>
<position>52</position>
<turnitin_enabled>false</turnitin_enabled>
<vericite_enabled>false</vericite_enabled>
<peer_review_count>0</peer_review_count>
<peer_reviews>false</peer_reviews>
<automatic_peer_reviews>false</automatic_peer_reviews>
<anonymous_peer_reviews>false</anonymous_peer_reviews>
<grade_group_students_individually>false</grade_group_students_individually>
<freeze_on_copy>false</freeze_on_copy>
<omit_from_final_grade>false</omit_from_final_grade>
<intra_group_peer_reviews>false</intra_group_peer_reviews>
<only_visible_to_overrides>false</only_visible_to_overrides>
<post_to_sis>false</post_to_sis>
<moderated_grading>false</moderated_grading>
<grader_count>0</grader_count>
<grader_comments_visible_to_graders>true</grader_comments_visible_to_graders>
<anonymous_grading>false</anonymous_grading>
<graders_anonymous_to_graders>false</graders_anonymous_to_graders>
<grader_names_visible_to_final_grader>true</grader_names_visible_to_final_grader>
<anonymous_instructor_annotations>false</anonymous_instructor_annotations>
</assignment>
<assignment_group_identifierref>GID_Preliminary_Maths_Skills_Assessment_280375093</assignment_group_identifierref>
<assignment_overrides>
</assignment_overrides>
</quiz><br /><div>
Any idea what could be the culprit, or how to diagnose the problem further?
A copyright is a type of intellectual property that gives its owner the exclusive legal right to copy, distribute, adapt, display, and perform a creative work, usually for a limited time. The creative work may be in a literary, artistic, educational, or musical form. Copyright is intended to ...
A copyright is a type of intellectual property that gives its owner the exclusive legal right to copy, distribute, adapt, display, and perform a creative work, usually for a limited time. The creative work may be in a literary, artistic, educational, or musical form. Copyright is intended to ...