Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_quiz @quiz @quiz_statistics
2
Feature: Statistics calculations with random questions
3
  In order to verify my quizzes are performing well
4
  As a teacher
5
  I need the statistics to analyse any random questions they contain
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username |
10
      | teacher  |
11
      | student  |
12
    And the following "courses" exist:
13
      | fullname | shortname |
14
      | Course 1 | C1        |
15
    And the following "course enrolments" exist:
16
      | user    | course | role           |
17
      | teacher | C1     | editingteacher |
18
      | student | C1     | student        |
19
    And the following "question categories" exist:
20
      | contextlevel | reference | name           |
21
      | Course       | C1        | Test questions |
22
 
23
  Scenario: Statistics can be calculated for random essays
24
    Given the following "questions" exist:
25
      | questioncategory | qtype  | template | name                    | questiontext |
26
      | Test questions   | essay  | plain    | Test question 1         |              |
27
      | Test questions   | essay  | plain    | Test question 2         |              |
28
      | Test questions   | random |          | Random (Test questions) | 0            |
29
    And the following "activities" exist:
30
      | activity   | name   | course | idnumber |
31
      | quiz       | Quiz 1 | C1     | quiz1    |
32
    And quiz "Quiz 1" contains the following questions:
33
      | question                | page |
34
      | Random (Test questions) | 1    |
35
    And user "student" has attempted "Quiz 1" with responses:
36
      | slot | response                   |
37
      |   1  | Here is my wonderful essay |
38
    When I am on the "Quiz 1" "mod_quiz > Statistics report" page logged in as teacher
39
    Then I should see "No attempts have been made at this quiz, or all attempts have questions that need manual grading."
40
 
41
  Scenario: View details works for random questions
42
    Given the following "questions" exist:
43
      | questioncategory | qtype       | template    | name                    | questiontext |
44
      | Test questions   | multichoice | one_of_four | Test question 1         |              |
45
      | Test questions   | multichoice | one_of_four | Test question 2         |              |
46
      | Test questions   | random      |             | Random (Test questions) | 0            |
47
    And the following "activities" exist:
48
      | activity   | name   | course | idnumber |
49
      | quiz       | Quiz 1 | C1     | quiz1    |
50
    And quiz "Quiz 1" contains the following questions:
51
      | question                | page |
52
      | Random (Test questions) | 1    |
53
    And user "student" has attempted "Quiz 1" with responses:
54
      | slot | response |
55
      |   1  | One      |
56
    When I am on the "Quiz 1" "mod_quiz > Statistics report" page logged in as teacher
57
    And I follow "View details"
58
    Then I should see "Structural analysis for question number 1"