Test Cases for Coverage Rules

Test Cases 

WHEN 

AND 

THEN 

Case 1 

Object A covers Object B 

Object A is completed for participant X 

Object B is covered for participant X 

 

Object A is cancelled/ not completed for participant X 

Object B is uncovered for participant X 

Case 2 - Coverage by alternative components 

I add the following set of rules: 

Object A is covered by Object B or Object C (add Object B and Object C in the second category, but not as part of a set) 

 

The outcome in the manager will be that 3 entries are visible: 

Object A with the above configuration 

Object B → Covers Object A 

Object C → Covers Object A 

Object C is completed and Object B is not completed for participant X 

Object A is covered for participant X 

Object C + Object B are completed for participant X 

Object A is covered for participant X 

Object B is completed and Object C is cancelled for participant X 

Object A is covered for participant X 

Object B is cancelled and Object C is cancelled for participant X 

Object A is uncovered for participant X 

Case 3 - Coverage via a set of components 

Object A is covered by 

  • Set of components 

  • Object B 

  • Object C 

In this case, there is only one entry shown in the manager, for Object A, since the other two objects do not define rules by themselves, and only in combination with another object. 

Object B is completed and Object C is not completed for participant X 

Object A is not covered for participant X 

Object B is cancelled/uncompleted and Object C is not completed for participant X 

Object A is not covered for participant X 

Object C is completed and Object B is not completed for participant X 

Object A is not covered for participant X 

Object B is completed and Object C is completed for participant X 

Object A is covered for participant X 

Object C is cancelled and Object B is completed for participant X 

Object A is un-covered for participant X 

Case 4 - Course equivalence impact on course template 

Course A covers Course template B 

Course A is completed for participant X 

Course template B is covered. this results in the fact that all courses from Course template B (in all its versions) are also covered for participant X 

Case 5 - Template equivalence 

Course template A covers Course template B 

Course 1 from Course template A is completed for participant X 

Course template A is completed and Course template B is covered for participant X 

All courses from the Course template B and all other versions of Course template B are also covered for participant X 

Case 6 - Changing rules 

Initial setup #1: 

Course A covers Course B and Course C and Course D 

Course A is completed for participant X 

Course B, C and D are covered for participant X 

 

Course B is removed from the rule, resulting that Course A covers just Course C and Course D 

Therefore Course B is set to uncovered for participant X 

Initial setup #2: 

Course A covers Course B and Course C 

Course E is equivalent in both directions with Course C 

Course A is completed for participant X 

Course E is completed for participant X 

Course B and Course C are covered as a result from the existing rules for participant X 

 

Course C is removed from the first rule => Course A covers just Course B 

The second rule remains unchanged 

Course B and Course C are still covered as a result from the existing rules for participant X 

Case 7 - Deleting rules in the manager 

I create 2 rules: 

  1. On Course A I add in the first Category: covers Course B and Course C 

  2. I create an equivalence for Course E in the third category →  is equivalent in both directions with Course C 

 

 

In the manager we have 4 entries in this case: 

Course A → has two entries in the first category (Covers → Course B and Course C) 

Course B → one entry in the second category (Is covered by → Course A) 

Course C → has one entry in the second category and one entry in the third category (Is covered by→ Course A and Is equivalent in both ways with → Course E) 

Course E - > has one entry in the third category → equivalent in both directions with Course C 

 

Course A is completed for participant X 

Course E is completed for participant X 

Course B and Course C are covered for learner X as a result from the existing rules 

 

I delete Course A from the manager directly 

The remaining rules are: 

Course C has one entry in the third category → equivalent in both ways with Course E 

Course E has one entry in the third category → Equivalent in both ways with Course C 

The outcome is: Course C is covered, Course B is uncovered for participant X 

Case 8 - Rules with Sets of components and templates 

I create the following setup 

Course A: 

Covers (first category) 

  • Course X 

  • Course Z 

Is covered by (second category): 

  • Course D 

  • Set of components: 

  • Course B 

  • Course C 

is mutually equivalent with (third category): 

  • Course Z 

 

→ Save changes 

 

Course A is completed for participant X 

The outcome will be: 

Course X and Course Z are set to covered for participant X 

 

 

From the first category, I remove course Z and save 

Course Z is still covered for participant X, as it is present in the third category and there the equivalence also has effect. 

 

I remove course Z from the first and the third category (this means Course Z has no relation to course A anymore) 

Course Z is uncovered for participant X 

Case 9 - Users have already completed components before rules are created 

Initial situation: User completed Course A 

 

No rules are defined for Course A yet, therefore no Component is Covered based on the completon of course A 

Then a rule is created in the Equivalence manager: 

Course A covers Course B 

 

As a result of this new rule, Participant X will get Course B as covered, after the rule has been saved. (in the next minutes) 

I edit Course B and in the second category, where I can now see Course A as the only component, I remove course A and add a set of component where I add again Course A together with Course C. 

Course C is not completed by the participant 

Therefore, EQS sends to ILS the uncovered message for course B for participant X. 

Also, Course A is in this case no longer visible in the equivalence manager as it does not define by itself alone any equivalence relation, but only as part of a set together with Course C. 

 

Course C is completed for participant X 

As a result, Course B is now covered again for participant X