Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
11 efrain 1
@mod @mod_data
2
Feature: Enable activity rating according to chosen grading scale
3
  In order to have ratings appear in the course gradebook
4
  As a teacher
5
  I need to enable activity rating according to chosen grading scale
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | teacher1 | Teacher   | One      | teacher1@example.com |
11
      | student1 | Student   | One      | student1@example.com |
12
      | student2 | Student   | Two      | student2@example.com |
13
    And the following "courses" exist:
14
      | fullname | shortname |
15
      | Course 1 | C1        |
16
    And the following "course enrolments" exist:
17
      | user     | course | role           |
18
      | teacher1 | C1     | editingteacher |
19
      | student1 | C1     | student        |
20
      | student2 | C1     | student        |
21
    And the following "activities" exist:
22
      | activity | course | name          | idnumber |
23
      | data     | C1     | DB activity 1 | db1      |
24
    And the following "mod_data > fields" exist:
25
      | database | type | name     |
26
      | db1      | text | DB field |
27
 
28
  @javascript
29
  Scenario: View ratings in the course gradebook
30
    Given I am on the "DB activity 1" "data activity editing" page logged in as teacher1
31
    And I expand all fieldsets
32
    And I set the following fields to these values:
33
      | Aggregate type        | Count of ratings |
34
      | scale[modgrade_type]  | Point            |
35
      | scale[modgrade_point] | 10               |
36
    And I press "Save and display"
37
    And the following "mod_data > entries" exist:
38
      | database | user     | DB field   |
39
      | db1      | student1 | S1 entry 1 |
40
      | db1      | student1 | S1 entry 2 |
41
      | db1      | student2 | S2 entry 1 |
42
    And I am on the "DB activity 1" "data activity" page
43
    And I select "Single view" from the "jump" singleselect
44
    And I set the field "rating" to "5"
45
    And I follow "Next page"
46
    And I set the field "rating" to "7"
47
    And I follow "Next page"
48
    And I set the field "rating" to "10"
49
    When I am on the "Course 1" "grades > Grader report > View" page
50
    Then the following should exist in the "user-grades" table:
51
      | -1-         | -2-                  | -3-  |
52
      | Student One | student1@example.com | 2.00 |
53
      | Student Two | student2@example.com | 1.00 |