Test Plan: ERM-184 Manage file uploads for document attachments

Feature

UXPROD-1159 - Getting issue details... STATUS

Story

ERM-187 - Getting issue details... STATUS

Test Plan Reference

ERM-184 - Getting issue details... STATUS

Prepared byBenjamin Ahlborn
Verified by
Verified Date



Navigation 

Acceptance Scenarios / Test Cases

Scenario 1: Manage file uploads for document attachments (privileged user, edit and create mode)


Test Path NameGIVEN
Initial Context
WHEN
Something Happens

THEN
Expected Result

TEST SCRIPT
Sequence of steps to follow
TEST DATAACTUAL RESULTSTester CommentsSTATUS
(Haken) Pass (Fehler) Fail

LOG NOTE
Tester / Timestamp

1Successfully upload a file in edit mode (to existing document element)
  • as a logged-in user
  • with the minimum user rights ERM: can view/edit agreements/licenses
  • I have one or more PDF-files to be attached to the instance as supplementary information
  • opening the Licenses or Agreements app
  • searching for an instance
  • edit instance contents
  • when presented with a upload link/button
  • I click the upload link/button in an existing document and am prompted for action
  • I exit/save edit mode
  • a file upload dialogue opens
  • I am prompted to select a PDF file in my local file system for upload
  • other file extensions are rejected by form
  • I have to enter a descriptive string or text
  • Upon pressing ENTER the file is uploaded; when the upload is finished/successful the UI gives feedback (e.g. by messagebox)
  • I am returned to Core documents accordion; a link representing the upload  is displayed along with the descriptive text and delete/replace option
  • I am still in edit-mode, therefore I have to confirm changes when I leave the  instance
  1. Login as privileged user|navigate to license/agreement record|enter edit mode
  2. navigate to accordion
  3. click the upload button
  4. select non-PDF file for upload
  5. select PDF file for upload
  6. try to submit without entering descriptive string
  7. enter descriptive string
  8. press upload file link
  9. verify new link in Core
  10. exit/save instance



(prepare users with staged privileges)

2Successfully upload a file in edit mode (to new document element)(see above 1.)

as above 1. except

  • I create a new document element click the upload link/button
(see above 1.)





3Successfully upload/delete/replace a file in edit mode but exit without saving(see above 1.)(see above) but exit without saving

(see above 1.)

Assumed that the file has already been written to the backend, the new attachment is not afflicted by exit without save

see 1, except
12. exit instance without saving

13. Verify uploaded file is still accessible






4Successfully upload a file in create mode
  • as a logged-in user
  • with the minimum user rights ERM: can view/edit/create agreements/licenses
  • I have one or more PDF-files to be attached to a new instance as supplementary information
  • opening the Licenses or Agreements app
  • create an new instance
  • create a new document element
  • when presented with a upload link/button
  • click the upload link/button
  • exit/save edit mode
(see above 1.)(see above 1.)




5replace a file
  • as a logged-in user
  • with the minimum user rights ERM: can view/edit agreements/licenses
  • I have one or more PDF-files to replace an existing attachment to document element
  • opening the Licenses or Agreements app
  • searching for an instance
  • edit instance contents
  • when presented with a replace/delete link/button
  • I click the replace/delete link/button in an existing document and am prompted for action
  • I exit/save edit mode
  • a options dialogue delete|replace|cancel opens
  • there is a warning that the exixting file will be overwritten
  • a file upload dialogue opens
  • I am prompted to select a PDF file in my local file system for upload
  • other file extensions are rejected by form
  • I have to enter a descriptive string or text
  • Upon pressing ENTER the file is uploaded; when the upload is finished/successful the UI gives feedback (e.g. by messagebox)
  • I am returned to Core documents accordion; a link representing the upload  is displayed along with the descriptive text and delete/replace option
  • I am still in edit-mode, therefore I have to confirm changes when I
  1. Login as privileged user|navigate to license/agreement record|enter edit mode
  2. navigate to document accordion
  3. click the replace/delete button
  4. select replace and confirm
  5. select non-PDF file for upload
  6. select PDF file for upload
  7. try to submit without entering descriptive string
  8. enter descriptive string
  9. press upload file link
  10. verify new link in Core
  11. exit/save instance





6delete a file
  • as a logged-in user
  • with the minimum user rights ERM: can view/edit agreements/licenses
  • I want to delete an existing attachment to document element
see above 5.
  • a options dialogue delete|replace|cancel opens
  • there is a warning that the exixting file will be deleted
  • Upon pressing ENTER the file is deletd; when the delete is finished/successful the UI gives feedback (e.g. by messagebox)
  • I am returned to Core documents accordion; the attachement has been removed, there is an upload link/button
  1. Login as privileged user|navigate to license/agreement record|enter edit mode
  2. navigate to document accordion
  3. click the replace/delete button
  4. select delete and confirm
  5. exit/save instance





Scenario 2: Manage file uploads for document attachments (non-privileged user)


Test Path NameGIVEN
Initial Context
WHEN
Something Happens

THEN
Expected Result

TEST SCRIPT
Sequence of steps to follow
TEST DATAACTUAL RESULTSTester CommentsSTATUS
(Haken) Pass (Fehler) Fail

LOG NOTE
Tester / Timestamp

1prevent upload from non-privileged users
  • as a logged-in user
  • with the minimum user rights ERM: can view agreements/licenses
  • opening the Licenses or Agreements app
  • searching for an instance
  • view instance contents
  • no upload button/link is displayed
  1. Login as non-privileged user|navigate to license/agreement record|enter edit mode
  2. navigate to accordion
  3. verify no upload button/link is displayed