Developer Testing

 Confirmation of Standards Adherence

 

Activity

Date Tested

Notes

Web Style Standards and Interface Design

NA

 

Browser Standard Compliance

NA

 

Accessibility Requirements

NA

 

 

 Developer Tests and Outcomes

 Genereate the NEW state from Grouper

TestOutcome
new_state: init_stud_enrmdlfeeds_stud_enr_new is empty
new_state: init_co_enrmdlfeeds.mdlfeeds_co_enr_new is empty
new_state: init_studmdlfeeds.mdlfeeds_stu_new is empty
new_state: init_comdlfeeds.mdlfeeds_co_new is empty
new_state: set_co_new known UUNuser info added to mdlfeeds.mdlfeeds_co_new
new_state: set_co_new unknown UUNNo user info added to mdlfeeds.mdlfeeds_co_new, log table updated
new_state: set_co_new duplicate of existing UUNNo change in  mdlfeeds.mdlfeeds_co_new
new_state: set_stu_new known UUNuser info added to mdlfeeds.mdlfeeds_stu_new
new_state: set_stu_new unknown UUNNo user info added to mdlfeeds.mdlfeeds_stu_new, log table updated
new_state: set_stu_new duplicate of existing UUNNo change in  mdlfeeds.mdlfeeds_stu_new
new_state: set_stud_enr_newrow added to mdlfeeds.mdlfeeds_stud_enr_new
new_state: get_stud_enr_newmember values (if any) are correctly inserted into mdlfeeds.mdlfeeds_stud_enr_new and mdlfeeds.mdlfeeds_stu_new
new_state: load_eugex_datamdlfeeds.mdlfeeds_eugx contains the correct numer of rows with the csv fields mapped to the correct columns in the table
new_state: lookup_eugex_data normal course codereturns correct coursetitle and schoolid
new_state: lookup_eugex_data  course code with escaped '+'returns correct coursetitle and schoolid
new_state: lookup_eugex_data  course code not in EUGEX feedreturns empty coursetitle and schoolid
new_state: set_co_enr_newrow added to mdlfeeds.mdlfeeds_co_enr_new
new_state: get_co_uun_from_staff_no known staff noreturns UUN
new_state: get_co_uun_from_staff_no unknown staff noreturns empty UUN
new_state: get_co_enr_neworganiser/secretary values (if any) are correctly inserted into mdlfeeds.mdlfeeds_co_enr_new and mdlfeeds.mdlfeeds_co_new
new_state: init_courses_newmdlfeeds.mdlfeeds_crs_new is empty
new_state: set_courses_newrow added to mdlfeeds.mdlfeeds_crs_new
new_state: get_courses_newall courses (if any) in the correct LDAP cn inserted into mdlfeeds.mdlfeeds_crs_new
new_state: process_new_state_for_all_years()call all the above successfully

Generate the current state from Moodle

TestOutcome
current_state: current_courses`mdlfeeds_crs_curr` contains the courses found under 'uoe_top'
current_state: current_course_organisers`mdlfeeds_co_curr` is populated wit the  course owners enrolled in the courses in `mdlfeeds_crs_curr`
current_state: current_course_organiser_enrolments`mdlfeeds_co_enr_curr` is populated with the active enrollments in the courses in `mdlfeeds_crs_curr`
current_state:current_students`mdlfeeds_stu_curr` is populated wit the  course owners enrolled in the courses in `mdlfeeds_crs_curr`
current_state:current_student_enrolments`mdlfeeds_stud_enr_curr` is populated with the active enrollments in the courses in `mdlfeeds_crs_curr`
current_state:process_current_state

call all the above successfully

 

Generate actions

TestOutcome
action: courses_actions AddCourses that exists in New but not in Current are inserted into `mdlfeeds_crs_action` as an 'A' record
action: courses_actions DeleteCourses that exists in Current but not in New are inserted into `mdlfeeds_crs_action` as an 'D' record
action: courses_actions UpdateCourses that exists in Current and in New with different values are inserted into `mdlfeeds_crs_action` as an 'U' record
action:user_actions AddPeople that exists in New but not in Current are inserted into `mdlfeeds_usr_action` as an 'A' record
action:user_actions AddPeople that exists in Current and in New with different values are inserted into `mdlfeeds_usr_action` as an 'U' record
action:course_organiser_enrolments_actions AddEnrolments that exists in New but not in Current are inserted into `mdlfeeds_co_enr_action` as an 'A' record
action:course_organiser_enrolments_actions DeleteEnrolments that exists in Current but not in New are inserted into `mdlfeeds_co_enr_action` as an 'D' record
action:student_enrolments_actions AddEnrolments that exists in New but not in Current are inserted into `mdlfeeds_stud_enr_action` as an 'A' record
action:student_enrolments_actions DeleteEnrolments that exists in Current but not in New are inserted into `mdlfeeds_stud_enr_action` as an 'D' record
action: process_actionscall all the above successfully

