Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-47180

Import of calculated questions broken in WebCT import format

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.5, 2.7.2, 2.8
    • Fix Version/s: 2.6.6, 2.7.3
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      Going to Question Bank -> Import, import the attached sample_calculated_webct.txt file selecting WebCT for file format.
      Verify that a calculated question is imported correctly without any error message or warning even with debugging message set to DEVELOPER level
      Edit the question to verify everything was correctly imported

      • name: calculated: Square area
      • question text: Find the area in m2 of a square with sides of length {l} m. Verify the exponent HTML tag in question text is correctly imported
      • answer 1 formula: {l}*{l} grade: 100% tolerance: 0 type: relative answer display:1 format: decimal
      • there are 10 datasets and last wild car {l} value is 39

      Attempt the question and verify it is working as expected

      Show
      Going to Question Bank -> Import, import the attached sample_calculated_webct.txt file selecting WebCT for file format. Verify that a calculated question is imported correctly without any error message or warning even with debugging message set to DEVELOPER level Edit the question to verify everything was correctly imported name: calculated: Square area question text: Find the area in m2 of a square with sides of length {l} m. Verify the exponent HTML tag in question text is correctly imported answer 1 formula: {l}*{l} grade: 100% tolerance: 0 type: relative answer display:1 format: decimal there are 10 datasets and last wild car {l} value is 39 Attempt the question and verify it is working as expected
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull Master Branch:

      Description

      In MDL-30001 the webct question import format was fixed for Moodle 2.0 files API and question engine 2. But I have broken the import of calculated questions in the process. Unfortunately there was no calculated question in the sample file and no test about the import of such questions, so the regression was not noticed. This issue is about correcting the problem and providing tests so that it is not broken in the future.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Nov/14