Community:OnRamp/documentation/design/versioning/testing

From NSDLWiki

Jump to: navigation, search

Versioning - Test Plan

Design | Discussion | Status | Testing

See Testing Discussion page for coverage analysis.

Contents

[hide]


Image:Greenck.jpg Test Passed Image:RedX.jpg Test Failed Image:Orangeqmark.jpg Question with the Test Image:Yellowbox.jpg Not Begun
Status Test and Expected Results

Test Suite: View Record

Common Setup for all tests in this section:
  1. define('APP_VIEW_VERSIONS_ROLES', "Community_Administrator,Editor,Approver");
  2. define('APP_VIEW_VERSIONS_ROLE_IDS', "6,8,2");
  3. Create a record with multiple versions.
    1. Follow steps for Test: View Record: Version-Viewer, View Version including Modified Uploads, Versioning On to create a record with multiple versions.
    2. Write down the view URL for the newly created record. It is referred to in tests as VERSION_RECORD_URL.
    3. Log out
      1. NOTE: This record can be created once and re-used for all tests.

Common Tear Down for all tests in this section:

  1. Log Out
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Non-Version-Viewer, Null Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: !canViewVersions (aka don't login)
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is not displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=
    Change your VERSION_RECORD_URL to include the parts in red.
    • Confirm: record displays the same way when ?version_date= is appended to the URL
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Non-Version-Viewer, Valid Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: !canViewVersions (aka don't login)
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is not displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=2008-06-25T15:06:25.450Z
    Change your VERSION_RECORD_URL to include the parts in red using a valid version date for the record you are viewing.
    • Confirm: record displays the same way when ?version_date=date is appended to the URL
Image:Greenck.jpgImage:Yellowbox.jpg

Test: View Record: Non-Version-Viewer, Null Date, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: !canViewVersions (aka don't login)
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is not displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=
    Change your VERSION_RECORD_URL to include the parts in red.
    • Confirm: record displays the same way when ?version_date= is appended to the URL
Image:Greenck.jpgImage:Yellowbox.jpg

Test: View Record: Non-Version-Viewer, Valid Date, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: !canViewVersions (aka don't login)
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is not displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=2008-06-25T15:06:25.450Z
    Change your VERSION_RECORD_URL to include the parts in red using a valid version date for the record you are viewing.
    • Confirm: record displays the same way when ?version_date=date is appended to the URL
Image:Yellowbox.jpgImage:Greenck.jpg

Test: View Record: Logged-in-User, Null Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: creator
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is not displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=
    Change your VERSION_RECORD_URL to include the parts in red.
    • Confirm: record displays the same way when ?version_date= is appended to the URL
Image:Yellowbox.jpgImage:Greenck.jpg

Test: View Record: Logged-in-User, Valid Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: creator
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is not displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=2008-06-25T15:06:25.450Z
    Change your VERSION_RECORD_URL to include the parts in red using a valid version date for the record you are viewing.
    • Confirm: record displays the same way when ?version_date=date is appended to the URL
Image:Greenck.jpgImage:Yellowbox.jpg

Test: View Record: Logged-in-User, Null Date, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: creator
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is not displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=
    Change your VERSION_RECORD_URL to include the parts in red.
    • Confirm: record displays the same way when ?version_date= is appended to the URL
Image:Greenck.jpgImage:Yellowbox.jpg

Test: View Record: Logged-in-User, Valid Date, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: creator
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is not displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=2008-06-25T15:06:25.450Z
    Change your VERSION_RECORD_URL to include the parts in red using a valid version date for the record you are viewing.
    • Confirm: record displays the same way when ?version_date=date is appended to the URL
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Version-Viewer, Null Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=
    Change your VERSION_RECORD_URL to include the parts in red.
    • Confirm: record displays the same way when ?version_date= is appended to the URL
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Version-Viewer, Valid Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=2008-06-25T15:06:25.450Z
    Change your VERSION_RECORD_URL to include the parts in red using a valid version date for the record you are viewing.
    • Confirm: the expected version of the record displays when ?version_date=date is appended to the URL
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Version-Viewer, Selected Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is displayed
  3. use drop list to select a version
    • Confirm: the expected version of the record displays when View Version button is clicked
Image:Greenck.jpgImage:Yellowbox.jpg

Test: View Record: Version-Viewer, Null Date, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: canViewVersions (editor user)
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is not displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=
    Change your VERSION_RECORD_URL to include the parts in red.
    • Confirm: record displays the same way when ?version_date= is appended to the URL
Image:Greenck.jpgImage:Yellowbox.jpg

Test: View Record: Version-Viewer, Valid Date, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: canViewVersions (editor user)
  2. view VERSION_RECORD_URL (from Common Setup)
    • Confirm: version droplist is not displayed
  3. VERSION_RECORD_URL is in the form: http://onramp.nsdlib.org/view/changeme:1393
    It needs to be in the form: http://onramp.nsdlib.org/view.php?pid=changeme:1393&version_date=2008-06-25T15:06:25.450Z
    Change your VERSION_RECORD_URL to include the parts in red using a valid version date for the record you are viewing.
    • Confirm: record displays the same way when ?version_date=date is appended to the URL
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Version-Viewer, View Version including Deleted Uploads, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. use a text editor to create a local file with content "Original"
  3. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: Version-Viewer, View Version including Deleted Uploads, Versioning On
    6. set Description for File Upload 1 = Upload text
    7. use browse button for File Upload 1 to locate and select the temporary text file for upload
    8. set Description for File Upload 2 = Upload image
    9. use browse button for File Upload 2 to locate and select the temporary image file for upload
    10. click the Publish button at the bottom of the page
    • Confirm: temporary text file is listed in Attached Files
    • Confirm: temporary image file is listed in Attached Files
  4. edit this record (pencil icon under workflows)
    • Confirm: Link beside temporary text file says [delete]
    • Confirm: Link beside temporary image file says [delete]
    1. select [delete] next to the temporary text file
    2. select OK from the confirmation box
    3. click the Publish button at the bottom of the page
    • Confirm: temporary text file is not listed in Attached Files
    • Confirm: temporary image file is listed in Attached Files
  5. edit this record (pencil icon under workflows)
    • Confirm: Link beside temporary image file says [delete]
    1. select [delete] next to the temporary image file
    2. select OK from the confirmation box
    3. click the Publish button at the bottom of the page
    • Confirm: temporary text file is not listed in Attached Files
    • Confirm: temporary image file is not listed in Attached Files
  6. from the version droplist, select the version 2nd from the bottom -- View Version
    • Confirm: temporary text file is not listed in Attached Files
    • Confirm: temporary image file is listed in Attached Files
  7. from the version droplist, select the version 3rd from the bottom -- View Version
    • Confirm: temporary text file is listed in Attached Files
    • Confirm: temporary image file is listed in Attached Files
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Version-Viewer, View Version including Modified Uploads, Versioning On, Text File

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. use a text editor to create a local file with content "Original"
  3. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: View Record: Version-Viewer, View Version including Modified Uploads, Versioning On, Text File
    6. set Description for File Upload 1 = Test Upload
    7. use browse button for File Upload 1 to locate and select the temporary file for upload
    8. click the Publish button at the bottom of the page
    • Confirm: temporary file is listed in Attached Files
    • Confirm: temporary file description is Test Upload
  4. use text editor to modify the temporary text file with identifying text (eg. "Mod 1")
    NOTE: Do not change the name of the file.
  5. edit the record (pencil icon under workflows)
    1. set Description for File Upload 1 = Test Upload (mod 1)
    2. use browse button for File Upload 1 to locate and select the modified temporary file for upload
      NOTE: Be sure the file is named the same as in the previous upload
    3. click the Publish button at the bottom of the page
    • Confirm: temporary file is the only file listed in Attached Files
    • Confirm: temporary file description is Test Upload (mod 1)
  6. use text editor to modify the temporary text file with identifying text (eg. "Mod 2")
    NOTE: Do not change the name of the file.
  7. edit the record (pencil icon under workflows)
    1. set Description for File Upload 1 = Test Upload (mod 2)
    2. use browse button for File Upload 1 to locate and select the modified temporary file for upload
      NOTE: Be sure the file is named the same as in the previous upload
    3. click the Publish button at the bottom of the page
    • Confirm: temporary file is the only file listed in Attached Files
    • Confirm: temporary file description is Test Upload (mod 2)
  8. click the link for the temporary file name to view the contents of the file
    • Confirm: Text Mod 2 is displayed in the window that opens.
  9. close the window showing the contents of the temporary file
  10. from the version droplist, select the version 2nd from the bottom -- View Version
  11. click the link for the temporary file name to view the contents of the file
    • Confirm: Text Mod 1 is displayed in the window that opens.
  12. close the window showing the contents of the temporary file
  13. from the version droplist, select the version 3rd from the bottom -- View Version
  14. click the link for the temporary file name to view the contents of the file
    • Confirm: Text Original is displayed in the window that opens.
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Version-Viewer, View Version including Modified Uploads, Versioning On, Image File

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true
  2. Prep image files for upload
    1. find 3 image files of the same type (ex. all .jpg files)
    2. create 3 directories named Original, Mod 1, and Mod 2
    3. put one of each of the three images in the three directories
    4. make note of which image is in each of the directories
    5. rename each image file to have the exact same name

Test:

  1. user: canViewVersions (editor user)
  2. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: View Record: Version-Viewer, View Version including Modified Uploads, Versioning On, Image File
    6. set Description for File Upload 1 = Test Upload
    7. use browse button for File Upload 1 to locate and select the image in directory Original
    8. click the Publish button at the bottom of the page
    • Confirm: image file is listed in Attached Files
    • Confirm: image file description is Test Upload
  3. edit the record (pencil icon under workflows)
    1. set Description for File Upload 1 = Test Upload (mod 1)
    2. use browse button for File Upload 1 to locate and select the image in directory Mod 1
      NOTE: Be sure the file is named the same as in the previous upload
    3. click the Publish button at the bottom of the page
    • Confirm: image file is the only file listed in Attached Files
    • Confirm: image file description is Test Upload (mod 1)
  4. edit the record (pencil icon under workflows)
    1. set Description for File Upload 1 = Test Upload (mod 2)
    2. use browse button for File Upload 1 to locate and select the image in directory Mod 2
      NOTE: Be sure the file is named the same as in the previous upload
    3. click the Publish button at the bottom of the page
    • Confirm: image file is the only file listed in Attached Files
    • Confirm: image file description is Test Upload (mod 2)
  5. click the link for the image file name to view the image
    • Confirm: Image that opens in the new window is the one stored in directory Mod 2.
  6. close the window showing the image
  7. from the version droplist, select the version 2nd from the bottom -- View Version
  8. click the link for the image file name to view the image
    • Confirm: Image that opens in the new window is the one stored in directory Mod 1.
  9. close the window showing the image
  10. from the version droplist, select the version 3rd from the bottom -- View Version
  11. click the link for the image file name to view the image
    • Confirm: Image that opens in the new window is the one stored in directory Original.
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Version-Viewer, View Version including Deleted Links, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: View Record: Version-Viewer, View Version including Deleted Links, Versioning On
    6. set Description for Link 1 = Test Link
    7. set URL 1 = http://www.google.com
    8. click the Publish button at the bottom of the page
    • Confirm: google link with description Test Link is listed in Related Links
  3. edit the record (pencil icon under workflows)
    1. clear the Description for Link 1
    2. click the Publish button at the bottom of the page
    • Confirm: google link with description Link is listed in Related Links
    • Confirm: google link with description Test Link is not listed in Related Links
  4. edit the record (pencil icon under workflows)
    1. clear the URL 1 field
    2. click the Publish button at the bottom of the page
    • Confirm: google link with description Link is not listed in Related Links
    • Confirm: google link with description Test Link is not listed in Related Links
  5. from the version droplist, select the version 2nd from the bottom -- View Version
    • Confirm: google link with description Link is listed in Related Links
    • Confirm: google link with description Test Link is not listed in Related Links
  6. from the version droplist, select the version 3rd from the bottom -- View Version
    • Confirm: google link with description Link is not listed in Related Links
    • Confirm: google link with description Test Link is listed in Related Links
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Version-Viewer, View Version including Modified Links, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: View Record: Version-Viewer, View Version including Modified Links, Versioning On
    6. set Description for Link 1 = Google
    7. set URL 1 = http://www.google.com
    8. set Description for Link 2 = NSDL
    9. set URL 2 = http://nsdl.org
    10. click the Publish button at the bottom of the page
    • Confirm: google is listed in Related Links
    • Confirm: google link description is Google
    • Confirm: nsdl is listed in Related Links
    • Confirm: nsdl link description is NSDL
  3. edit the record (pencil icon under workflows)
    1. change URL 1 = http://www.google.com/ig?hl=en
    2. click the Publish button at the bottom of the page
    • Confirm: iGoogle is listed in Related Links
    • Confirm: iGoogle link description is Google
    • Confirm: nsdl is listed in Related Links
    • Confirm: nsdl link description is NSDL
  4. edit the record (pencil icon under workflows)
    1. change Description for Link 1 = iGoogle
    2. click the Publish button at the bottom of the page
    • Confirm: iGoogle is listed in Related Links
    • Confirm: iGoogle link description is iGoogle
    • Confirm: nsdl is listed in Related Links
    • Confirm: nsdl link description is NSDL
  5. from the version droplist, select the version 2nd from the bottom -- View Version
    • Confirm: iGoogle is listed in Related Links
    • Confirm: iGoogle link description is Google
    • Confirm: nsdl is listed in Related Links
    • Confirm: nsdl link description is NSDL
  6. from the version droplist, select the version 3rd from the bottom -- View Version
    • Confirm: Google is listed in Related Links
    • Confirm: iGoogle link description is Google
    • Confirm: nsdl is listed in Related Links
    • Confirm: nsdl link description is NSDL
Image:Greenck.jpgImage:Yellowbox.jpg

Test: View Record: Version-Viewer, View Version including Deleted Uploads, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: canViewVersions (editor user)
  2. use a text editor to create a local file with content "Original"
  3. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: View Record: Version-Viewer, View Version including Deleted Uploads, Versioning Off
    6. set Description for File Upload 1 = Test Upload
    7. use browse button for File Upload 1 to locate and select the temporary file for upload
    8. click the Publish button at the bottom of the page
    • Confirm: Version droplist is not visible
    • Confirm: temporary file is listed in Attached Files
  4. edit this record (pencil icon under workflows)
    • Confirm: Link beside temporary file says [purge]
    1. select [purge] next to the tempoaray file
    2. select OK from the confirmation box
    3. click the Publish button at the bottom of the page
    • Confirm: Version droplist is not visible
    • Confirm: temporary file is not listed in Attached Files
Image:Greenck.jpgImage:Yellowbox.jpg

Test: View Record: Version-Viewer, View Version including Modified Uploads, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: canViewVersions (editor user)
  2. use a text editor to create a local file with content "Original"
  3. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: View Record: Version-Viewer, View Version including Modified Uploads, Versioning Off
    6. set Description for File Upload 1 = Test Upload
    7. use browse button for File Upload 1 to locate and select the temporary file for upload
    8. click the Publish button at the bottom of the page
    • Confirm: Version droplist is not visible
    • Confirm: temporary file is listed in Attached Files
    • Confirm: temporary file description is Test Upload
  4. use text editor to modify the temporary text file with identifying text (eg. "Mod 1")
    NOTE: Do not change the name of the file.
  5. click the link for the temporary file name to view the contents of the file
    • Confirm: Text Original is displayed in the window that opens.
  6. close the window showing the contents of the temporary file
  7. edit the record (pencil icon under workflows)
    1. set Description for File Upload 1 = Test Upload (mod 1)
    2. use browse button for File Upload 1 to locate and select the modified temporary file for upload
      NOTE: Be sure the file is named the same as in the previous upload
    3. click the Publish button at the bottom of the page
    • Confirm: Version droplist is not visible
    • Confirm: temporary file is the only file listed in Attached Files
    • Confirm: temporary file description is Test Upload (mod 1)
  8. use text editor to modify the temporary text file with identifying text (eg. "Mod 2")
    NOTE: Do not change the name of the file.
  9. click the link for the temporary file name to view the contents of the file
    • Confirm: Text Mod 1 is displayed in the window that opens.
  10. close the window showing the contents of the temporary file
  11. edit the record (pencil icon under workflows)
    1. set Description for File Upload 1 = Test Upload (mod 2)
    2. use browse button for File Upload 1 to locate and select the modified temporary file for upload
      NOTE: Be sure the file is named the same as in the previous upload
    3. click the Publish button at the bottom of the page
    • Confirm: Version droplist is not visible
    • Confirm: temporary file is the only file listed in Attached Files
    • Confirm: temporary file description is Test Upload (mod 2)
  12. click the link for the temporary file name to view the contents of the file
    • Confirm: Text Mod 2 is displayed in the window that opens.
  13. close the window showing the contents of the temporary file
Image:Greenck.jpgImage:Yellowbox.jpg

Test: View Record: Version-Viewer, View Version including Deleted Links, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: canViewVersions (editor user)
  2. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: View Record: Version-Viewer, View Version including Deleted Links, Versioning Off
    6. set Description for Link 1 = Test Link
    7. set URL 1 = http://www.google.com
    8. click the Publish button at the bottom of the page
    • Confirm: Version droplist is not visible
    • Confirm: google link is listed in Related Links
  3. edit the record (pencil icon under workflows)
    1. clear the URL 1 field
    2. clear the Description for Link 1
    3. click the Publish button at the bottom of the page
    • Confirm: Version droplist is not visible
    • Confirm: google link is not listed in Related Links
Image:Greenck.jpgImage:Yellowbox.jpg

Test: View Record: Version-Viewer, View Version including Modified Links, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: canViewVersions (editor user)
  2. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: View Record: Version-Viewer, View Version including Modified Links, Versioning Off
    6. set Description for Link 1 = Google
    7. set URL 1 = http://www.google.com
    8. set Description for Link 2 = NSDL
    9. set URL 2 = http://nsdl.org
    10. click the Publish button at the bottom of the page
    • Confirm: Version droplist is not visible
    • Confirm: google is listed in Related Links
    • Confirm: google link description is Google
    • Confirm: nsdl is listed in Related Links
    • Confirm: nsdl link description is NSDL
  3. edit the record (pencil icon under workflows)
    1. change URL 1 = http://www.google.com/ig?hl=en
    2. click the Publish button at the bottom of the page
    • Confirm: Version droplist is not visible
    • Confirm: iGoogle is listed in Related Links
    • Confirm: iGoogle link description is Google
    • Confirm: nsdl is listed in Related Links
    • Confirm: nsdl link description is NSDL
  4. edit the record (pencil icon under workflows)
    1. change Description for Link 1 = iGoogle
    2. click the Publish button at the bottom of the page
    • Confirm: Version droplist is not visible
    • Confirm: iGoogle is listed in Related Links
    • Confirm: iGoogle link description is iGoogle
    • Confirm: nsdl is listed in Related Links
    • Confirm: nsdl link description is NSDL
Image:RedX.jpgImage:Greenck.jpg

Test: View Record: Visual Differences between Viewing a Version and Viewing Current

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: View Record: Visual Differences between Viewing a Version and Viewing Current
    6. set Description for Link 1 = Google
    7. set URL 1 = http://www.google.com
    8. click the Publish button at the bottom of the page
    • Confirm: Info box background is white
    • Confirm: 'Viewing Version:' is not displayed in the info box
    • Confirm: 'Cannot Modify' is not displayed in the info box
    • Confirm: 'Workflows:' is displayed in the info box
    • Confirm: Versions section is displayed at the bottom of the record with Version droplist and a Filter Type droplist.
  3. edit the record (pencil icon under workflows)
    1. change URL 1 = http://www.google.com/ig?hl=en
    2. click the Publish button at the bottom of the page
  4. from the version droplist, select the version 2nd from the bottom -- View Version
    • Confirm: Info box background is light yellow
    • Image:RedX.jpg Confirm: Date displayed in version droplist is exactly the same as the date displayed beside 'Viewing Version:' in the info box
    • Confirm: 'Cannot Modify' is displayed in the info box
    • Confirm: 'Workflows:' is not displayed in the info box OR Revert is the only workflow displayed
    • Confirm: Versions section is displayed at the bottom of the record with Version droplist and a Filter Type droplist.
Image:Greenck.jpgImage:Greenck.jpg

Test: View Record: Edit 'X' Datastream

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test: Edit 'X' Datastream
    6. click the Publish button at the bottom of the page
    • Confirm: Title is Test: Edit 'X' Datastream
  3. edit the record (pencil icon under workflows)
    1. change Title = Test: Edit 'X' Datastream (modified)
    2. click the Publish button at the bottom of the page
    • Confirm: Title is Test: Edit 'X' Datastream (modified)
  4. from the version droplist, select the version 2nd from the bottom -- View Version
    • Confirm: Title is Test: Edit 'X' Datastream

Test Suite: EServ Content

Common Setup for all tests in this section:
  1. define('APP_VIEW_VERSIONS_ROLES', "Community_Administrator,Editor,Approver");
  2. define('APP_VIEW_VERSIONS_ROLE_IDS', "6,8,2");
  3. Create a record with multiple versions of a text file.
    1. Follow steps for Test: View Record: Version-Viewer, View Version including Modified Uploads, Versioning On, Text File to create a record with multiple versions.
    2. While viewing the latest version, click the link next to the temporary uploaded file and write down the eserv URL. It is referred to in tests as CURRENT_TEXT_VERSION_ESERV_URL.
    3. While viewing the oldest version (3rd from bottom), click the link next to the temporary uploaded file and write down the eserv URL. It is referred to in tests as OLDER_TEXT_VERSION_ESERV_URL.
    4. Log out
      1. NOTE: This record can be created once and re-used for all tests.
  4. Create a record with multiple versions of an image file.
    1. Follow steps for Test: View Record: Version-Viewer, View Version including Modified Uploads, Versioning On, Image File to create a record with multiple versions.
    2. While viewing the latest version, click the link next to the image uploaded file and write down the eserv URL. It is referred to in tests as CURRENT_IMAGE_VERSION_ESERV_URL.
    3. While viewing the oldest version (3rd from bottom), click the link next to the image uploaded file and write down the eserv URL. It is referred to in tests as OLDER_IMAGE_VERSION_ESERV_URL.
    4. Log out
      1. NOTE: This record can be created once and re-used for all tests.

Common Tear Down for all tests in this section:

  1. Log Out
Image:Greenck.jpgImage:Greenck.jpg

Test: EServ Content: Non-Version-Viewer, Null Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: !canViewVersions (aka don't login)
  2. paste CURRENT_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with text Mod 2 displayed
  3. append to CURRENT_TEXT_VERSION_ESERV_URL ?version_date=
    • Confirm: File displays with text Mod 2 displayed
Image:Greenck.jpgImage:Greenck.jpg

Test: EServ Content: Non-Version-Viewer, Valid Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: !canViewVersions (aka don't login)
  2. paste CURRENT_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with text Mod 2 displayed
  3. paste OLDER_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: Message "Sorry, but you do not have the required permission level to access this screen" is displayed.
Image:Greenck.jpgImage:Yellowbox.jpg

Test: EServ Content: Non-Version-Viewer, Null Date, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: !canViewVersions (aka don't login)
  2. paste CURRENT_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with text Mod 2 displayed
  3. append to CURRENT_TEXT_VERSION_ESERV_URL ?version_date=
    • Confirm: File displays with text Mod 2 displayed
Image:Greenck.jpgImage:Yellowbox.jpg

Test: EServ Content: Non-Version-Viewer, Valid Date, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: !canViewVersions (aka don't login)
  2. paste CURRENT_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with text Mod 2 displayed
  3. paste OLDER_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: Message "Sorry, but you do not have the required permission level to access this screen" is displayed.


Image:Greenck.jpgImage:Greenck.jpg

Test: EServ Content: Version-Viewer, Null Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. paste CURRENT_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with text Mod 2 displayed
  3. append to CURRENT_TEXT_VERSION_ESERV_URL ?version_date=
    • Confirm: File displays with text Mod 2 displayed
Image:Greenck.jpgImage:Greenck.jpg

Test: EServ Content: Version-Viewer, Valid Date, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. paste CURRENT_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with text Mod 2 displayed
  3. paste OLDER_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with text Original displayed
Image:Greenck.jpgImage:Yellowbox.jpg

Test: EServ Content: Version-Viewer, Null Date, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: canViewVersions (editor user)
  2. paste CURRENT_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with text Mod 2 displayed
  3. append to CURRENT_TEXT_VERSION_ESERV_URL ?version_date=
    • Confirm: File displays with text Mod 2 displayed
Image:Greenck.jpgImage:Yellowbox.jpg

Test: EServ Content: Version-Viewer, Valid Date, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: canViewVersions (editor user)
  2. paste CURRENT_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with text Mod 2 displayed
  3. paste OLDER_TEXT_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: Message Sorry, but you do not have the required permission level to access this screen. is displayed


Image:Greenck.jpgImage:Greenck.jpg

Test: EServ Content: Version-Viewer, Null Date, Versioning On, Images

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. paste CURRENT_IMAGE_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with image from directory Mod 2 displayed
  3. append to CURRENT_IMAGE_VERSION_ESERV_URL ?version_date=
    • Confirm: File displays with image from directory Mod 2 displayed
Image:Greenck.jpgImage:Greenck.jpg

Test: EServ Content: Version-Viewer, Valid Date, Versioning On, Images

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: canViewVersions (editor user)
  2. paste CURRENT_IMAGE_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with image from directory Mod 2 displayed
  3. paste OLDER_IMAGE_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with image from directory Original displayed
Image:Greenck.jpgImage:Yellowbox.jpg

Test: EServ Content: Version-Viewer, Null Date, Versioning Off, Images

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: canViewVersions (editor user)
  2. paste CURRENT_IMAGE_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with image from directory Mod 2 displayed
  3. append to CURRENT_IMAGE_VERSION_ESERV_URL ?version_date=
    • Confirm: File displays with image from directory Mod 2 displayed
Image:Greenck.jpgImage:Yellowbox.jpg

Test: EServ Content: Version-Viewer, Valid Date, Versioning Off, Images

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: canViewVersions (editor user)
  2. paste CURRENT_IMAGE_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: File displays with image from directory Mod 2 displayed
  3. paste OLDER_IMAGE_VERSION_ESERV_URL in browser address line and hit GO
    • Confirm: Message Sorry, but you do not have the required permission level to access this screen. is displayed


Test Suite: Edit Record

Common Setup for all tests in this section:
  1. use a text editor to create a local file with content "Test"
  2. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test Suite: Edit Record
    6. set Description for File Upload 1 = Test Upload
    7. use browse button for File Upload 1 to locate and select the temporary file for upload
    8. click the Publish button at the bottom of the page
    9. When the new record displays, write down the view URL for the newly created record. It is referred to in tests as RECORD_URL.
    10. Log out
      1. NOTE: This record can be created once and re-used for all tests.
Image:Yellowbox.jpgImage:Greenck.jpg

Test: Edit Record: Admin User, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: admin
  2. paste RECORD_URL in browser address line and hit GO
  3. edit this record (pencil icon under workflows)
    1. scroll to the bottom of the record
    • Confirm: [delete] is beside the name of the uploaded file.
    • Confirm: [purge] is beside the name of the uploaded file.
    1. select Abandon Workflow
Image:Greenck.jpgImage:Greenck.jpg

Test: Edit Record: Editor, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: editor
  2. paste RECORD_URL in browser address line and hit GO
  3. edit this record (pencil icon under workflows)
    1. scroll to the bottom of the record
    • Confirm: [delete] is beside the name of the uploaded file.
    • Confirm: [purge] is NOT beside the name of the uploaded file.
    1. select Abandon Workflow
Image:Yellowbox.jpgImage:Greenck.jpg

Test: Edit Record: Admin User, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: admin
  2. paste RECORD_URL in browser address line and hit GO
  3. edit this record (pencil icon under workflows)
    1. scroll to the bottom of the record
    • Confirm: [delete] is NOT beside the name of the uploaded file.
    • Confirm: [purge] is beside the name of the uploaded file.
    1. select Abandon Workflow
Image:Yellowbox.jpgImage:Yellowbox.jpg

Test: Edit Record: Editor, Versioning Off

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=false

Test:

  1. user: editor
  2. paste RECORD_URL in browser address line and hit GO
  3. edit this record (pencil icon under workflows)
    1. scroll to the bottom of the record
    • Confirm: [delete] is NOT beside the name of the uploaded file.
    • Confirm: [purge] is beside the name of the uploaded file.
    1. select Abandon Workflow
Image:Yellowbox.jpgImage:Greenck.jpg

Test: Edit Record: Editor, Delete and Add with Same Filename, Versioning On

Setup:

  1. APP_VERSION_UPLOADS_AND_LINKS=true

Test:

  1. user: editor
  2. using a text editor, create a file with text "Original" and save as "tmpfile.txt"
  3. using a text editor, create a second file with text "Mod 1" and save as "tmpfile.txt" in a different directory
  4. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Test Suite: Edit Record
    6. set Description for File Upload 1 = Test Upload
    7. use browse button for File Upload 1 to locate and select the temporary file with text "Original" for upload
    8. click the Publish button at the bottom of the page
    • Confirm: temporary text file is listed in Attached Files
  5. edit this record (pencil icon under workflows)
    1. scroll to the bottom of the record
    • Confirm: [delete] is beside the name of the uploaded file.
    • Confirm: [purge] is NOT beside the name of the uploaded file.
    1. click [delete] and select OK button to complete the delete
    2. click the Publish button at the bottom of the page
    • Confirm: temporary text file is NOT listed in Attached Files
  6. edit this record (pencil icon under workflows)
    1. scroll to the bottom of the record
    • Confirm: temporary text file is NOT listed in Attached Files
    1. set Description for File Upload 1 = Test Upload (mod 1)
    2. use browse button for File Upload 1 to locate and select the temporary file with text "Mod 1" for upload
    3. click the Publish button at the bottom of the page
    • Confirm: temporary text file is listed in Attached Files
  7. click the link for the temporary file name to view the contents of the file
    • Confirm: Text Mod 1 is displayed in the window that opens.
  8. close the window showing the contents of the temporary file
  9. from the version droplist, select the version 2nd from the bottom -- View Version
  10. click the link for the temporary file name to view the contents of the file
    • Confirm: Text Original is displayed in the window that opens.
    • NOTE: Would prefer that the temporary file not show up in this version since it was deleted at this time, but this is acceptable because it is better than the alternative of purging the datastream that contained "Original" at the point that a new datastream wants to use the DSID
  11. close the window showing the contents of the temporary file
  12. from the version droplist, select the version 3rd from the bottom -- View Version
  13. click the link for the temporary file name to view the contents of the file
    • Confirm: Text Original is displayed in the window that opens.
  14. close the window showing the contents of the temporary file

Test Suite: Logging

Common Setup for all tests in this section:
  1. define('APP_VIEW_VERSIONS_ROLES', "Community_Administrator,Editor,Approver");
  2. define('APP_VIEW_VERSIONS_ROLE_IDS', "6,8,2");

Common Tear Down for all tests in this section:

  1. Log Out
Image:Yellowbox.jpgImage:Yellowbox.jpg

Test: Logging: Premis Event Date includes Milli Seconds

Test:

  1. user: editor
  2. create a record with a title and description
    • Confirm: visually inspect table fez_premis_event field pre_date includes milliseconds (hh:mm:ss.ms)


Test Suite: Misc Updates

Common Setup for all tests in this section:
  1. create a record
    1. Login as editor
    2. from OnRamp home page, select Browse Communities from navigation menu
    3. select community Testing
    4. select collection: Test Collection
    5. click Create button next to drop list showing Generic Document
    6. set Title = Misc Updates
    7. click the Publish button at the bottom of the page
    8. Write down the view URL for the newly created record. It is referred to in tests as TEST_RECORD_URL.
    9. Log out
      1. NOTE: This record can be created once and re-used for all tests.

Common Tear Down for all tests in this section:

  1. Log Out
Image:Yellowbox.jpgImage:Yellowbox.jpg

Test: Misc Updates: Edit Record Security

Test:

  1. user: admin
    • Confirm: In Fedora Admin, FezACML DS versionable parameter is true
  2. view TEST_RECORD_URL (from Common Setup)
  3. edit security (lock icon under workflows)
    1. change Editor to editor user
    2. save
    • Confirm: In Fedora Admin, FezACML DS versionable parameter is true
Image:Yellowbox.jpgImage:Yellowbox.jpg

Test: Misc Updates: Edit Record

Test:

  1. user: editor
  2. create a record
    1. from OnRamp home page, select Browse Communities from navigation menu
    2. select community Testing
    3. select collection: Test Collection
    4. click Create button next to drop list showing Generic Document
    5. set Title = Misc Updates: Edit Record
    6. click the Publish button at the bottom of the page
    • Confirm: In Fedora Admin, FezMD DS versionable parameter is false
  3. edit this record (pencil icon under workflows)
    1. change Title = Misc Updates: Edit Record (modified)
    2. click the Publish button at the bottom of the page
    • Confirm: In Fedora Admin, FezMD DS versionable parameter is false
Personal tools