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

Wrong score calculation in lesson

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Custom score improvement.

      1. Go to a course and create a lesson activity with the following settings.
        • Appearance - Display ongoing score: yes
        • Appearance - Slideshow: yes
        • Appearance - Maximum number of answers: 4
        • Flow control - Allow student review: yes
        • Flow control - Maximum number of attempts: 3
        • Grade - Custom scoring: No
        • Grade - Re-takes allowed: Yes
      2. Click save and display.
      3. Add a question page. Don't select essay.
      4. Fill in the required question details.
      5. in the Answer 1 section check that the "Score" box is disabled.
      6. Click on the help button next to "Score". Check that the help makes sense.
      7. Have the Jump for the correct answer go to "Next page"
      8. Fill in Answer 2 with a likely incorrect answer and have the Jump go to "This page"
      9. Repeat steps 3 to 8 to create two more questions.
      10. Log is as a student and run through the lesson.
      11. Check that when answering incorrectly you return to the question again and when answering correctly you move on to the next question.
      12. Log in as a teacher or Admin.
      13. Edit the lesson settings and set Grade - Custom scoring: Yes.
      14. Edit the questions and check that the "Score" box is now enabled.
      15. Enter scores in for correct and incorrect answers.
      16. Log in as a student and run through the lesson again. Check that things run as expected.

      Lesson review

      1. As a student follow the "Review lesson" link.
      2. Keep clicking the Next page and continue buttons until you reach the end of the lesson again.
      3. Make sure that the score has not changed at all.
      Show
      Custom score improvement. Go to a course and create a lesson activity with the following settings. Appearance - Display ongoing score: yes Appearance - Slideshow: yes Appearance - Maximum number of answers: 4 Flow control - Allow student review: yes Flow control - Maximum number of attempts: 3 Grade - Custom scoring: No Grade - Re-takes allowed: Yes Click save and display. Add a question page. Don't select essay. Fill in the required question details. in the Answer 1 section check that the "Score" box is disabled. Click on the help button next to "Score". Check that the help makes sense. Have the Jump for the correct answer go to "Next page" Fill in Answer 2 with a likely incorrect answer and have the Jump go to "This page" Repeat steps 3 to 8 to create two more questions. Log is as a student and run through the lesson. Check that when answering incorrectly you return to the question again and when answering correctly you move on to the next question. Log in as a teacher or Admin. Edit the lesson settings and set Grade - Custom scoring: Yes. Edit the questions and check that the "Score" box is now enabled. Enter scores in for correct and incorrect answers. Log in as a student and run through the lesson again. Check that things run as expected. Lesson review As a student follow the "Review lesson" link. Keep clicking the Next page and continue buttons until you reach the end of the lesson again. Make sure that the score has not changed at all.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-45127-master

      Description

      While testing MDLQA-6748, it was discovered that lesson scores are not correctly calculated.
      Steps to reproduce:

      1. Backup attached lesson activity in a course
      2. Edit lesson and set grade point 100
      3. Log in as student and attempt lesson
        • 1 (You have answered 1 correctly out of 1 attempts.)
        • 2 (You have answered 2 correctly out of 2 attempts.) - This is wrong.
        • 0 (You have answered 2 correctly out of 3 attempts.)
        • Press "No, I just want to go to next question"
        • 0 (You have answered 2 correctly out of 4 attempts.)
        • Press "Yes, I'd like to try again"
        • 1 (You have answered 3 correctly out of 5 attempts.)
        • Your score is 3 (out of 6).

      In Moodle 25

      1. Step 2: Show you have given wrong answer and pressing "No..." takes you to next question without giving extra point (You have earned 1 point(s) out of 2 point(s) thus far.)
      2. Message (You have...) doesn't keep on increasing attempts, it just goes up-to 3 (Number of questions) and says (You have earned 0 point(s) out of 1 point(s) thus far.)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14