Basic functional Test Cases

Version 17 (larry shi, 04/11/2012 07:29 am)

1 1 Mary Laser
{{toc}}
2 1 Mary Laser
3 1 Mary Laser
h1. Basic functional Test Cases based on the top menu items
4 1 Mary Laser
5 10 Paul Holland
Return to [[Manual Test Cases]].
6 10 Paul Holland
Return to [[20-specific Test Suite]].
7 2 Paul Holland
8 14 Paul Holland
h2. Homepage
9 11 Paul Holland
10 2 Paul Holland
table{border:5px, color:black}.
11 4 Paul Holland
|_.Purpose | To check that the basic user functionality of the home page works |
12 4 Paul Holland
|_.Dependencies | A working server to test on |
13 2 Paul Holland
14 2 Paul Holland
table{border:1px solid black}.
15 2 Paul Holland
|_. Step |_.Action |_.Expected Results|
16 2 Paul Holland
|1. |  Open FOSSology UI (http://<server>/repo/)| FOSSology loads with a "Welcome" message; the text of the page makes sense and doesn't contain typos. |
17 2 Paul Holland
|2. |  Select "Home" menu | The same FOSSology page re-loads successfully. There are still only a limited number of menu options. |
18 2 Paul Holland
|3. |  Select "Help" menu | Several sub-menus appear and are selectable |
19 2 Paul Holland
|4. |  Select "Help -> About" menu | Text explaining FOSSology is displayed, it makes sense, and there are no typos. |
20 2 Paul Holland
|5. |  Select "Help -> Documentation" menu | The page for User Documentation is displayed, it makes sense, and there are no typos. |
21 2 Paul Holland
|6. |  Select "Help -> Getting Started" menu | A page explaining the overview of FOSSology is displayed, it makes sense, and there are no typos. |
22 2 Paul Holland
|7. |  Select "Help -> Debug" menu | Several sub-menus appear and are selectable |
23 2 Paul Holland
|8. |  Select "Help -> Debug -> Debug Menus" menu | A page is displayed explaining the functionality, it makes sense, and there are no typos.  There is a button to Enable Full Debugging. |
24 2 Paul Holland
|9. |  Select the "Enable" button | The page is re-displayed and full debugging enabled.  A button to Disable Full Debugging is now displayed. |
25 2 Paul Holland
|10. |  Select the "Disable" button | The page is re-displayed and full debugging disabled.  A button to Enable Full Debugging is again displayed. |
26 1 Mary Laser
|11. |  Select "Help -> Debug -> Global Variables" menu | A page is displayed with the global variables, it makes sense, and there are no typos. |
27 4 Paul Holland
|12. | Select the login link.  Enter your username and password and select the login button. | The system logs you in and many more menu items now appear. |
28 1 Mary Laser
29 4 Paul Holland
h2. Upload 
30 1 Mary Laser
31 1 Mary Laser
table{border:5px, color:black}.
32 4 Paul Holland
|_.Purpose | To test the upload functionality via various mechanisms   |
33 4 Paul Holland
|_.Dependencies | A working server to test on |
34 1 Mary Laser
35 1 Mary Laser
table{border:1px solid black}.
36 3 Paul Holland
|_. Step |_.Action |_.Expected Results|
37 4 Paul Holland
|1. | Select "Upload -> Instructions" menu | A page is displayed with upload instructions, it makes sense, all the links work, and there are no typos. |
38 4 Paul Holland
|2. | Select "Upload -> From File" menu and click upload button | The page does not do anything since there was nothing entered. |
39 4 Paul Holland
|3. | Click on various checkboxes and click the upload button | The page does not do anything since there was nothing entered. |
40 4 Paul Holland
|4. | Select the browse button and select a file; click the upload button | The page is re-loaded and a message indicating your file was uploaded is displayed.  Note the upload number. |
41 4 Paul Holland
|5. | Select the browse button and select a different file; select various checkboxes and click the upload button | The page is re-loaded and a message indicating your file was uploaded is displayed.  Note the upload number. |
42 4 Paul Holland
|6. | Select "Upload -> From Server" menu and click upload button | The page does not do anything since there was nothing entered. |
43 4 Paul Holland
|7. | Click on various checkboxes and click the upload button | The page does not do anything since there was nothing entered. |
44 16 larry shi
|8. | -TBD - how do we get something to the server- Select one directory or one file on the server, please make sure the user 'fossy' has the permission to read this directory  or this file; click the upload button | The page is re-loaded and a message indicating your file was uploaded is displayed.  Note the upload number. |
45 17 larry shi
|9. | -TBD - do it again- In order to upload all the files which have the postfix, e.g. /home/xxx/*.dsc, enter /home/xxx/*.dsc; click the upload button | The page is re-loaded and a message indicating your file was uploaded is displayed.  Note the upload number. #1191|
46 16 larry shi
|10.| -TBD - try different alphabetized options- *the function about alphabetized sub-folders for organization is removed in 2.0* | |
47 5 Paul Holland
|11.| Select "Upload -> From URL" menu and click upload button | The page does not do anything since there was nothing entered. |
48 5 Paul Holland
|12.| Enter a bogus url | A message is displayed indicating the bad url and the page does not do anything. |
49 5 Paul Holland
|13.| Click on various checkboxes and click the upload button | The page does not do anything since there was nothing entered. |
50 5 Paul Holland
|14.| Enter a valid url and click the upload button | The page is re-loaded and a message indicating your file was uploaded is displayed.  Note the upload number. |
51 5 Paul Holland
|15.| Enter another valid url, enter various optional information, select various checkboxes and click the upload button | The page is re-loaded and a message indicating your file was uploaded is displayed.  Note the upload number. |
52 5 Paul Holland
|16.| Select "Upload -> One-Shot License Analysis" menu and click analyze button | The page does not do anything since there was nothing entered. |
53 5 Paul Holland
|17.| Select the browse button and select a file; click the analyze button | The page is re-loaded and a message indicating your file was analyzed is displayed. The license(s) found in the file is displayed. |
54 5 Paul Holland
|18.| Select the browse button and select a different file; click the analyze button | The page is re-loaded and a message indicating your file was analyzed is displayed.  The license(s) found in the file is displayed. |
55 5 Paul Holland
|19.| Select "Upload -> One-Shot Copyright ... Analysis" menu and click analyze button | The page does not do anything since there was nothing entered. |
56 5 Paul Holland
|20.| Select the browse button and select a file; click the analyze button | The page is re-loaded and a message indicating your file was analyzed is displayed. The copyright(s), email(s), and URL(s) found in the file are displayed. |
57 5 Paul Holland
|21.| Select the browse button and select a different file; click the analyze button | The page is re-loaded and a message indicating your file was analyzed is displayed.  The copyright(s), email(s), and URL(s) found in the file are displayed. |
58 1 Mary Laser
59 8 Paul Holland
h2. Jobs
60 1 Mary Laser
61 8 Paul Holland
table{border:5px, color:black}.
62 8 Paul Holland
|_.Purpose | To test the basic functionality of jobs and scheduling |
63 8 Paul Holland
|_.Dependencies |    |
64 1 Mary Laser
65 8 Paul Holland
table{border:1px solid black}.
66 8 Paul Holland
|_. Step |_.Action |_.Expected Results|
67 8 Paul Holland
|1. | Click on the upload link for one of your uploads | The UI should display "Show Jobs" page with your requested uploads and the right number of jobs: ununpack & adj2nest, agent 1, agent 2, etc.  | 
68 8 Paul Holland
|2. | When all the jobs have been completed, click the job # in the far left to view the log files for each | Verify all the jobs ran without any fatal errors |
69 8 Paul Holland
|3. | Return to the "Show Jobs" page and click on the upload name to browse | The UI should display your upload in the "Browse" page |
70 8 Paul Holland
|4. | Click the link 'View' besides the uploaded file on the 'Browse' page | Get the file contents of the file you have already uploaded. |
71 8 Paul Holland
|5. | Repeat Steps 1-4 for all your uploads | The system behaves expectedly. |
72 1 Mary Laser
73 8 Paul Holland
h2. Search
74 7 Paul Holland
75 8 Paul Holland
table{border:5px, color:black}.
76 8 Paul Holland
|_.Purpose | To test the basic functionality of search |
77 8 Paul Holland
|_.Dependencies |    |
78 6 Paul Holland
79 8 Paul Holland
table{border:1px solid black}.
80 8 Paul Holland
|_. Step |_.Action |_.Expected Results|
81 8 Paul Holland
|1. | Click on the menu [Search] and enter a file name search-file% | You get a list of files which have a prefix 'search-file' |
82 8 Paul Holland
|3. | Click on the menu [Search] and enter a file name plugins | You get a list of directories which are plugins |
83 8 Paul Holland
|4. | You can set other conditions yourself and search them | You should get what you expect |
84 1 Mary Laser
85 8 Paul Holland
h2. Browse
86 1 Mary Laser
87 6 Paul Holland
table{border:5px, color:black}.
88 8 Paul Holland
|_.Purpose | To test the basic functionality of browsing uploads and folders |
89 1 Mary Laser
|_.Dependencies |    |
90 1 Mary Laser
91 1 Mary Laser
table{border:1px solid black}.
92 6 Paul Holland
|_. Step |_.Action |_.Expected Results|
93 8 Paul Holland
|1. | On the 'Browse' page, click on the package name for one of the previous uploads | You can browse through this package recursively (if the upload is one file, you can not get through it) |
94 8 Paul Holland
|2. | On the 'Browse' page, click on the link 'view' under one upload | You will get the text content of this upload |
95 8 Paul Holland
|3. | On the 'Browse' page, click on the link 'info' under one upload | You will get the mimetype info/pfile id/Repository ID/etc of this upload |
96 8 Paul Holland
|4. | On the 'Browse' page, click on the link 'Download' under one upload | A popup window will appear for you to download; check that the file downloads correctly to your local system. |
97 8 Paul Holland
|5. | On the 'Browse' page, click on the link 'History' under one upload | The job view page of this upload will be displayed |
98 8 Paul Holland
|6. | On the 'Browse' page, click on the link 'Compare' under one upload | You can compare this upload with others (for how to compare, see http://www.fossology.org/projects/fossology/wiki/Nomos_diff) |
99 6 Paul Holland
100 8 Paul Holland
h2. Organize
101 6 Paul Holland
102 7 Paul Holland
table{border:5px, color:black}.
103 8 Paul Holland
|_.Purpose | To test the basic functionality of organizing files and folders |
104 8 Paul Holland
|_.Dependencies | |
105 1 Mary Laser
106 1 Mary Laser
table{border:1px solid black}.
107 1 Mary Laser
|_. Step |_.Action |_.Expected Results|
108 8 Paul Holland
|1. | Click on [Organize]-->[Folders]-->[Create] menu to create a folder 'test1' under 'Software Repository' folder, set the folder description as 'test description'; click on 'Create!' link | You should now see the 'test1' folder under 'Software Repository' folder when you click on the [Browse] menu |
109 8 Paul Holland
|2. | Click on [Organize]-->[Folders]-->[Create] menu to create one folder 'test1' under 'Software Repository' folder, set the folder description as 'test description #2'; click on 'Create!' link | You should get an error message indicating that the folder already exists; when clicking the [Browse] menu, you shoud not see two 'test1' folders under the 'Software Repository' folder. |
110 8 Paul Holland
|3. | Click on [Upload]-->[From File] menu to the 'upload from file' page; select the target folder as 'test1', select one file locally, set the description for this upload as 'dup upload desc', set viewable name for this upload as 'dup_upload'; click on the link 'Upload'. | A notice indicating the file is being uploaded is displayed with the upload id. |
111 8 Paul Holland
|4. | Click on the upload link for your job | The UI should display "Show Jobs" page |
112 8 Paul Holland
|5. | When all the jobs are completed, click the job # in the far left to view the log files for each | Verify all the jobs ran without any fatal errors |
113 8 Paul Holland
|6. | Return to the show jobs page and click on the upload name to browse | The UI should display your upload in the "Browse" page in the test folder |
114 8 Paul Holland
|7. | Repeat step 3 (upload the same file with the same information) | A notice indicating the file is being uploaded is displayed with the upload id. |
115 8 Paul Holland
|8. | Repeat steps 5-7 to check that all the jobs complete sucessfully | All the jobs are completed sucessfully |
116 8 Paul Holland
|9. | Click on the [Browse] menu to the Browse page | You get 2 duplicate uploads under 'test1' folder |
117 8 Paul Holland
|10.| Click on the top-level [Organize]-->[Folders]-->[Create], enter the folder name as "test2" under Software Repository | go to "Browse" page, will see the test2 folder under Software Repository |
118 8 Paul Holland
|11.| Click on the top-level [Organize]-->[Folders]-->[Move] and move the folder test1 to test2 under Software Repository | go to "Browse" page, will see the test1 folder under folder test2 |
119 8 Paul Holland
|12.| Click on the [Organize]-->[Folders]-->[Edit Properties] menu to go to the 'Edit Folder Properties' page; select the test folder; change both the folder name and folder description to something else (and remember what you specified); click on the 'Edit!' link on the bottom of the page | Click on the [Browse] menu, you will find that the test folder has been changed to the new name; click on the [Organize]-->[Folders]-->[Edit Properties] menu, and you will find that the description of the folder has been changed also |
120 8 Paul Holland
|13.| Click on the [Organize]-->[Uploads]-->[Edit Properties] menu to go to the 'Edit Uploaded File Properties' page; change both the upload name and description of the upload you just uploaded (and remember what you specified); click on the link 'Edit!' | After clicking on the [Browse] menu to go to the 'Browse' page, you find the upload name and upload description of the recent upload are changed. |
121 8 Paul Holland
|14.| Click on the [Organize]-->[Uploads]-->[Move] menu to go to the page 'Move upload to different folder' and move a upload file from the test folder to the high-level folder 'Software Repository'; click on the link 'Move!' | After clicking on the menu [Browse], you will find that the test file has been moved from the test folder to the higher-level folder |
122 8 Paul Holland
|15.| Click on the [Organize]-->[Uploads]-->[Delete Upload File] menu to go to the 'Delete Uploaded File' page; select the uploaded test file to delete | After clicking on the menu [Browse], you will find the test file has been successfully deleted |
123 8 Paul Holland
|16.| Click on the [Organize]-->[Folders]-->[Delete Folder] menu to delete a Folder, select a test folder and click on the link 'Delete!' | After clicking on the [Browse] menu to go to the 'Folder Navigation' page, you will find that the folder has been deleted successfully |
124 13 Paul Holland
125 13 Paul Holland
* Merge Cluster Basic tests here