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_overview
2
Feature: Grades report for a quiz with multiple grade items
3
  In to get an overview of quiz attempt grade
4
  As a teacher
5
  I need the Grades report to show all grade items
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname  |
10
      | student  | Lorna     | Lott      |
11
      | teacher  | Mark      | Allwright |
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
      | student | C1     | student |
18
      | teacher | C1     | teacher |
19
    And the following "question categories" exist:
20
      | contextlevel | reference | name           |
21
      | Course       | C1        | Test questions |
22
    And the following "activities" exist:
23
      | activity | name      | course |
24
      | quiz     | Test quiz | C1     |
25
 
26
  @javascript
27
  Scenario: Quiz grades report with multiple grade items
28
    Given the following "questions" exist:
29
      | questioncategory | qtype     | name      | questiontext       |
30
      | Test questions   | truefalse | Reading   | Can you read this? |
31
      | Test questions   | truefalse | Listening | Can you hear this? |
32
    And the following "mod_quiz > grade items" exist:
33
      | quiz   | name      |
34
      | Test quiz | Reading   |
35
      | Test quiz | Listening |
36
    And quiz "Test quiz" contains the following questions:
37
      | question  | page | grade item |
38
      | Reading   | 1    | Reading    |
39
      | Listening | 1    | Listening  |
40
    And user "student" has attempted "Test quiz" with responses:
41
      | slot | response |
42
      |   1  | True     |
43
      |   2  | False    |
44
 
45
    When I am on the "Test quiz" "mod_quiz > Grades report" page logged in as teacher
46
 
47
    Then "Lorna LottReview attempt" row "Grade/100.00Sort by Grade/100.00 Ascending" column of "attempts" table should contain "50.00"
48
    And "Lorna LottReview attempt" row "Q. 1/50.00Sort by Q. 1/50.00 Ascending" column of "attempts" table should contain "0.00"
49
    And "Lorna LottReview attempt" row "Q. 2/50.00Sort by Q. 2/50.00 Ascending" column of "attempts" table should contain "0.00"
50
    And "Lorna LottReview attempt" row "Reading/1.00Sort by Reading/1.00 Ascending" column of "attempts" table should contain "1.00"
51
    And "Lorna LottReview attempt" row "Listening/1.00Sort by Listening/1.00 Ascending" column of "attempts" table should contain "0.00"
52
    And I follow "Reading/1.00Sort by Reading/1.00 Ascending"
53
    # Main thing to check here is that sorting does not give a fatal error
54
    And "Lorna LottReview attempt" row "Listening/1.00Sort by Listening/1.00 Ascending" column of "attempts" table should contain "0.00"