Hide
Setup
Download the smartdata.php script from https://github.com/andrewnicols/moodle-datagenerator
This will create a pseudo-realistic course category structure with sample courses, user enrolments, role assignments, and a few events.
Users are created with the password 'x'.
Enrolments are as follows:
Username |
Categories |
Courses |
adam |
2017 |
|
bert |
FST |
|
colin |
Chemistry |
|
diane |
|
CHEM101 (teacher), CHEM102 (teacher), Music Society |
emily |
|
CHEM102 (teacher) |
fred |
Physics |
|
gemma |
|
PHYS101 (teacher) |
hannah |
|
PHYS101 (teacher), PHYS102 (teacher) |
indianna |
FASS |
|
james |
History |
|
kenneth |
|
HIST100 (teacher), Music Society |
lauren |
|
HIST101 (teacher) |
mary |
Politics |
|
niamh |
|
POLI100 (teacher), Cinema |
oscar |
|
PHIL100 (teacher), Cinema |
penny |
|
CHEM100, CHEM101, Music Society (teacher) |
queenie |
|
HIST100, HIST101, POLI100, Hiking Club |
rodney |
|
PHYS101, PHYS101, CHEM101, Music Scoiety (teacher), Cinema |
sally |
|
POLI100, PHIL100, HIST100, HIST101 |
trevor |
|
CHEM101, CHEM102, PHYS101, PHYS102 |
una |
|
CHEM101, CHEM102, POLI100, Music Society, Cinema (teacher) |
victor |
|
PHYS101, PHYS102, POLI100, Hiking Club (teacher) |
william |
|
HIST100, HIST101, POLI100, PHIL100, Hiking Club |
xanthia |
|
POLI100, PHIL100, HIST100, Cinema |
yarloo |
|
POLI100, PHIL100, HIST100, Music Society |
zain |
Students Union |
|
Once this has finished, create some groups in a course.
Event visibility test
- Login as bert (manager for the FST category)
- View the Calendar
- Create a new User Event
- Confirm it is shown in your calendar
- Create a new Category Event for the 'Faculty of Science and Technology'
- Confirm it is shown in your calendar
- Open the event summary
- Confirm that you can edit and delete the event
- Confirm that you are show the full path to the category
- Create a new Category Event for the Chemistry Department
- Confirm it is shown in your calendar
- Log off
- Login as indianna (manager for the FASS category)
- View the Calendar
- Confirm that you can't see Bert's events in your calendar
- Create a new User Event
- Confirm it is shown in your calendar
- Create a new Category Event for the 'Faculty of Arts and Social Sciences'
- Confirm it is shown in your calendar
- Create a new Category Event for the History Department
- Confirm it is shown in your calendar
- Log off
- Login as bert (manager for the FST category)
- View the Calendar
- Confirm that you only see your events, and the Category events that Bert created earlier
- Log off
- Login as diane (teacher in CHEM101/102)
- View the Calendar
- Confirm that you only see your events, and the Category events that Bert created earlier
- Open the summary for each of these events
- Confirm that you do not have the edit or delete buttons
- Confirm that you are show the full path to the category
- Select CHEM101 from the course dropdown at the top-left above the calendar
- Click on a day to create a new event on that day
- Confirm that the default event type is Course
- Confirm that the default course is CHEM101
- Open CHEM101
- Create a Choice activity - make some sensible availability dates
- View the calendar
- Confirm that you can see these dates
- Log off
- Login as gemma (teacher in PHYS101)
- View the Calendar
- Confirm that you do not see the events for the Chemistry Department
- Confirm that you see the event for the Faculty Induction in September
- Confirm that you don't see the choice events
- Open the summary for one of these events
- Confirm that you are show the full path to the category
- Confirm that you do not have the edit or delete buttons
- Log off
- Login as trevor (student CHEM101/102 PHYS101/102)
- View the Calendar
- Confirm that you see all of the Chemistry/Physics activity, course, and category events created so far
- Confirm that you don't see any of the other activities for the other categories
- Attempt to create a new event
- Confirm that you cannot create any events in any category
- Log off
- Login as penny (student CHEM101/102/PHIL100/POL100, teacher Music)
- View the Calendar
- Confirm that you see all of the Chemistry/Philisophy/Politics/Music activity, course, and category events created so far
- Confirm that you don't see any of the other activities for the other categories
- Confirm that you can't edit, or delete any of the events in the courses in which you are enrolled in as a student
- Create a new course event in the Music Society
- Open the new event
- Confirm that you have the edit/delete icons and that they are functional
- Confirm that you can't edit, or delete any other
- Log off
- Login as diane (teacher in CHEM101/102, student in Music society)
- View the Calendar
- Confirm that you can see the new Music Society event
- Confirm that you cannot edit, or delete the event
UI tests
- Login as adam (2017-18 manager)
- View CHEM101 and navigate to the Chemistry Category from the breadcrumbs
- Turn Editing on
- Add the Calendar block
- Click on the month name to view the month view for the category
- Note: The course selector doesn't show categories (yet)
- Click on a day to create a new event on that day
- Confirm that the default event type is Category
- Confirm that the default category is Chemistry
- Cancel and navigate to the parent category (Faculty of Science and Technology)
- Add the Calendar block for the Faculty of Science and Technology category
- Navigate to the Faculty of Science and Technology's calendar
- Click on a day to create a new event on that day
- Confirm that the default event type is Category
- Confirm that the default category is Faculty of Science and Technology
- Log off
- Login as diane
- View the Calendar
- Use the previous/next buttons to navigate the months
- Confirm that the threemonth view updates and that only the relevant events are shown
Further tests
- Create some user, group, course, category, and site events
- Confirm you can create them
- Confirm you can edit them
- Confirm you can delete them
Additional
Run a smoke test on category calendars and see that they work as you expect
Show
Setup
Download the smartdata.php script from https://github.com/andrewnicols/moodle-datagenerator
This will create a pseudo-realistic course category structure with sample courses, user enrolments, role assignments, and a few events.
Users are created with the password ' x '.
Enrolments are as follows:
Username
Categories
Courses
adam
2017
bert
FST
colin
Chemistry
diane
CHEM101 (teacher), CHEM102 (teacher), Music Society
emily
CHEM102 (teacher)
fred
Physics
gemma
PHYS101 (teacher)
hannah
PHYS101 (teacher), PHYS102 (teacher)
indianna
FASS
james
History
kenneth
HIST100 (teacher), Music Society
lauren
HIST101 (teacher)
mary
Politics
niamh
POLI100 (teacher), Cinema
oscar
PHIL100 (teacher), Cinema
penny
CHEM100, CHEM101, Music Society (teacher)
queenie
HIST100, HIST101, POLI100, Hiking Club
rodney
PHYS101, PHYS101, CHEM101, Music Scoiety (teacher), Cinema
sally
POLI100, PHIL100, HIST100, HIST101
trevor
CHEM101, CHEM102, PHYS101, PHYS102
una
CHEM101, CHEM102, POLI100, Music Society, Cinema (teacher)
victor
PHYS101, PHYS102, POLI100, Hiking Club (teacher)
william
HIST100, HIST101, POLI100, PHIL100, Hiking Club
xanthia
POLI100, PHIL100, HIST100, Cinema
yarloo
POLI100, PHIL100, HIST100, Music Society
zain
Students Union
Once this has finished, create some groups in a course.
Event visibility test
Login as bert (manager for the FST category)
View the Calendar
Create a new User Event
Confirm it is shown in your calendar
Create a new Category Event for the 'Faculty of Science and Technology'
Confirm it is shown in your calendar
Open the event summary
Confirm that you can edit and delete the event
Confirm that you are show the full path to the category
Create a new Category Event for the Chemistry Department
Confirm it is shown in your calendar
Log off
Login as indianna (manager for the FASS category)
View the Calendar
Confirm that you can't see Bert's events in your calendar
Create a new User Event
Confirm it is shown in your calendar
Create a new Category Event for the 'Faculty of Arts and Social Sciences'
Confirm it is shown in your calendar
Create a new Category Event for the History Department
Confirm it is shown in your calendar
Log off
Login as bert (manager for the FST category)
View the Calendar
Confirm that you only see your events, and the Category events that Bert created earlier
Log off
Login as diane (teacher in CHEM101/102)
View the Calendar
Confirm that you only see your events, and the Category events that Bert created earlier
Open the summary for each of these events
Confirm that you do not have the edit or delete buttons
Confirm that you are show the full path to the category
Select CHEM101 from the course dropdown at the top-left above the calendar
Click on a day to create a new event on that day
Confirm that the default event type is Course
Confirm that the default course is CHEM101
Open CHEM101
Create a Choice activity - make some sensible availability dates
View the calendar
Confirm that you can see these dates
Log off
Login as gemma (teacher in PHYS101)
View the Calendar
Confirm that you do not see the events for the Chemistry Department
Confirm that you see the event for the Faculty Induction in September
Confirm that you don't see the choice events
Open the summary for one of these events
Confirm that you are show the full path to the category
Confirm that you do not have the edit or delete buttons
Log off
Login as trevor (student CHEM101/102 PHYS101/102)
View the Calendar
Confirm that you see all of the Chemistry/Physics activity, course, and category events created so far
Confirm that you don't see any of the other activities for the other categories
Attempt to create a new event
Confirm that you cannot create any events in any category
Log off
Login as penny (student CHEM101/102/PHIL100/POL100, teacher Music)
View the Calendar
Confirm that you see all of the Chemistry/Philisophy/Politics/Music activity, course, and category events created so far
Confirm that you don't see any of the other activities for the other categories
Confirm that you can't edit, or delete any of the events in the courses in which you are enrolled in as a student
Create a new course event in the Music Society
Open the new event
Confirm that you have the edit/delete icons and that they are functional
Confirm that you can't edit, or delete any other
Log off
Login as diane (teacher in CHEM101/102, student in Music society)
View the Calendar
Confirm that you can see the new Music Society event
Confirm that you cannot edit, or delete the event
UI tests
Login as adam (2017-18 manager)
View CHEM101 and navigate to the Chemistry Category from the breadcrumbs
Turn Editing on
Add the Calendar block
Click on the month name to view the month view for the category
Note: The course selector doesn't show categories (yet)
Click on a day to create a new event on that day
Confirm that the default event type is Category
Confirm that the default category is Chemistry
Cancel and navigate to the parent category (Faculty of Science and Technology)
Add the Calendar block for the Faculty of Science and Technology category
Navigate to the Faculty of Science and Technology's calendar
Click on a day to create a new event on that day
Confirm that the default event type is Category
Confirm that the default category is Faculty of Science and Technology
Log off
Login as diane
View the Calendar
Use the previous/next buttons to navigate the months
Confirm that the threemonth view updates and that only the relevant events are shown
Further tests
Create some user, group, course, category, and site events
Confirm you can create them
Confirm you can edit them
Confirm you can delete them
Additional
Run a smoke test on category calendars and see that they work as you expect