Credits Gadget Test Instructions

Overview

These tests verify the Credits calculation feature in the Programs form's Prerequisites/Requirements section. The Credits Gadget calculates total credits based on different rule types.

Prerequisites

  • Access to Kuali Curriculum Form Builder
  • Navigate to: Programs > Requirements page (page 5) > Graduation Requirements section
  • Ensure the form is in Preview mode (toggle at top of page)

Test Data

Courses

CourseCredits
ACC101 - Introduction to Financial Accounting3
ACC201 - Introduction to Managerial Accounting3
ACC301 - Intermediate Accounting I3
ACC302 - Intermediate Accounting II3
ACC310 - Auditing and Assurance Services3
ACC450 - Advanced Financial Reporting3
DNC201 - Introduction to Dance2

Course Sets

  • Accounting Core: Contains 7 courses totaling ~20-21 credits

Subjects

  • ACC: Accounting subject code

Test Cases

Test 1: Completed the following - courses

Rule: Completed the following: [courses] Setup: Add ACC101 (3 credits) and DNC201 (2 credits) Expected: 5 Credits Behavior: Shows sum of all selected course credits


Test 2: Completed at least # of courses - courses

Rule: Completed at least 2 of the following: [courses] Setup: Add ACC101 (3), ACC301 (3), DNC201 (2) - total 3 courses Expected: 5-6 Credits (range) Behavior: Shows credit range from minimum possible (2 lowest: 2+3=5) to maximum possible (2 highest: 3+3=6)


Test 3: Completed at least # of courses - course sets

Rule: Completed at least 3 of the following: [course sets] Setup: Add Accounting Core, set number to 3 Expected: 8-10 Credits (range) Behavior: Shows credit range based on selecting 3 courses from the course set


Test 4: Completed the following - course sets

Rule: Completed the following: [course sets] Setup: Add Accounting Core Expected: ~21 Credits Behavior: Shows sum of all credits in the course set


Test 5: Completed at least # of courses - courses (duplicate of Test 2)

Skip - same rule type as Test 2


Test 6: Completed at least # of courses - course sets (duplicate of Test 3)

Skip - same rule type as Test 3


Test 7: Completed at least # courses from - subjects

Rule: Completed at least 3 courses from: [subjects] Setup: Add ACC subject, set number to 3 Expected: 9-10 Credits (range) Behavior: Shows credit range based on selecting 3 courses from ACC subject


Test 8: Completed at least # credits from - courses

Rule: Completed at least 6 credits from the following: [courses] Setup: Add ACC101 (3), ACC301 (3), DNC201 (2), set credits to 6 Expected: 6 Credits Behavior: Shows the specified minimum credit amount


Test 9: Completed at least # credits from - course sets

Rule: Completed at least 10 credits from the following: [course sets] Setup: Add Accounting Core, set credits to 10 Expected: 10 Credits Behavior: Shows the specified minimum credit amount


Test 10: Completed at least # credits from - subjects

Rule: Completed at least 9 credits from: [subjects] Setup: Add ACC subject, set credits to 9 Expected: 9 Credits Behavior: Shows the specified minimum credit amount


Execution Steps

  1. Navigate to Programs > Requirements page
  2. Ensure form is in Preview mode
  3. In Graduation Requirements section, click + Rule
  4. Select the appropriate rule type from the RULES modal
  5. Configure the rule with the specified values
  6. Verify the Total Credits displays the expected value
  7. Click Discard to reset before the next test (switch to Design mode if needed)

Expected Behaviors Summary

Rule PatternCredit Display
"Completed the following"Sum of all selected items
"Completed at least X of Y" (courses)Range (min to max)
"Completed at least X of Y" (course sets)Range (min to max)
"Completed at least X credits from"Fixed amount (X)

Notes

  • Empty rules are automatically removed if not populated quickly
  • Toggle Design/Preview mode if Discard button is disabled
  • Credit ranges appear when the rule allows choice (e.g., "at least 2 of 3")
  • Fixed credit amounts appear when specifying minimum credits required