Taxonomies tests

From AtoM wiki
Revision as of 19:04, 4 March 2016 by Sallain (talk | contribs)

Main Page > Development > Functional testing > Taxonomies tests

Note: It is best to use subject or place terms to run these tests, except to test Display note, in which case use events

Create

User should be able to create and save a term

  • Under "Manage" in main menu bar, select "Taxonomies" from drop-down, go to "List taxonomies" screen
  • Clicking a taxonomy in taxonomy list screen opens list of terms for the taxonomy
  • Clicking Add new opens blank "Add new term" edit screen
  • Clicking Add > Terms in main menu bar opens blank "Add new term" edit screen
    • Can select a taxonomy from drop-down to which to add the new term
    • Can begin typing a taxonomy and auto-suggest will activate
    • Can enter data in all data fields available (Taxonomy and Name are mandatory)
  • If mandatory data field is left blank, and create button is selected - ICA-AtoM provides red validation warning "This is a mandatory element".
  • Clicking on Create closes edit screen and opens "View term" screen
  • All changes to created record are visible on View term screen
  • Clicking Cancel returns user to list of terms and no new term is saved

Update

User should be able to edit and save changes to a term

  • Clicking Edit opens edit screen for the term
  • Clicking the title bar opens the edit screen for the term
  • Can enter data in all fields in template
  • Can enter multiple values in multi-value fields
  • Can edit data in all fields in template
  • Clicking Save closes edit screen and opens "view term" screen
  • All changes to saved record are visible on "view term' screen
  • Clicking cancel opens the "view term" screen with no changes saved

Create relationships

User should be able to create relationships between terms

  • "Use for" relationships
    • Can enter one or more terms in Use for field
    • Saved record shows non-preferred term
    • Saved record shows UF next to non-preferred term
      • In information object edit screen, entering first 1 or more letters of preferred term narrows down the auto-complete list and reveals the preferred term
    • Can select preferred term from auto-complete list
    • In information object edit screen, entering first 1 or more letters of non-preferred term narrows down the auto-complete list
    • Non-preferred term appears with preferred term in brackets: xxxxx (use:yyyyy)
    • Saved record shows preferred term instead of non-preferred term
    • Search for preferred term results in retrieval of record with preferred term
    • Search for non-preferred term results in retrieval of record with preferred term Issue 2356
  • Broad Terms/Narrow Terms
    • Entering first 1 or more letters into Broad Term field narrows down the auto-complete list
    • Can select from Broad Term auto-complete list
    • Cannot select Narrow Term of current term as Broad Term
    • Saved record shows Broad Term as link
    • Saved record shows BT next to Broad Term link
    • Taxonomy hierarchy shows current term as child record of Broad term
    • Clicking on Broad Term link in body of view term screen opens view term screen for Broad Term
    • Broad Term show screen shows Narrow Term as link
    • Broad Term show screen shows NT next to Narrow Term link
    • Clicking on Narrow Term link in body of view term screen opens view screen for Narrow Term
    • Clicking on Broad Term link in taxonomy hierarchy treeview opens view screen for Broad Term
    • Clicking on Narrow Term link in taxonomy hierarchy treeview opens view screen for Narrow Term
    • Can enter multiple narrow terms into narrow term multi-value field
    • In view screen, narrow terms appear in alphabetical order
    • Context menu shows correct number of descendants for a Broad Term
  • Adding Related Terms
    • Entering first 1 or more letters into Related Term field narrows down the auto-complete list
    • Saved record shows Related Term as link
    • Saved record shows RT next to Related Term
    • Clicking on Related Term link opens view screen for Related Term
    • Related Term view screen shows original term as link
    • Related Term view screen shows RT next to original term

Change term name

User should be able to change the term name and retrieve accurate search results on changed name.

  • Can change term name
  • Saved record shows changed term name
  • Related Term show screens show changed term name
  • Taxonomy hierarchy shows changed term name
  • Information object show screen shows changed subject term name
  • Search on changed term name retrieves information object
  • Browse results show changed term name Issue 2359

Translate term

User should be able to translate terms from source language to another language

  • When editing a term in a language different from the source language, the original language values should appear above the appropriate fields
  • The saved term record should show all translations
  • Terms should appear in translation in auto-complete lists in information object edit screens
  • Search on translated term should retrieve results if term was added to an information object

Delete relationships

User should be able to delete relationships between Related Terms; deleting the relationship from one term should delete the relationship from the Related Term

  • Can delete a relationship
  • Neither Related Term should be deleted
  • Saved record should not show the deleted relationship
  • Show screen for formerly related term should not show the deleted relationship

Delete terms

Users should be able to delete terms without affecting associated records

  • Clicking Delete should result in a warning
  • Clicking Cancel should abort the delete process
  • Clicking Confirm should complete the delete process (close the delete screen and open the list screen for the taxonomy)
  • Deleting a Broad Term should delete all Narrow Terms
  • Deleting a preferred term should delete associated non-preferred terms
  • Deleting a term should remove it from linked information objects
  • Deleting a term should remove it from drop-down menus and auto-complete lists