Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Question tests.

Question tests

From MoodleDocs
Revision as of 15:55, 4 March 2010 by Tim Hunt (talk | contribs) (New page: {{Work in progress}} This page lists Moodle 2.0 features in a format suitable for setting up test cases (see Jira as a Test Case Management Software). ==Question bank features== # T...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: This article is a work in progress. Please use the page comments or an appropriate moodle.org forum for any recommendations/suggestions for improvement.


This page lists Moodle 2.0 features in a format suitable for setting up test cases (see Jira as a Test Case Management Software).

Question bank features

  1. Teachers can create questions of various types. See below.
  2. Teachers can preview a question in a pop-up window by clicking the preview icon.
  3. Techers can edit the definition of an existing question.
  4. Moodle tracks who created and last modified each question, and when. This is shown at the bottom of the editing form.
  5. Questions can be deleted, but if they are in use, they are just hidden, not actually removed from the database.
  6. The list of questions can be sorted in various ways, and there are options for which questions are displayed.
  1. Questions may be organised into Question categories and subcategories, either by moving them, or by changing the category setting on the editing form.
  2. Additional categories may be created or deleted as required. If a teacher attempts to delete a category containing questions, they will be asked to specify another category to move them to.
  1. Questions may be imported in a variety of formats including a text file format and a Moodle XML format. Different import formats support different question types.
  1. Questions may be exported in four possible formats - GIFT, IMS QTI 2.0, Moodle XML or XHTML format.

For the purpose of functional testing import, I suggest we create a definitive import file of each format, containing one or more questions of each supported type, to demonstrate all options, and then attach that to the bug. Actually I suggest that we use the functionality list for question types below to create a definitive set of questions. Then export that as Moodle XML, and export specific subsets for the other formats. It is a bit harder for testing import of formats Moodle does not support.


Features that apply to all question types

Some of these features can only be tested when a question has been added to a quiz, not in the stand-alone question preview.

  1. The student can toggle the flag beside each question.
  2. The teacher can see the state of a student's flag, but cannot change it.
  3. Once a question has been finished, the teacher can manually override the grade, and add a comment.
  4. Underneath the view of the question in its current state, there is a table showing the history of states the question went through.


Features of specific question types

Calculated

Description

Essay

Matching

Multianswer

Multiple Choice

Numerical

Short answer

True-false

Missing

Suppose you install a question of a particular type, create some questions, have students attempt a quiz using those questions, then un-install the question type. Clearly it is no longer possible to use that quiz or review those questions exactly as they used to appear. However, it should still be possible to look that the quiz reports for that old quiz, and review the quiz attempts and see any questions of types that are still installed on your server. The 'missing' question types exists to make that possible.

It also serves to keep things basically working if you restore a backup file made on another server that has more question types installed.


See also