ArsDigita Archives
 
 
   
 
spacer

Test Plan for Enhanced News Package

by Lin Chen

I. Introduction

Other docs of this package

This is a detailed test plan for the package Enhanced News.

The site is configured as follows:

  • Have three enabled newsgroups, and some disabled newsgroups
  • Newsgroup "public" is enabled, with an admin group "press releases admin". The approval policy is "closed"
  • Newsgroup "employees" is enabled, with no admin group. The approval policy is "wait"
  • Newsgroup "aD.com" is enabled, with no admin group. The approval policy is "open"

The tests are divided into six sections:

The test results are also included in this document.

II. Test as a Non-registered User

Non registered users (referred to as users) use the package to view public news. It is important that users

  • View public press releases under public headers
  • Don't see admin links, post item link
  • Only see approved, current items

Test Cases

Visit the site as a non-registered user.

  1. View current item list (/news)
    • See a list of items with release date no later than today
    • Don't see any admin link or post an item link
    • The title of each item is hyperlinked
    • See a link at bottom and right hand corner point to expired items
  2. View an Item (/news/item)
    This page is linked from the title of each item on the main page or the expired items page.
    • All information of the public item is listed under public header
    • If the item has expired, then a string "expired" is display in red by the release date
    • Can view comments of this item at the bottom of the page
    • Can't add comment because that requires registration
  3. View Expired Items List (/news/?archive_p=1)
    This page is linked from the "expired items" link on the main index page
    • See a list of items with expiration date no later than today
  4. Try Admin Pages
    Try type in /news/admin, and should be denied access.

Top

III. Test as an Employee

Employees use this package to view the press releases and company news, as well as to submit news items to employees newsgroup (subject to approval).

  • View a list all news items available to them in one page
  • View public press release item under public headers
  • View company news item under internal headers
  • Suggest news items
  • Only see approved, current items

Test Cases

Visit the site as an employee. (logon as employee@arsdigita.com/changeme)

  1. View active items list (/news)
    • See a list of items with release date no later than today
    • Don't see any admin link
    • See a link to suggest an item at top right corner
    • The title of each item is hyperlinked
    • See a link at bottom to expired items
  2. View an Item (/news/item)
    This page is linked from the title of each item on the main page or the expired items page.
    • All information of the press release item is listed under public header
    • If the item has expired, then a string "expired" is display in red by the release date
    • Can view comments of this item at the bottom of the page
    • Can add comments
  3. View Expired Items List (/news/?archive_p=1)
    This page is linked from the "expired items" link on the main index page
    • See a list of items with expiration date no later than today
    • See a link to suggest an item at top right corner
  4. Suggest an item (/news/post-new)
    This page is linked from the main index page and the "expired items" page
    • The scope of the news item has only one selection: "Employees"
    • Title and body are required fields while subtitle is optional. Make sure not filling required fields results in proper error message.
    • Upon submission, proper message should be returned. And also a link to go back to where from.
    • Make sure the item is in pending status and doesn't show in the list yet on the main index page.
    • E-mail notices are sent out to admin members of Employees group. (since notify_admin_p is "t")
    • Toggle notify_admin_p to "f" as an admin member, then log in back as an employee and suggest an item. Make sure that No e-mail notices are sent out.
  5. Try Admin Pages
    Try type in /news/admin, and should be denied access.

Top

VI. Test as a member of press release admin group

There is a group named "Press Releases Admin" and it's the admin group for newsgroup "public". All members in this group are considered administrators (referred to as admins) to newsgroup "public". The admins use this package to:

  • View a list of all news/press release items in one page
  • View public press release items under public headers
  • View company news items under internal headers
  • Add news items (without the need of approval)
  • Approve/disapprove any news item
  • Edit any news items

Test Cases

Visit the site as a administrator.

  1. View active items list (/news)
    • See a list of items with release date no later than today
    • See a link to admin page at top right corner
    • See a link to post an item at top right corner
    • The title of each item is hyperlinked
    • See a link at bottom to expired items
  2. View an Item (/news/item)
    This page is linked from the title of each item on the main page or the expired items page.
    • All information of the press release item is listed under public header
    • If the item has expired, then a string "expired" is display in red by the release date
    • Can view comments of this item at the bottom of the page
    • Can't add comment because that requires registration
  3. View Expired Items List (/news/?archive_p=1)
    This page is linked from the "expired items" link on the main index page
    • See a list of items with expiration date no later than today
    • See a link to admin page and a link to post an item at top right corner
  4. Post an item (/news/post-new)
    This page can be linked from three places: the main index page, the "expired items" page, and the main admin page.
    • The scope of the news item has two selections: employees and public
    • Title and body are required fields while subtitle is optional. Make sure not filling required fields results in proper error message.
    • Upon submission, proper message should be returned. And also a link to go back to where from.
    • The item is approved autometically. Make sure it does show up until the release date.
  5. Administer Current items (/news/admin)
    This page is linked from two places, main index page, and "expired items" page. (If logged in user is an administrator.) Only the newsgroups administered by this user should show on this page.
    • There is a summary table list number of total current items for each news group. With link to add an item to each group.
    • Next to it is a list of all items that are waiting for approval.
    • Then the lists of all current items grouped by news groups.
    • There is also link to administer expired items.
    • The title of each item is hyperlinked to the detailed admin page for that item. Also if the item is not in approved state, there should be a string staging its status in red. At the end, there should be links to edit the item or to change the status of the item.
    • Try approve/revoke items and make sure their status change as should. In the mean time, check /news page to make sure only approved item show up there.
  6. Administer Expired items (/news/admin/expired)
    This page is linked from the main index page. Only the newsgroups administered by this user should show on this page.
    • There is a summary table list number of total expired items for each news group.
    • Then the lists of all expired items grouped by news groups.
    • The title of each item is hyperlinked to the detailed admin page for that item. Also if the item is not in approved state, there should be a string staging its status in red. At the end, there should be links to edit the item.
    • Try edit the item to change the expiration date to a future date and see the item disappear from this page and shows up on the main admin page. And if the item is in the approved state, make sure it shows up on the /news page also.
  7. Edit an item (/news/admin/post-edit)
    Try change some fields and make sure all changes take place. Make sure the scope select box only has the newsgroups this user administers.
  8. Admin an item (/news/admin/item)
    This page link all information about one item. And provide links to change approval state and to edit the item. Try change the approval state by clicking on the links on this page.

Top

V. Test as a member of aD.com

Log in as a member of aD.com but not the "press releases admin" group. Check the following:

  • On /news page, there is no admin link
  • Try /news/admin, should be denied
  • Post an item, the scope options should be employee and ad.com
  • Post to ad.com, item should appear autometically
  • Post to employees, item should be subject to approval.

Top

VI. Test as a site-wide admin

When visiting pages /news or /news/admin, the site-wide admin shouldn't see anything diffrent is she is not an site-wide admin.

/admin/news

The site wide admin can see all newsgroups on this page and add/edit any newsgroups.

Top

VII. Backward compatibility tests

  • Check the news list/links on the Intranet index page
  • Check the news box on the portal page
  • /group/.../news

Top

VIII. Test Results

Top

IX. Revision History

Document Revision # Action Taken, Notes When? By Whom?
0.1 Creation 12/12/2000 Lin Chen

lin@arsdigita.com
spacer