| Test Path Name | GIVEN Initial Context | WHEN Something Happens | THEN Expected Result | TEST SCRIPT Sequence of steps to follow | TEST DATA | ACTUAL RESULTS | Tester Comments | STATUS Pass Fail | LOG NOTE Tester / Timestamp |
---|
1 | Successfully 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
| - Login as privileged user|navigate to license/agreement record|enter edit mode
- navigate to accordion
- click the upload button
- select non-PDF file for upload
- select PDF file for upload
- try to submit without entering descriptive string
- enter descriptive string
- press upload file link
- verify new link in Core
- exit/save instance
| (prepare users with staged privileges) | |
| |
|
2 | Successfully 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.) |
|
|
|
|
|
|
3 | Successfully 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 |
|
|
|
|
|
4 | Successfully 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.) |
|
|
|
|
|
5 | replace 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
| - Login as privileged user|navigate to license/agreement record|enter edit mode
- navigate to document accordion
- click the replace/delete button
- select replace and confirm
- select non-PDF file for upload
- select PDF file for upload
- try to submit without entering descriptive string
- enter descriptive string
- press upload file link
- verify new link in Core
- exit/save instance
|
|
|
|
|
|
6 | delete 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
| - Login as privileged user|navigate to license/agreement record|enter edit mode
- navigate to document accordion
- click the replace/delete button
- select delete and confirm
- exit/save instance
|
|
|
|
|
|