Skip to content

Commit

Permalink
test: [FC-0063] imscc_file fixture is extended to cover more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
myhailo-chernyshov-rg authored and ormsbee committed Jan 8, 2025
1 parent 2a5c670 commit f643393
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 6 deletions.
51 changes: 47 additions & 4 deletions tests/fixtures_data/imscc_file/resource_4_qti/assessment_qti.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<fieldentry>1</fieldentry>
</qtimetadatafield>
</qtimetadata>
<section ident="root_section">
<section ident="id747a627-25dd-4289-b850-98b134316b50">
<item ident="question_multiple_choice" title="Question">
<itemmetadata>
<qtimetadata>
Expand Down Expand Up @@ -233,6 +233,47 @@
</respcondition>
</resprocessing>
</item>
<item ident="question_fill_in_blank_with_regexp">
<itemmetadata>
<qtimetadata>
<qtimetadatafield>
<fieldlabel>cc_profile</fieldlabel>
<fieldentry>cc.fib.v0p1</fieldentry>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>cc_weighting</fieldlabel>
<fieldentry>1</fieldentry>
</qtimetadatafield>
</qtimetadata>
</itemmetadata>
<presentation>
<material>
<mattext texttype="text/html">What's the largest city in Switzerland?</mattext>
</material>
<response_str ident="32693">
<render_fib>
<response_label ident="idfe1116d-9876-4e23-8502-5ddcd5a341fc" />
</render_fib>
</response_str>
</presentation>
<resprocessing>
<outcomes>
<decvar minvalue="0" maxvalue="100" varname="SCORE" vartype="Decimal" />
</outcomes>
<respcondition>
<conditionvar>
<varsubstring respident="32693">Z[uü]rich</varsubstring>
</conditionvar>
<setvar action="Set" varname="SCORE">100</setvar>
</respcondition>
<respcondition continue="Yes">
<conditionvar>
<other />
</conditionvar>
<setvar action="Set" varname="SCORE">0</setvar>
</respcondition>
</resprocessing>
</item>
<item ident="essay_question_id" title="Question">
<itemmetadata>
<qtimetadata>
Expand Down Expand Up @@ -269,9 +310,11 @@
<itemfeedback ident="essay_solution_id">
<solution>
<solutionmaterial>
<material>
<mattext texttype="text/html">Sample Answer</mattext>
</material>
<flow_mat>
<material>
<mattext texttype="text/html">Sample Answer</mattext>
</material>
</flow_mat>
</solutionmaterial>
</solution>
</itemfeedback>
Expand Down
10 changes: 8 additions & 2 deletions tests/fixtures_data/studio_course_xml/course.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,14 @@
<textline size="12"/>
</stringresponse>
</problem>
<problem display_name="QTI" url_name="resource_4_qti">
<stringresponse answer="Z[uü]rich" type="ci regexp">
<p>What's the largest city in Switzerland?</p>
<textline size="19"/>
</stringresponse>
</problem>
<html display_name="QTI" url_name="resource_4_qti"><![CDATA[Sample Answer]]></html>
<openassessment text_response="required" prompts_type="html" display_name="QTI" url_name="essay_question_id4">
<openassessment text_response="required" prompts_type="html" display_name="QTI" url_name="essay_question_id5">
<title>Open Response Assessment</title>
<assessments>
<assessment name="staff-assessment" required="True"/>
Expand Down Expand Up @@ -102,7 +108,7 @@
<feedback_default_text>Feedback prompt default text</feedback_default_text>
</rubric>
</openassessment>
<openassessment text_response="required" prompts_type="html" display_name="QTI" url_name="essay_question_2_id5">
<openassessment text_response="required" prompts_type="html" display_name="QTI" url_name="essay_question_2_id6">
<title>Open Response Assessment</title>
<assessments>
<assessment name="staff-assessment" required="True"/>
Expand Down

0 comments on commit f643393

Please sign in to comment.