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

Numerical question in lesson - decimal fractions problem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for peer review
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.7, 2.4, 2.5, 2.7.3, 2.8.1, 3.1.3, 3.2
    • Fix Version/s: None
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide

      Behat tests provided.

      Prerequisites: 

      1. Access to the lang/en/langconfig.php file to update the 'decsep' config (as i don't know of a way to change this via the Site Admin) 
      2. A new/existing course
      3. A teacher and students that have access to the same course.

      Testing instructions:

      1. Set the 'decsep' config to ","
      2. Login as a teacher
      3. Go to a course and create a new lesson with default settings and 'Allow student review' set to 'Yes'
      4. Add a new numerical question to the lesson. 
      5. Fill in the required fields. For the answer enter it as "3,67"(equates to 3.67) and save
      6. If db access is available, confirm the answer is stored as "3.67"
      7. Go to the edit - expanded tab and confirm the answer is displayed as "3,67"
      8. Edit the question from Step 4 and confirm the form is loaded with the answer showing up as "3,67"
      9. Login as a student S1
      10. Go to and start the lesson(from Step 3)
      11. Answer the question as "3,67" and submit
      12. Confirm answer is correct and displays as "3,67"
      13. Repeat 9-10 with student S2
      14. Answer the question as "3.67" and submit
      15. Confirm answer is correct and displays as "3,67"
      16. Select 'Continue' to end lesson.
      17. Select 'Review lesson' 
      18. Confirm textbox is disabled, answer is populated and matches "3,67".
      19. Login as a teacher
      20. Go to the lesson and the "Reports" tab.
      21. Click on the submission by S1
      22. Confirm the answer displayed is 3,67
      23. Set the "decsep" config to "."
      24. Repeat 9-10 with student S3
      25. Answer the question as "3,67" and submit
      26. Confirm answer is invalid and the following message appears "One or more questions have no answer given. Please go back and submit an answer"
      27. Select 'Continue' to go back to the question page
      28. Answer the question as "3.67" and submit
      29. Confirm answer is correct and displays as "3.67"
      30. Login as a teacher
      31. Go to the created lesson
      32. Go to the edit - expanded tab and confirm the answer is displayed as "3.67"
      33. Go to the "Reports" tab.
      34. Click on the submission by S1
      35. Confirm the answer displayed is 3.67
      36. Edit the question(from Step 4)
      37. Confirm the form is loaded and answer is populated as "3.67"
      Show
      Behat tests provided. Prerequisites:  Access to the lang/en/langconfig.php file to update the 'decsep' config (as i don't know of a way to change this via the Site Admin)  A new/existing course A teacher and students that have access to the same course. Testing instructions: Set the 'decsep' config to "," Login as a teacher Go to a course and create a new lesson with default settings and 'Allow student review' set to 'Yes' Add a new numerical question to the lesson.  Fill in the required fields. For the answer enter it as "3,67"(equates to 3.67) and save If db access is available, confirm the answer is stored as "3.67" Go to the edit - expanded tab and confirm the answer is displayed as "3,67" Edit the question from Step 4 and confirm the form is loaded with the answer showing up as "3,67" Login as a student S1 Go to and start the lesson(from Step 3) Answer the question as "3,67" and submit Confirm answer is correct and displays as "3,67" Repeat 9-10 with student S2 Answer the question as "3.67" and submit Confirm answer is correct and displays as "3,67" Select 'Continue' to end lesson. Select 'Review lesson'  Confirm  textbox is disabled, answer is populated and matches "3,67". Login as a teacher Go to the lesson and the "Reports" tab. Click on the submission by S1 Confirm the answer displayed is 3,67 Set the "decsep" config to "." Repeat 9-10 with student S3 Answer the question as "3,67" and submit Confirm answer is invalid and the following message appears "O ne or more questions have no answer given. Please go back and submit an answer " Select 'Continue' to go back to the question page Answer the question as "3.67" and submit Confirm answer is correct and displays as "3.67" Login as a teacher Go to the created lesson Go to the edit - expanded tab and confirm the answer is displayed as "3.67" Go to the "Reports" tab. Click on the submission by S1 Confirm the answer displayed is 3.67 Edit the question(from Step 4) Confirm the form is loaded and answer is populated as "3.67"
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull 3.6 Branch:
    • Pull Master Branch:
      MDL-40227-master

      Description

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                5 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h