TNS Internal:NDR/API/2.0/implementationTestPlan

From NSDLWiki

Jump to: navigation, search

NDR API 2.0 - Test Plan

 NDR Project Documentation   Conceptual Framework   v1.0 NDR-API Index   v2.0 NDR-API Index   Model   v2.0 Features   v2.0 Status   v2.0 Test Plan 


Per API Call Testing

API Call: addCollection

Test Cases: (passing)

  • One parent collection
  • Two parent collections
  • One contact
  • Multiple contacts
  • Bare bones - include title, description, one contact ONLY

Test Cases: (exception testing)

  • Parent collection does not exist
  • Title missing
  • Description missing

API Call: getCollectionRecord/get

Test Cases: (passing)

  • Any valid existing collection record handle

Test Cases: (exception testing)

  • Collection handle does not exist
  • Invalid collection handle

API Call: modifyCollection

Test Cases: (passing)

  • Add/Modify/Delete an existing parent collection item
  • Modify title
  • Modify description
  • Add/Modify/Delete contact item(s)
  • Add/Modify/Delete resourceURL
  • Add/Modify/Delete externalIdentififier

Test Cases: (exception testing)

  • Modify/Delete non-exist parent collection item
  • Add/Delete title
  • Add/Delete description
  • Add/Modify/Delete invalid contact information
  • Add/Modify/Delete invalid resourceURL
  • Add/Modify/Delete invalid externalIdentifier

API Call: deleteCollection/delete

Test Cases: (passing)

  • Valid existing active collection handle
  • Agent has authority to delete

Test Cases: (exception testing)

  • Invalid collection handle
  • Collection handle doesn't exist
  • Collection is not active
  • Agent doesn't have authority to delete

API Call: undeleteCollection

Test Cases: (passing)

  • Valid existing collection handle
  • Agent has authority to undelete

Test Cases: (exception testing)

  • Invalid collection handle
  • Collection handle doesn't exist
  • Collection handle is not in the deleted state
  • Agent doesn't have authority to undelete

API Call: listCollectionRecords

Test Cases: (passing)

  • Any collection records (active and deleted) exist in the NDR repository
  • Any existing collections with state = deleted
  • Any existing collections with state = active

Test Cases: (exception testing)

  • Collection(s) don't exist in NDR repository

API Call: listResourceMetadata

Test Cases: (passing)

  • Collection exists with resources and metadata
  • Collections exist with resources and metadata

Test Cases: (exception testing)

  • Collection doesn't exist
  • Collections don't exist
  • Metadata don't exist for a collection
  • Resources don't exist for a collection

API Call 1.0: addResource

Test Cases: (passing)

  • Valid existing collection handle/record
  • Valid resource URL

Test Cases: (exception testing)

  • Collection doesn't exist
  • Invalid resource URL

API Call 1.0: addMetadata

Test Cases: (passing)

  • Valid existing collection handle/record
  • Valid existing resource handle
  • Valid uniqueID under properties element in the inputXML
  • Valid format under Data Stream element in the inputXML

Test Cases: (exception testing)

  • Collection handle doesn't exist
  • Resource handle doesn't exist
  • Invalid resource handle
  • Invalid uniqueID
  • Invalid format for Data Stream

Application Testing

Personal tools