Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.9
-
MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
MDL-68241-master -
Hide
All new classes are covered by PHPunitests:
vendor/bin/phpunit -c mod/h5pactivity/
Manual Testing 1 (activity creation form)
- Create a course and a user and enrol it as student
- Activate edition in the course and create a new H5P activity. One in the form:
- Set the activity name to "H5P quiz"
- In "Package File" upload the provided H5P (file: question-set-616.h5p
)
- Expand "Grade and "Attempt" configurations
- Check that Grade "type" is set to "Point" by default
- Check that Attempts options "Enable attempt tracking" is enabled by default
- Check that Attempt grading method is set to "highest attempt" by default
- Change grade "type" to "none"
- Check that "Attempt grading method" gets disabled
- Change grade "type" to "scale"
- Check that "Attempt grading method" still disabled
- Set again grade "type" to "point"
- Check that "Attempt grading method" get enabled again
- Set "Enable attempt tracking" to No
- Check that "Attempt grading method" disappears
- Put again "Enable attempt tracking" to Yes
- Check that "Attempt grading method" appears
- Click on "Save and display"
- Check that the H5P content appears like the image
Manual Testing 2 (Point highest grading)
- Login as a student and go to the H5P activity created in the previous test.
- Access the H5P activity and do one attempt with this answers:
- Which of the berries listed below are berries you can pick in the wild? check "Halle Berry" and "Cocktail cherry"
- Drag and drop: from left to right drag the first image to "Blueberry", the second to "Redcurrant" ans the third to "Cloudberry" (like the image attached
)
- Which one of the following berries are red? select "Cranberries"
- Click on "Finish" button.
- Check that your result is 2/6 and a message "Oh, no! This didn't go so well" appears.
- Click on the "Retry" button to start a new attempt with the following answers:
- Which of the berries listed below are berries you can pick in the wild? check "Blueberry", "Strawberry", "Raspberry" and "Cloudberry".
- Drag and drop: from left to right drag the first image to "Blueberry", the second to "Redcurrant" ans the third to "Cloudberry" (the same as the image attached before)
- Which one of the following berries are red? select "Cranberries"
- Click on "Finish" button.
- Check that your result is 6/6 and a message "Congratulation! You did very well!" appears.
- Click on the "Retry" button again to start a third attempt with the following answers:
- Which of the berries listed below are berries you can pick in the wild? check "Strawberry", "Raspberry" and "Cloudberry".
- Drag and drop: from left to right drag the first image to "Blueberry", the second to "Redcurrant" ans the third to "Cloudberry" (the same as the image attached before)
- Which one of the following berries are red? select "Cranberries"
- Click on "Finish" button.
- Check that your result is 5/6 and a message "Congratulation! You did very well!" appears.
- Login as admin in the course and go to the grade book
- Check that the student grade on the activity is 100.
Manual testing 3 (change grading method)
- With the same scenario as the previous test, login as admin and go to the course where you create the H5P activity
- Acces the H5P activity and on the cog menú go to "Edit settings"
- In attempt options change the attempt grading method to "average attempt" and click on "Save and return to course"
- Go to the gradebook:
- Check that the student have a grade of 77.22
- Edit again the activity settings and change the attempt grading method to "Last attempt" and click on "Save and return to course"
- Go to the gradebook:
- Check that the student have a grade of 83.33
- Edit again the activity settings and change the attempt grading method to "First attempt" and click on "Save and return to course"
- Go to the gradebook:
- Check that the student have a grade of 33.33
- Edit again the activity settings and change the attempt grading method to "Don't calculate grade" and click on "Save and return to course"
- Go to the gradebook:
- Check that the student still have a grade of - (empty grade)
- Edit again the activity settings and change the attempt grading method to "highest attempt" and click on "Save and return to course"
- Check that the student still have a grade of 100
Manual testing 4 (regrade)
- Continuing in the course of the previous scenario edit the activity settings.
- Open Grade form:
- check that a message "Some grades have already been awarded, so the grade type cannot be changed. If you wish to change the maximum grade, you must first choose whether or not to rescale existing grades." is present
- In "Rescale existing grades" set to "Yes"
- Set "Maximum grade" to 50
- Submit the form
- Go to gradebook
- Check that the student have a grade of 50
- Go to the activity settings and now set:
- In "Rescale existing grades" set to "No"
- Set "Maximum grade" to 80
- Submit the form
- Go to the gradebook
- Check that the student still have a grade of 50 (no reagrade has been done)
- Go to the activity settings and now set:
- In "Rescale existing grades" set to "Yes"
- Set "Maximum grade" to 100
- Submit the form
- Go to the gradebook
- Check that the student still have a grade of 100
ShowAll new classes are covered by PHPunitests: vendor/bin/phpunit -c mod/h5pactivity/ Manual Testing 1 (activity creation form) Create a course and a user and enrol it as student Activate edition in the course and create a new H5P activity. One in the form: Set the activity name to "H5P quiz" In "Package File" upload the provided H5P (file: question-set-616.h5p ) Expand "Grade and "Attempt" configurations Check that Grade "type" is set to "Point" by default Check that Attempts options "Enable attempt tracking" is enabled by default Check that Attempt grading method is set to "highest attempt" by default Change grade "type" to "none" Check that "Attempt grading method" gets disabled Change grade "type" to "scale" Check that "Attempt grading method" still disabled Set again grade "type" to "point" Check that "Attempt grading method" get enabled again Set "Enable attempt tracking" to No Check that "Attempt grading method" disappears Put again "Enable attempt tracking" to Yes Check that "Attempt grading method" appears Click on "Save and display" Check that the H5P content appears like the image Manual Testing 2 (Point highest grading) Login as a student and go to the H5P activity created in the previous test. Access the H5P activity and do one attempt with this answers: Which of the berries listed below are berries you can pick in the wild? check "Halle Berry" and "Cocktail cherry" Drag and drop: from left to right drag the first image to "Blueberry", the second to "Redcurrant" ans the third to "Cloudberry" (like the image attached ) Which one of the following berries are red? select "Cranberries" Click on "Finish" button. Check that your result is 2/6 and a message "Oh, no! This didn't go so well" appears. Click on the "Retry" button to start a new attempt with the following answers: Which of the berries listed below are berries you can pick in the wild? check "Blueberry", "Strawberry", "Raspberry" and "Cloudberry". Drag and drop: from left to right drag the first image to "Blueberry", the second to "Redcurrant" ans the third to "Cloudberry" (the same as the image attached before) Which one of the following berries are red? select "Cranberries" Click on "Finish" button. Check that your result is 6/6 and a message "Congratulation! You did very well!" appears. Click on the "Retry" button again to start a third attempt with the following answers: Which of the berries listed below are berries you can pick in the wild? check "Strawberry", "Raspberry" and "Cloudberry". Drag and drop: from left to right drag the first image to "Blueberry", the second to "Redcurrant" ans the third to "Cloudberry" (the same as the image attached before) Which one of the following berries are red? select "Cranberries" Click on "Finish" button. Check that your result is 5/6 and a message "Congratulation! You did very well!" appears. Login as admin in the course and go to the grade book Check that the student grade on the activity is 100. Manual testing 3 (change grading method) With the same scenario as the previous test, login as admin and go to the course where you create the H5P activity Acces the H5P activity and on the cog menú go to "Edit settings" In attempt options change the attempt grading method to "average attempt" and click on "Save and return to course" Go to the gradebook: Check that the student have a grade of 77.22 Edit again the activity settings and change the attempt grading method to "Last attempt" and click on "Save and return to course" Go to the gradebook: Check that the student have a grade of 83.33 Edit again the activity settings and change the attempt grading method to "First attempt" and click on "Save and return to course" Go to the gradebook: Check that the student have a grade of 33.33 Edit again the activity settings and change the attempt grading method to "Don't calculate grade" and click on "Save and return to course" Go to the gradebook: Check that the student still have a grade of - (empty grade) Edit again the activity settings and change the attempt grading method to "highest attempt" and click on "Save and return to course" Check that the student still have a grade of 100 Manual testing 4 (regrade) Continuing in the course of the previous scenario edit the activity settings. Open Grade form: check that a message "Some grades have already been awarded, so the grade type cannot be changed. If you wish to change the maximum grade, you must first choose whether or not to rescale existing grades." is present In "Rescale existing grades" set to "Yes" Set "Maximum grade" to 50 Submit the form Go to gradebook Check that the student have a grade of 50 Go to the activity settings and now set: In "Rescale existing grades" set to "No" Set "Maximum grade" to 80 Submit the form Go to the gradebook Check that the student still have a grade of 50 (no reagrade has been done) Go to the activity settings and now set: In "Rescale existing grades" set to "Yes" Set "Maximum grade" to 100 Submit the form Go to the gradebook Check that the student still have a grade of 100
Description
Once the mod_h5pactivity accepts tracking information, the xAPI result in statement must be converted and stored in the gradebook.
Attachments
- question-set-616.h5p
- 2.92 MB
- Selección_052.png
- 403 kB
- Selección_055.png
- 297 kB
- attemptsoptions.png
- 54 kB
- MDL-68241 (2).jpg
- 69 kB
- MDL-68241 (3).jpg
- 35 kB
- MDL-68241.jpg
- 71 kB
Issue Links
- blocks
-
MDL-68450 New WebService mod_h5pactivity_view_h5pactivity
-
- Closed
-
-
MDL-67791 Create xAPI activity report inside mod_h5p
-
- Closed
-
-
MDL-68195 Add "require passing grade" option to H5P activity completion
-
- Closed
-
- has to be done after
-
MDL-68379 Add support for result, attachments, context to core_xapi library
-
- Closed
-
-
MDL-68381 Add duration, completion and success to H5P activity attempts
-
- Closed
-
- has to be done before
-
MDL-68397 Move static attempt methods from mod_h5pactivity to manager methods
-
- Open
-
- is blocked by
-
MDL-67788 Add xAPI statement support to mod_h5p
-
- Closed
-
(1 has to be done before, 1 is blocked by)