-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add unit test to cover pre-condition on test part and section
- Loading branch information
1 parent
1bd8c24
commit 24c9b35
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
test/samples/custom/runtime/preconditions/preconditions_on_section_prevails_linear.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<assessmentTest xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.taotesting.com/xsd/qticompact_v2p1.xsd" | ||
identifier="preconditions" title="Preconditions"> | ||
<testPart identifier="P01" navigationMode="linear" submissionMode="individual"> | ||
<assessmentSection identifier="S01" title="Section1" visible="true"> | ||
<assessmentItemRef identifier="Q01" href="./Q01.xml" timeDependent="false"/> | ||
</assessmentSection> | ||
<assessmentSection identifier="S02" title="Section2" visible="true"> | ||
<preCondition> | ||
<baseValue baseType="boolean">false</baseValue> | ||
</preCondition> | ||
<assessmentItemRef identifier="Q02" href="./Q02.xml" timeDependent="false"/> | ||
</assessmentSection> | ||
<assessmentSection identifier="S03" title="Section3" visible="true"> | ||
<assessmentItemRef identifier="Q03" href="./Q03.xml" timeDependent="false"/> | ||
</assessmentSection> | ||
</testPart> | ||
</assessmentTest> |
24 changes: 24 additions & 0 deletions
24
test/samples/custom/runtime/preconditions/preconditions_on_test_part_prevails_linear.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<assessmentTest xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.taotesting.com/xsd/qticompact_v2p1.xsd" | ||
identifier="preconditions" title="Preconditions"> | ||
<testPart identifier="P01" navigationMode="linear" submissionMode="individual"> | ||
<assessmentSection identifier="S01" title="Section1" visible="true"> | ||
<assessmentItemRef identifier="Q01" href="./Q01.xml" timeDependent="false"/> | ||
</assessmentSection> | ||
</testPart> | ||
<testPart identifier="P02" navigationMode="linear" submissionMode="individual"> | ||
<preCondition> | ||
<baseValue baseType="boolean">false</baseValue> | ||
</preCondition> | ||
<assessmentSection identifier="S02" title="Section2" visible="true"> | ||
<assessmentItemRef identifier="Q02" href="./Q02.xml" timeDependent="false"/> | ||
</assessmentSection> | ||
</testPart> | ||
<testPart identifier="P03" navigationMode="linear" submissionMode="individual"> | ||
<assessmentSection identifier="S03" title="Section3" visible="true"> | ||
<assessmentItemRef identifier="Q03" href="./Q03.xml" timeDependent="false"/> | ||
</assessmentSection> | ||
</testPart> | ||
</assessmentTest> |