Skip to content

Commit 351d101

Browse files
committed
MDL-41296 gradingform_rubric: Behat test for import.
1 parent 7663a86 commit 351d101

File tree

3 files changed

+229
-2
lines changed

3 files changed

+229
-2
lines changed

grade/grading/form/rubric/tests/behat/export_rubric_definition.feature

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@gradingform @gradingform_rubric @javascript @aids
1+
@gradingform @gradingform_rubric @javascript
22
Feature: Rubrics can be exported
33
In order to export a rubric
44
As a teacher
@@ -38,4 +38,3 @@ Feature: Rubrics can be exported
3838
When I click on "Export this form definition" "link"
3939
# There should be no exception thrown.
4040
Then I should see "Assignment 1 rubric Ready for use"
41-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@gradingform @gradingform_rubric @_file_upload @javascript
2+
Feature: Rubrics can be imported
3+
In order to import a rubric
4+
As a teacher
5+
I need to enable advanced grading and select a valid file
6+
7+
Scenario: I can import a rubric definition into an assignment
8+
Given the following "users" exist:
9+
| username | firstname | lastname | email |
10+
| teacher1 | Teacher | 1 | teacher1@example.com |
11+
And the following "courses" exist:
12+
| fullname | shortname | format |
13+
| Course 1 | C1 | topics |
14+
And the following "course enrolments" exist:
15+
| user | course | role |
16+
| teacher1 | C1 | editingteacher |
17+
And the following "activity" exists:
18+
| activity | assign |
19+
| course | C1 |
20+
| section | 1 |
21+
| name | Test assignment 1 name |
22+
| intro | Test assignment description |
23+
| assignfeedback_comments_enabled | 1 |
24+
| assignfeedback_editpdf_enabled | 1 |
25+
| advancedgradingmethod_submissions | rubric |
26+
When I am on the "Test assignment 1 name" "Activity" page logged in as "teacher1"
27+
And I click on "Advanced grading" "link"
28+
# Importing a rubric.
29+
And I click on "Import form definition" "link"
30+
And I upload "grade/grading/form/rubric/tests/fixtures/rubric-import.json" file to "Grading method import file" filemanager
31+
And I click on "Import file" "button"
32+
Then I should see "Performance Improvement Projects Scoring Guide Ready for use"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
{
2+
"Identifier": "c320e4f3-043a-11e7-a400-12c6ab5e124d",
3+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubric/c320e4f3-043a-11e7-a400-12c6ab5e124d",
4+
"Title": "Performance Improvement Projects Scoring Guide",
5+
"lastChangeDateTime": "2017-03-10T20:06:27Z",
6+
"CFRubricCriterion": [
7+
{
8+
"Identifier": "fbb63c02-05b3-11e7-a400-12c6ab5e124d",
9+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterion/fbb63c02-05b3-11e7-a400-12c6ab5e124d",
10+
"lastChangeDateTime": "2017-03-23T18:11:08Z",
11+
"weight": 30,
12+
"position": 1,
13+
"CFItemURI": {
14+
"fullstatement": "Articulate strategies for querying and generating reports from health information system databases",
15+
"identifier": "cec23936-4f81-11e6-9639-12c6ab5e124d",
16+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFItem/cec23936-4f81-11e6-9639-12c6ab5e124d"
17+
},
18+
"Description": "Identify a performance improvement issue\r\nwithin a health care organization that needs\r\nimprovement and provide its relevant\r\n background information",
19+
"CFRubricCriterionLevels": [
20+
{
21+
"score": "0",
22+
"Identifier": "f2439cb5-05c3-11e7-a400-12c6ab5e124d",
23+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/f2439cb5-05c3-11e7-a400-12c6ab5e124d",
24+
"lastChangeDateTime": "2017-03-10T20:11:42Z",
25+
"position": "0",
26+
"Description": "Does not identify a performance improvement issue within a health care organization that needs improvement and does not provide relevant background information."
27+
},
28+
{
29+
"score": "70",
30+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
31+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
32+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
33+
"position": "1",
34+
"Description": "Outlines a performance improvement issue within a health care organization that needs improvement and provides some relevant background information."
35+
},
36+
{
37+
"score": "85",
38+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
39+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
40+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
41+
"position": "2",
42+
"Description": "Identifies a performance improvement issue within a health care organization that needs improvement and provides its relevant background information."
43+
},
44+
{
45+
"score": "100",
46+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
47+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
48+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
49+
"position": "3",
50+
"Description": "Identifies a performance improvement issue within a health care organization that needs improvement, and provides its relevant background information and identifies criteria that could be used to evaluate the issue"
51+
}
52+
]
53+
},
54+
{
55+
"Identifier": "fbb63c02-05b3-11e7-a400-12c6ab5e124d",
56+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterion/fbb63c02-05b3-11e7-a400-12c6ab5e124d",
57+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
58+
"weight": 30,
59+
"position": 2,
60+
"CFItemURI": {
61+
"fullstatement": "Articulate strategies for querying and generating reports from health information system databases",
62+
"identifier": "cec23936-4f81-11e6-9639-12c6ab5e124d",
63+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFItem/cec23936-4f81-11e6-9639-12c6ab5e124d"
64+
},
65+
"Description": "Provide solid and relevant reasons for why a performance improvement problem is an issue worth fixing in a health care organization.",
66+
"CFRubricCriterionLevels": [
67+
{
68+
"score": "0",
69+
"Identifier": "f2439cb5-05c3-11e7-a400-12c6ab5e124d",
70+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/f2439cb5-05c3-11e7-a400-12c6ab5e124d",
71+
"lastChangeDateTime": "2017-03-10T20:11:42Z",
72+
"position": "0",
73+
"Description": "Does not provide solid and relevant reasons for why a performance improvement problem is an issue worth fixing in a health care organization."
74+
},
75+
{
76+
"score": "70",
77+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
78+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
79+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
80+
"position": "1",
81+
"Description": "Outlines some basic reasons for why a performance improvement problem is an issue worth fixing in a health care organization."
82+
},
83+
{
84+
"score": "85",
85+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
86+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
87+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
88+
"position": "2",
89+
"Description": "Provides solid and relevant reasons for why a performance improvement problem is an issue worth fixing in a health care organization."
90+
},
91+
{
92+
"score": "100",
93+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
94+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
95+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
96+
"position": "3",
97+
"Description": "Provides solid and relevant reasons for why a performance improvement problem is an issue worth fixing in a health care organization and identifies assumptions on which the analysis is based."
98+
}
99+
]
100+
},
101+
{
102+
"Identifier": "fbb63c02-05b3-11e7-a400-12c6ab5e124d",
103+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterion/fbb63c02-05b3-11e7-a400-12c6ab5e124d",
104+
"lastChangeDateTime": "2017-03-23T18:11:08Z",
105+
"weight": 30,
106+
"position": 3,
107+
"CFItemURI": {
108+
"fullstatement": "Create various data representation methods for reporting and professional communications",
109+
"identifier": "cec23936-4f81-11e6-9639-12c6ab5e124d",
110+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFItem/cec23936-4f81-11e6-9639-12c6ab5e124d"
111+
},
112+
"Description": "Use raw data and data representation method to show how data helps justify the need to fix a performance improvement issue in a health care organization",
113+
"CFRubricCriterionLevels": [
114+
{
115+
"score": "0",
116+
"Identifier": "f2439cb5-05c3-11e7-a400-12c6ab5e124d",
117+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/f2439cb5-05c3-11e7-a400-12c6ab5e124d",
118+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
119+
"position": "0",
120+
"Description": "Does not use raw data and data representation method to show how data helps justify the need to fix a performance improvement issue in a health care organization."
121+
},
122+
{
123+
"score": "70",
124+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
125+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
126+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
127+
"position": "1",
128+
"Description": "Recognizes how raw data and data representation method could show how data helps justify the need to fix a performance improvement issue in a health care organization, but does not accurately use that information."
129+
},
130+
{
131+
"score": "85",
132+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
133+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
134+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
135+
"position": "2",
136+
"Description": "Uses raw data and data representation method to show how data helps justify the need to fix a performance improvement issue in a health care organization"
137+
},
138+
{
139+
"score": "100",
140+
"Identifier": "56a24b92-61f3-4f53-a34b-d107481313a5",
141+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
142+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
143+
"position": "3",
144+
"Description": "Uses raw data and data representation method to show how data helps justify the need to fix a performance improvement issue in a health care organization and evaluates the relevance, currency, sufficiency, and trustworthiness of the evidence."
145+
}
146+
]
147+
},
148+
{
149+
"Identifier": "fbb63c02-05b3-11e7-a400-12c6ab5e124d",
150+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterion/fbb63c02-05b3-11e7-a400-12c6ab5e124d",
151+
"lastChangeDateTime": "2017-03-23T18:11:08Z",
152+
"weight": 10,
153+
"position": 4,
154+
"CFItemURI": {
155+
"fullstatement": "Communicate as a practitioner-scholar, consistent with the expectations of a nursing professional",
156+
"identifier": "cec23936-4f81-11e6-9639-12c6ab5e124d",
157+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFItem/cec23936-4f81-11e6-9639-12c6ab5e124d"
158+
},
159+
"Description": "Write clearly and logically with correct use of spelling, grammar, punctuation and mechanics\u00cd\u00be and correctly format citations using APA style",
160+
"CFRubricCriterionLevels": [
161+
{
162+
"score": "0",
163+
"Identifier": "f2439cb5-05c3-11e7-a400-12c6ab5e124d",
164+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/f2439cb5-05c3-11e7-a400-12c6ab5e124d",
165+
"lastChangeDateTime": "2017-03-10T20:11:42Z",
166+
"position": "0",
167+
"Description": "Does not write clearly and logically\u00cd\u00be writing shows little attention to spelling, grammar, punctuation, and mechanics\u00cd\u00be and does not correctly format citations using APA style"
168+
},
169+
{
170+
"score": "70",
171+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
172+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
173+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
174+
"position": "1",
175+
"Description": "Uses sentence structure that is mostly clear with a few minor spelling or grammatical errors\u00cd\u00be but fails to attribute quotes and citations in a few places, or allows some inconsistencies in APA style."
176+
},
177+
{
178+
"score": "85",
179+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
180+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
181+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
182+
"position": "2",
183+
"Description": "Writes clearly and logically with correct use of spelling, grammar, punctuation, and mechanics\u00cd\u00be and formats citations correctly using APA style."
184+
},
185+
{
186+
"score": "100",
187+
"Identifier": "5a68203f-05c4-11e7-a400-12c6ab5e124d",
188+
"URI": "http://axiom.cs.hmhco.com/ims/mrflsc/v1p0/CFRubricCriterionLevel/5a68203f-05c4-11e7-a400-12c6ab5e124d",
189+
"lastChangeDateTime": "2017-03-10T20:11:47Z",
190+
"position": "3",
191+
"Description": "Writes clearly and logically with correct use of spelling, grammar, punctuation, and mechanics with no errors\u00cd\u00be formats citations correctly using APA style\u00cd\u00be and all information is accurate and uptodate."
192+
}
193+
]
194+
}
195+
]
196+
}

0 commit comments

Comments
 (0)