Validate Actions

TestOutcome
validate: user_validations no username in mdlfeeds_usr_actionvalidated=0
validate: user_validations username in mdlfeeds_usr_action exists in Moodlevalidated=0
validate: user_validations idnumber in mdlfeeds_usr_action exists in Moodlevalidated=0
validate:course_validations 'A'dd course action that is soft deleted courseAction='U'
validate: validate_actionscall all the above successfully

Webservice calls

TestOutcome
web-service:add_course_categories'AYXXXX/ZZZZ EUCLID courses' category created under uoe_top node if it doesn't exist
web-service:add_course_categories'SU123-XXXX/ZZZZ' school category created under AY node if it doesn't exist
web-service:add_coursescourse created with the right names and in the right category
web-service:add_usersuser created with the right username, firstname,surname., email with 'shibboleth' authentication.
web-service:add_co_enrolments'courseowner role assigned to the identified user in the identfied course
web-service:remove_courses'visible' flag of the identfied course set to 0
web-service:suspend_student_enrolmentsstate of the enrolment in the role of the user in the course is set to 'suspended'
web-service:modify_courseschanges in names or visibility state of the course are applied
web-service:modify_userschanges in username, firstname,surname, email are applied
web-service:web_services_allif the number of course deletions found > configured max course deletions: exit
web-service:web_services_allif the number of course un-enrolments found > configured max un-enrolments: exit
web-service:web_services_allcall all the above successfully

Logger

TestOutcome
logger:loggeronly message with $status >= $global_log are logged
logger:is_dbreturn 1 if a databse query succeeds  0 otherwise
logger:is_ldapreturn 1 if ldap could be connected to 0 otherwise
logger:generate_db_messageThe counts corresponds with the values in the database action tables
logger: send_email errorSend email to users configured with error=1
logger: send_email !errorSend email to users configured with success=1
logger:get_isprocessingreturn the value of isprocessing in mdlfeeds.mdlfeeds_system
logger:set_isprocessing $statussets isprocessing in mdlfeeds.mdlfeeds_system to the value of $status
logger:is_maxdel_courses1 if the number of courses to be deleted >= mdlfeeds.mdlfeeds_system.maxdelcourses 0 therwise
logger:is_maxdel_enrolments1 if the number of STUDENT unenrolments to be processed >= mdlfeeds.mdlfeeds_system.maxdelenrolments 0 otherwise

 

DB stored procedures

TestOutcome
`populate_co_curr`course owner enrolled in courses in an academic year for which we are processing courses and enrolments are added to mdlfeeds_co_curr
`populate_co_enr_action`

Enrolments that exists in New but not in Current are inserted into `mdlfeeds_co_enr_action` as an 'A' record

Enrolments that exists in Current but not in New are inserted into `mdlfeeds_co_enr_action` as an 'D' record

`populate_co_enr_curr`course owners enrolments in courses in an academic year for which we are processing courses and enrolments are added to mdlfeeds_co_enr_curr
`populate_crs_action`

Courses that exists in New but not in Current are inserted into `mdlfeeds_crs_action` as an 'A' record

Courses that exists in Current but not in New are inserted into `mdlfeeds_crs_action` as an 'D' record

Courses that exists in Current and in New with different values are inserted into `mdlfeeds_crs_action` as an 'U' record

`populate_crs_curr`courses under uoe_top in acadmic years for which process courses = 1 are added to mdlfeeds.mdlfeeds_crs_curr
`populate_stu_curr`students enrolled in courses in an academic year for which we are processing courses and enrolments are added to mdlfeeds_stu_curr
`populate_stud_enr_action`

Enrolments that exists in New but not in Current are inserted into `mdlfeeds_stud_enr_action` as an 'A' record

Enrolments that exists in Current but not in New are inserted into `mdlfeeds_stud_enr_action` as an 'D' record

`populate_stud_enr_curr`student enrolments in courses in an academic year for which we are processing courses and enrolments are added to mdlfeeds_stud_enr_curr
`populate_usr_action`

People that exists in New but not in Current are inserted into `mdlfeeds_usr_action` as an 'A' record

People that exists in Current and in New with different values are inserted into `mdlfeeds_usr_action` as an 'U' record

`validate_crs_action`'A'dd course action that is soft deleted course action='U'
`validate_usr_action`

no username in mdlfeeds_usr_action validated=0

username in mdlfeeds_usr_action exists in Moodle validated=0

idnumber in mdlfeeds_usr_action exists in Moodle validated=0

 

CRON job

TestOutcome
the cron job runs successfully at the configured timesuccess