All Authority Hierarchies - QA Test Plan

On this page

Test 1: Creating a Hierarchy

  • Actions:
    1. Create a new Authority term record appropriate to your QA Test
    2. Set the Display Name to "Foo Two"
    3. Set the broader context to "Foo One" (add if necessary when prompted)
    4. Set a narrower context to "Foo Three A" (add if necessary when prompted)
    5. Add a repeatable narrower context of "Foo Three B" (add if necessary when prompted)
    6. Save
  • Expected:
    • Broader context (Foo One), Narrower contexts (Foo Three A and Foo Three B) and equivalent context (none) should be correct
  • Actions:
    1. Search for "Foo Three A", and edit that record.
    2. Set a narrower context to "Foo Four AA" (add if necessary when prompted)
    3. Add a repeatable narrower context of "Foo Four AB" (add if necessary when prompted)
    4. Save
  • Expected:
    • Check that the narrower context list (Foo Four AA and Foo Four AB), broader context (Foo Two), and equivalent context (Foo Three B) are correct
  • Actions:
    1. Try to type something in the equivalent context field
  • Expected:
    • Equivalent context field should link to "sibling" records, but not be editable
  • Actions:
    1. Add another narrower context of "Foo Four AC" (add if necessary when prompted)
    2. Save
  • Expected:
    • Check that the narrower context list (Foo Four AA, Foo Four AB, Foo Four AC), broader context (Foo Two), and equivalent context (Foo Three B) are correct
  • Actions:
    1. Search for "Foo Four AA", and open that record
  • Expected:
    • Check that broader context (Foo Three A) and equivalent context (Foo Four AB, Foo Four AC) are correct
  • Actions:
    1. Search for "Foo Three B", and open that record.
  • Expected:
    • Check that broader context (Foo Two) and equivalent context (Foo Three A) are correct.
  • Actions:
    1. Set a narrower context to "Foo Four BA" (add if necessary when prompted)
    2. Add a repeatable narrower context of "Foo Four BB" (add if necessary when prompted)
    3. Save
  • Expected:
    • Check that the narrower context list (Foo Four BA and Foo Four BB), broader context (Foo Two), and equivalent context (Foo Three A) are correct
  • Actions:
    1. Search for "Foo" via the top center search box, limiting the search to the Authority appropriate to your QA test
  • Expected:
    • Ensure the list is complete (alphabetical listing, by sorting on the ID Number column):
      • Foo Four AA
      • Foo Four AB
      • Foo Four AC
      • Foo Four BA
      • Foo Four BB
      • Foo One
      • Foo Three A
      • Foo Three B
      • Foo Two
    • Browse to several records to ensure their hierarchy is correct:
      • Foo One
        • Foo Two
          • Foo Three A
            • Foo Four AA
            • Foo Four AB
            • Foo Four AC
          • Foo Three B
            • Foo Four BA
            • Foo Four BB

Test 2: Changing a Broader Term

  • Actions:
    1. Create a new Authority term record appropriate to your QA assignment
    2. Enter any display name
    3. In the Narrower Context field enter "Foo Four BA".
  • Expected:
    • A message will appear in the bottom bar reading "Foo Four BA currently has the broader record Foo Three B. Its broader record will be changed when this record is saved."
  • Action:
    • Save the record
  • Expected:
    • After the successful save message appears, Foo Four BA should be displayed as entered
  • Actions:
    1. Hover over the term Foo Four BA and click the term link that appears under the display name
  • Expected:
    • This record should now have only a Broader Context of your most recently-created Authority term record. It should no longer be linked to any of the other "Foo ..." records you created earlier.

Test 3: Deleting a Record with Broader and Narrower Contexts

  • Actions:
    1. Search for "Foo Three A" via the top center search box, limiting the search to the Authority appropriate to your QA test
    2. Open the record
    3. Click the Delete button at the top or bottom of the screen
  • Expected:
    • A pop up will appear with a message reading, "Foo Three A cannot be deleted because it belongs to a hierarchy. To delete this record, first remove its broader and narrower records."
  • Actions:
    1. Remove the Broader context
    2. Add a narrower context
    3. Save the record
    4. Delete the record
  • Expected:
    • You should not be able to delete the record. Instead you should receive a message similar to "Foo Three A cannot be deleted because it belongs to a hierarchy. To delete this record, first remove its broader and narrower records."
  • Actions:
    1. Add a Broader context. (The record should now have both a Broader and Narrower context.)
    2. Save the record
    3. Delete the record
  • Expected:
    • You should not be able to delete the record. Instead you should receive a message similar to "Foo Three A cannot be deleted because it belongs to a hierarchy. To delete this record, first remove its broader and narrower records."
  • Actions:
    1. Remove both the narrower and the broader contexts
    2. Save the record
    3. Delete the record
  • Expected:
    • You should be able to successfully delete the record
  • Actions:
    1. Search for the record
  • Expected:
    • The record should not appear in the search results
    • Note: a search for Foo Three A may return Foo Three B, and upon clicking Foo Three B, you may still see Foo Three A as an adjacent term. Refreshing your browser should remove this reference.