Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@gradingform @gradingform_guide
2
Feature: Publish guide as templates
3
  In order to save time to teachers
4
  As a manager
5
  I need to publish guides and make them available to all teachers
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | teacher1 | Teacher   | 1        | teacher1@example.com |
11
      | manager1 | Manager   | 1        | manager1@example.com |
12
    And the following "courses" exist:
13
      | fullname | shortname | format |
14
      | Course 1 | C1        | topics |
15
    And the following "activities" exist:
16
      | activity | course | idnumber | name                   | intro | advancedgradingmethod_submissions |
17
      | assign   | C1     | A1       | Test assignment 1 name | TA1   | guide                             |
18
      | assign   | C1     | A2       | Test assignment 2 name | TA2   | guide                             |
19
    And the following "course enrolments" exist:
20
      | user     | course | role           |
21
      | teacher1 | C1     | editingteacher |
22
    And the following "system role assigns" exist:
23
      | user     | role    | contextlevel | reference |
24
      | manager1 | manager | System       |           |
25
    And I log in as "manager1"
26
    And I am on "Course 1" course homepage
27
    And I go to "Test assignment 1 name" advanced grading definition page
28
    And I set the following fields to these values:
29
      | Name        | Assignment 1 marking guide     |
30
      | Description | Marking guide test description |
31
    And I define the following marking guide:
32
      | Criterion name    | Description for students         | Description for markers         | Maximum score |
33
      | Guide criterion A | Guide A description for students | Guide A description for markers | 40            |
34
      | Guide criterion B | Guide B description for students | Guide B description for markers | 60            |
35
    And I define the following frequently used comments:
36
      | Comment 1 |
37
    And I press "Save marking guide and make it ready"
38
    And I publish "Test assignment 1 name" grading form definition as a public template
39
    And I log out
40
 
41
  Scenario: Pick grading form from public template
42
    When I log in as "teacher1"
43
    And I am on "Course 1" course homepage
44
    And I go to "Test assignment 2 name" advanced grading page
45
    And I set "Test assignment 2 name" activity to use "Assignment 1 marking guide" grading form
46
    Then I should see "Ready for use"
47
    And I should see "Assignment 1 marking guide"
48
    And I should see "Marking guide test description"
49
    And I should see "Guide criterion A"
50
    And I should see "Guide criterion B"
51
    And I should see "Comment 1"