1441 |
ariadna |
1 |
@gradingform @gradingform_guide
|
|
|
2 |
Feature: Marking guide can handle maximum grade mismatches
|
|
|
3 |
In order to handle maximum grade mismatches
|
|
|
4 |
As a teacher
|
|
|
5 |
I should be able to set the maximum grade
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "user" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
11 |
And the following "courses" exist:
|
|
|
12 |
| fullname | shortname |
|
|
|
13 |
| Course 1 | C1 |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| teacher1 | C1 | editingteacher |
|
|
|
17 |
|
|
|
18 |
Scenario Outline: Marking guide maximum grade handling
|
|
|
19 |
Given the following "activities" exist:
|
|
|
20 |
| activity | course | name | advancedgradingmethod_submissions |
|
|
|
21 |
| assign | C1 | Assign 1 | guide |
|
|
|
22 |
And I am on the "Course 1" course page logged in as teacher1
|
|
|
23 |
And I go to "Assign 1" advanced grading definition page
|
|
|
24 |
And I set the following fields to these values:
|
|
|
25 |
| Name | Assign 1 marking guide |
|
|
|
26 |
| Description | Marking guide description |
|
|
|
27 |
And I define the following marking guide:
|
|
|
28 |
| Criterion name | Description for students | Description for markers | Maximum score |
|
|
|
29 |
| Grade Criteria 1 | Grade 1 description for students | Grade 1 description for markers | <maxscore> |
|
|
|
30 |
| Grade Criteria 2 | Grade 2 description for students | Grade 2 description for markers | 30 |
|
|
|
31 |
When I press "Save marking guide and make it ready"
|
|
|
32 |
Then I should see "Assign 1 marking guide Ready for use"
|
|
|
33 |
# Please note: We need to add the no-break space unicode character to the warning message otherwise it will fail.
|
|
|
34 |
And I should see "WARNING: Your marking guide has a maximum grade of <totalmaxscore> points but the maximum grade set in your activity is 100 The maximum score set in your marking guide will be scaled to the maximum grade in the module."
|
|
|
35 |
And I should see "Intermediate scores will be converted respectively and rounded to the nearest available grade."
|
|
|
36 |
|
|
|
37 |
Examples:
|
|
|
38 |
# <totalmaxscore> value is derived from <maxscore> + maximum score assigned to criteria 2 (30).
|
|
|
39 |
# Case 1: total > max score of 100.
|
|
|
40 |
# Case 2: total < max score of 100.
|
|
|
41 |
| maxscore | totalmaxscore |
|
|
|
42 |
| 90 | 120 |
|
|
|
43 |
| 50 | 80 |
|