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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6
    • 2.6
    • Questions
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • MDL-41752-master
    • 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.

    Description

      API should be similar to question_response_analyser.

      question_statistics stores the stats for each question.

      Attachments

        Issue Links

          Activity

            People

              jamiesensei Jamie Pratt
              jamiesensei Jamie Pratt
              Tim Hunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Mark Nelson Mark Nelson
              Tim Hunt, Andrew Lyons, 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:
                18/Nov/13