-
Functional Test
-
Minor
-
Moodle 5.0
This is an exploratory test of a new feature or improvement, so please feel free to try anything you like and not just the test steps!
Setup
- Go to "Site administration > Grades > Grade penalties > Manage penalty plugins" and enable the 'Late submission penalties' plugin
- Go to "Site administration > Grades > Grade penalties > Manage supported activities"
- Select "Assignment" in the enabled activities and save.
- Go to "Grades > Grade penalties > Late submission penalties > Penalty rules" and create some penalty rules.
Testing: Penalty implementation on an assignment
- Create a test course and enroll a student.
- Create an assignment in the course:
- Set due date to "Yesterday" / a date in the past
- Submission types: File submissions
- Make sure grade type is set to point
- Enable "Grade penalties" under "Grade" section
- Login as the student and add an submission
- Log in as an teacher to mark the submission
- Verify the grade in grade book is deducted according to the penalty rules
- Verify in the submission list the grade is original assignment grade (without penalty), the final grade (gradebook grade) is the one with penalty
Testing: Penalty recalculation
- Go to the assignment created on previous test
- Go to "Grade penalties" on Assignment navigation bar
- Change penalty rules
- Then click on "Recalculate penalties" button
- Wait or run cron job so that "recalculate_penalties" adhoc task can be run:
- Verify that the final grade of the student should be recalculated according to the new rules
Testing: Penalty indicator
- Go to the test course, ensure "edit mode" is disabled.
- Go to "Grade > Grader report" and verify that there is a red triangle icon, with a tooltip showing the penalty.
- Go to "Grade > User report" and select the testing user.
- Verify that there is a red triangle icon, with a tooltip showing the penalty
Testing: Penalty is not applied to an overridden mark
- Go to "Grade > Grader report" in the test course and turn "Editing mode" on.
- Change the grade of the testing assignment grade item
- Save changes and verify that the newly added grade is not subtracted by the set penalized amount
- Turn off "Editing mode" and verify the grade remains the same (not penalized) and the is no longer a penalty indicator
Testing the notification
- In the test course navigate to Grades > Import.
- Verify the notification "Grade penalties will not be applied to imported grades." is displayed on the various import pages.
- Disable all penalty plugins.
- Verify the notification no longer appears.
Testing Import
- Create a course, add an assignment and enrol some students.
- Grade the student.
- Grade export will include the raw mark and final mark. The final mark includes any penalties.
- Navigate to the course > Grades > Export and export the grades for the assignment as "Plain text" file.
- Delete the recent grades from the mdl_grade_grades table.
- Verify the grades are gone (Grades > Grader report and/or assignment > Submissions).
- Set the assignment due date to some point in the past and configure penalty rules if not already done.
- Import the grades,
- Map from > Email address.
- Map to > Email address.
- [assignment] (Real) > Grade items > [assignment]
- Verify the grades have been restored, and no additional penalties have been applied.
- is a clone of
-
MDLQA-20251 Late submission grade penalties exploratory testing
-
- Open
-
- is a QA test written for
-
MDL-80984 Implement generic penalties in Gradebook
-
- Closed
-
- Testing discovered
-
MDL-85110 Styling issues in the gradebook when using grade penalties
-
- Open
-