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

quiz_question_statistics_stats renamed to question_statistics_calculator, separate class question_statistics used to store calculated stats and api changed

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      Run the unit tests.

      Create a quiz with at least one question. View the statistics report before any attempts have been made at the quiz, check that just the table of quiz info is shown with 0 attempts shown.

      Have some students attempt the quiz. See that more statistics are then shown eg. Average grade of first attempts, etc.

      The statistics calculations themselves are checked by unit tests you can find in quiz/report/statistics/tests/.

      If you want to check the actual display of the reports then you could try the tool I created : https://github.com/jamiepratt/moodle-quiz_simulate
      See the README for installation instructions. And there is a example quiz back-up and stepdata.csv file in the mod/quiz/report/simulate/example/ directory to get you started.

      You could restore the backup and then upload the stepdata.csv to simulate attempts by students.

      Then check that the statistics report works. And that the graph displays correctly. And that when you click on the question names which are all hyperlinked you get taken to the response analysis.

      Check that the statistics report caching is working as expected by reloading the statistics report and verifying that the report shown is the same and that there is a message saying these stats were calculated a few seconds or minutes ago.

      In mod/quiz/report/simulate/example/completestats.html you can find the expected stats and responses as calculated before the changes. Please visually check for any regressions.

      Show
      Run the unit tests. Create a quiz with at least one question. View the statistics report before any attempts have been made at the quiz, check that just the table of quiz info is shown with 0 attempts shown. Have some students attempt the quiz. See that more statistics are then shown eg. Average grade of first attempts, etc. The statistics calculations themselves are checked by unit tests you can find in quiz/report/statistics/tests/. If you want to check the actual display of the reports then you could try the tool I created : https://github.com/jamiepratt/moodle-quiz_simulate See the README for installation instructions. And there is a example quiz back-up and stepdata.csv file in the mod/quiz/report/simulate/example/ directory to get you started. You could restore the backup and then upload the stepdata.csv to simulate attempts by students. Then check that the statistics report works. And that the graph displays correctly. And that when you click on the question names which are all hyperlinked you get taken to the response analysis. Check that the statistics report caching is working as expected by reloading the statistics report and verifying that the report shown is the same and that there is a message saying these stats were calculated a few seconds or minutes ago. In mod/quiz/report/simulate/example/completestats.html you can find the expected stats and responses as calculated before the changes. Please visually check for any regressions.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-41752-master

      Description

      API should be similar to question_response_analyser.

      question_statistics stores the stats for each question.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jamiesensei Jamie Pratt
              Reporter:
              jamiesensei Jamie Pratt
              Peer reviewer:
              Tim Hunt Tim Hunt
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Mark Nelson Mark Nelson
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/13