« Previous -
Version 6/43
(diff) -
Next » -
Current version
Paul Holland, 02/25/2012 12:14 am
Further merging of test cases into simpler format for testing/assignment
Basic functional Test Cases based on the top menu items¶
FOSSology home page¶
| Purpose | To check that the basic user functionality of the home page works |
|---|---|
| Dependencies | A working server to test on |
| Step | Action | Expected Results |
|---|---|---|
| 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. |
| 2. | Select "Home" menu | The same FOSSology page re-loads successfully. There are still only a limited number of menu options. |
| 3. | Select "Help" menu | Several sub-menus appear and are selectable |
| 4. | Select "Help -> About" menu | Text explaining FOSSology is displayed, it makes sense, and there are no typos. |
| 5. | Select "Help -> Documentation" menu | The page for User Documentation is displayed, it makes sense, and there are no typos. |
| 6. | Select "Help -> Getting Started" menu | A page explaining the overview of FOSSology is displayed, it makes sense, and there are no typos. |
| 7. | Select "Help -> Debug" menu | Several sub-menus appear and are selectable |
| 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. |
| 9. | Select the "Enable" button | The page is re-displayed and full debugging enabled. A button to Disable Full Debugging is now displayed. |
| 10. | Select the "Disable" button | The page is re-displayed and full debugging disabled. A button to Enable Full Debugging is again displayed. |
| 11. | Select "Help -> Debug -> Global Variables" menu | A page is displayed with the global variables, it makes sense, and there are no typos. |
| 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. |
Upload¶
| Purpose | To test the upload functionality via various mechanisms |
|---|---|
| Dependencies | A working server to test on |
| Step | Action | Expected Results |
|---|---|---|
| 1. | Select "Upload -> Instructions" menu | A page is displayed with upload instructions, it makes sense, all the links work, and there are no typos. |
| 2. | Select "Upload -> From File" menu and click upload button | The page does not do anything since there was nothing entered. |
| 3. | Click on various checkboxes and click the upload button | The page does not do anything since there was nothing entered. |
| 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. |
| 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. |
| 6. | Select "Upload -> From Server" menu and click upload button | The page does not do anything since there was nothing entered. |
| 7. | Click on various checkboxes and click the upload button | The page does not do anything since there was nothing entered. |
| 8. | TBD - how do we get something to the server | The page is re-loaded and a message indicating your file was uploaded is displayed. Note the upload number. |
| 9. | TBD - do it again | The page is re-loaded and a message indicating your file was uploaded is displayed. Note the upload number. |
| 10. | TBD - try different alphabetized options | |
| 11. | Select "Upload -> From URL" menu and click upload button | The page does not do anything since there was nothing entered. |
| 12. | Enter a bogus url | A message is displayed indicating the bad url and the page does not do anything. |
| 13. | Click on various checkboxes and click the upload button | The page does not do anything since there was nothing entered. |
| 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. |
| 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. |
| 16. | Select "Upload -> One-Shot License Analysis" menu and click analyze button | The page does not do anything since there was nothing entered. |
| 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. |
| 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. |
| 19. | Select "Upload -> One-Shot Copyright ... Analysis" menu and click analyze button | The page does not do anything since there was nothing entered. |
| 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 found in the file are displayed. |
| 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 found in the file are displayed. |
How do I check that the uploads actually worked -- the upload # does not seem to correlate to anything?
Content to add:- Check job
click on the upload link for your job UI should display "Show Jobs" page with your requested upload & 4 jobs: ununpack & adj2nest, copyright, nomos When all 4 jobs are completed, click the job # in the far left to view the log files for each verify all 4 jobs ran without any fatal errors Return to the show jobs page and click on the upload name to browse UI should display your upload in the "Browse" page Click on the top level "Orgnize", pull down menu & select "Folders"-->"Create", enter the folder name as "test1" under Software Repository go to "Browse" page, will see the test1 folder under Software Repository Click on the top level "Upload" pull down menu & select "Upload from File" under folder 'test1' UI should display "Upload from File" page select one file from local, then click the "Upload!" button at the bottom of the page page should refresh with message at the top indicating a job has started to upload your request with a link to view the job status click on the upload link for your job UI should display "Show Jobs" page 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 Return to the show jobs page and click on the upload name to browse UI should display your upload in the "Browse" page in test1 folder Click on the top level "Orgnize", pull down menu & select "Folders"-->"Create", enter the folder name as "test2" under Software Repository go to "Browse" page, will see the test2 folder under Software Repository Click on the top level "Orgnize", pull down menu & select "Folders"-->"Move", move the folder test1 to test2 under Software Repository go to "Browse" page, will see the test1 folder under folder test2 Click on the top level "Upload" pull down menu & select "Upload from URL" UI should display "Upload from URL" page enter the url of the file, the file should more than 500M, then click the "Upload!" button at the bottom of the page page should refresh with message at the top indicating a job has started to upload your request with a link to view the job status, the status of wget_agent is Started Click on the top level "Admin", pull down menu & select "Database"-->"Check" You will find some pfiles(Uploads missing pfiles) are inconsistent in inconsistencies table Select the checkbox at the left of 'Uploads missing pfiles', click Fix! button at the bottom of the page On the top of this page, you will see some information looks like "DeletingUploads missing pfiles..."; Go to [Jobs]-->[My Recent Jobs] page, you will find the job log for this upload is missing. Go to [Admin]-->[Users]-->[Add] page, enter the user name is test_analyze, and set Access level as 'Analyze', then click on the button 'Add User' log out, then you can log in with user test_analyze sucessfully Click on the top level "Upload" pull down menu & select "From File" UI should display "Upload a New File" page supplying a file on your local system; click the "Upload" page should refresh with message at the top indicating a job has started to upload your request with a link to view the job status click on the upload link for your job UI should display "Show Jobs" page with your requested upload & 2 jobs: ununpack & adj2nest When all 2 jobs are completed, click the job # in the far left to view the log files for each verify all 2 jobs ran without any fatal errors Return to the show jobs page and click on the upload name to browse UI should display your upload in the "Browse" page Click on the top level "Orgnize" pull down menu & select "Uploads" Click on the top level "Upload" pull down menu & select "From File" UI should display "Upload a New File" page Complete steps 1-5 on the page, supplying a file on your local system; click the "Upload" page should refresh with message at the top indicating a job has started to upload your request with a link to view the job status click on the upload link for your job UI should display "Show Jobs" page with your requested upload & 2 jobs: ununpack & adj2nest When all 2 jobs are completed, click the job # in the far left to view the log files for each verify all 2 jobs ran without any fatal errors Return to the show jobs page and click on the upload name to browse UI should display your upload in the "Browse" page Click the link 'View'beside of the just uploaded file on the 'Browse' page Get the file content of the file you have already uploaded. Login to the FOSSology UI and go to the "Browse" page, click the "Download" link of one upload file. Check the if the file download correctly in your local system.
- Logging in with the same user id (see SiteMinder test)
Jobs¶
| Purpose | |
|---|---|
| Dependencies |
| Step | Action | Expected Results |
|---|---|---|
| 1. | ||
| 2. | ||
| 3. |
Search¶
| Purpose | |
|---|---|
| Dependencies |
| Step | Action | Expected Results |
|---|---|---|
| 1. | ||
| 2. | ||
| 3. |
Browse¶
| Purpose | |
|---|---|
| Dependencies |
| Step | Action | Expected Results |
|---|---|---|
| 1. | ||
| 2. | ||
| 3. |
| Step | Action | Expected Results |
|---|---|---|
| 1. | click on [Organize]-->[Folders]-->[Create] menu to create one folder 'test_dup' under 'Software Repository' folder, set the folder description as 'test dup description'; click on 'Create!' link | click on [Browse] menu you shoud see the 'test_dup' folder under 'Software Repository' folder |
| 2. | click on [Organize]-->[Folders]-->[Create] menu to create one folder 'test_dup' under 'Software Repository' folder, set the folder description as 'test dup description 2nd'; click on 'Create!' link | you will get one error msng say 'Folder test_dup Exists'; click on [Browse] menu you shoud can not see the 2 'test_dup' folders under 'Software Repository' folder |
| 3. | click on [Upload]-->[From File] menu to the 'upload from file' page; selec the storing folder as 'test_dup', select one file from local, set the description for this upload as 'dup upload des', set viewable name for this upload as dup_upload'; click on the link 'Upload' | you will get the notice msg on the top of this page, the msg looks like 'The file upload des has been uploaded. It is upload #upload_id. ' |
| 4. | check all the jobs for this upload sucessful, how to check you can refer to http://www.fossology.org/projects/fossology/wiki/Cluster_Test_Cases#Cluster-functional-tests | all the jobs are completed sucessfully |
| 5. | repleat the step 3(upload the same file, and do the same setting) | you will get the notice msg on the top of this page, the msg looks like 'The file upload des has been uploaded. It is upload #upload_id_last+1. ' |
| 6. | repeat step 4 to check if all the jobs are completed sucessfully | all the jobs are completed sucessfully |
| 7. | click on menu [Browse] to the Browse page | you will get 2 duplicate upload under 'test_dup' folder |
| Purpose | test if the system will report error when intend to add 2 duplicate user |
|---|---|
| Dependencies | install fossology sucessfully |
| Step | Action | Expected Results |
|---|---|---|
| 0. | login with fossy/fossy | you have the permission to add/edit/delete users |
| 1. | click on [Admin]-->[Users]-->[Add] menu to the 'Add A User' page; enter user name 'user_dup'; Select the user's access levek as 'Read Only' click on the link 'Add User' | click on the menu [Admin]-->[Users]-->[Edit Users] to the 'Edit A User' page; click on the 'Select the user to edit:' list, you can find the user 'user_dup' there |
| 2. | logout and login with user 'user_dup' | you only can view and opereate the menu [Home], [Search], [Browse], [Help] |
| 3. | logout and login with user 'fossy'; click on he menu [Admin]-->[Users]-->[Edit Users] to the 'Edit A User' page; click on the 'Select the user to edit:' list to select the user 'user_dup, set the Select the user's access level to 'Full Administrator'; click on the link 'update account' | logout and login with the user 'user_dup'; you have the same permission with the user 'fossy' |
| 4. | click on [Admin]-->[Users]-->[Add] menu to the 'Add A User' page; enter user name 'user_dup'; Select the user's access levek as 'Read Only' click on the link 'Add User' | you will get one error msg on the top 'User already exists. Not added.' |
| Step | Action | Expected Results |
|---|---|---|
| 1. | uload one xx.tar.gz | how to upload and check if upload sucessfully please refer to http://www.fossology.org/projects/fossology/wiki/Website_sanity_checks#OrgUploadsMenuTest-Deletephp |
| 2. | on the 'Browse' page, click on the package name | you can get through this package recursively(if the upload is one file, you can not get throught it) |
| 3. | on the 'Browse' page, click on the link 'view'under one upload | you will get the text content of this upload |
| 4. | 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 |
| 5. | on the 'Browse' page, click on the link 'Download'under one upload | will popup one window for you to download |
| 6. | on the 'Browse' page, click on the link 'History'under one upload | will go to the job view page of this upload |
| 7. | on the 'Browse' page, click on the link 'Compare'under one upload | you can compare this upload with others, how to compare, you can refer to http://www.fossology.org/projects/fossology/wiki/Nomos_diff |
| Step | Action | Expected Results | |
|---|---|---|---|
| 1. | login with fossy/fossy; click on [Admin]-->[Buckets]-->[Duplicate bucketpool] menu to the 'Duplicate Bucketpool' page, do not do any settings, click on the link 'Update' on the bottom of this page | the step is correct | |
| 2. | click on [Admin]-->[Users]-->[Account Settings] menu to the 'Edit Your Account Settings' page, enter the password 'fossy', in the 'Duplicate Bucketpool' option list, you should find >=2 bucketpool, please select the fisrt 1, then click no the link 'Update Account' | ||
| 3. | click on [Upload] menu, select any one upload option, upload one package, do not select any agent analysis, then click on the link 'Upload' | you should get the upload msg on the top of this page, click the upload # to the 'show jobs' page; all the jobs are completed | |
| 4. | click on menu [Jobs]-->[Schedule Agents] to the 'Schedule an Analysis', find out the upload you just uploaded, add the agents in 'Select additional analysis.' list, then click on the link 'Analysis' | you will get one msg on the top of this page, please click on the link 'View Jobs', will find out 7 jobs(completed) in the 'Show Jobs' page | |
| 5. | click on [Upload] menu, select any one upload option, upload one package, do select all agent analysis, then click on the link 'Upload' | you should get the upload msg on the top of this page, click the upload # to the 'show jobs' page; all 7 jobs are completed | |
| 6. | click on menu [Jobs]-->[Schedule Agents] to the 'Schedule an Analysis', find out the upload you just uploaded | there is no agents in 'Select additional analysis.' list | |
| 7. | click on [Admin]-->[Users]-->[Account Settings] menu to the 'Edit Your Account Settings' page, enter the password 'fossy', in the 'Duplicate Bucketpool' option list, you should find >=2 bucketpool, please select the 2nd 1, then click no the link 'Update Account' | ||
| 8. | click on menu [Jobs]-->[Schedule Agents] to the 'Schedule an Analysis', find out the upload you just uploaded | you will find only 'Bucket Analysis' agent in 'Select additional analysis.' list | |
| 9. | for this upload, select 'Bucket Analysis' agent for this upload, then click on the link 'Analize!' | you will get one msg on the top of this page; click on link 'View Jobs' to the 'Show Jobs' page, you will find 2 buckets agent(completed, if not please wait a while) on this upload | |
| 10. | click on the menu [Browse] to the 'Browse' page, click the upload you just upload, then click on the sub-menu [Bucket Browser] to the 'Bucket Browser' page, you can see 2 buckets for this upload. |
Database Check admin is tested in http://www.fossology.org/projects/fossology/wiki/Common_UI_Test_Cases#JobChangeStatus
User Admin is tested in http://www.fossology.org/projects/fossology/wiki/Basic_Fossology_functionality#addUserTestphp
and http://www.fossology.org/projects/fossology/wiki/Basic_Fossology_functionality#dupUserTestphp
Scheduler Admin is tested in http://www.fossology.org/projects/fossology/wiki/Common_UI_Test_Cases#GetRunnableJobList
Buckets Admin is tested in http://www.fossology.org/projects/fossology/wiki/Basic_Fossology_functionality/#Schedule-Agents-tests
Organize¶
| Purpose | |
|---|---|
| Dependencies |
| Step | Action | Expected Results |
|---|---|---|
| 1. | ||
| 2. | ||
| 3. |
| Step | Action | Expected Results |
|---|---|---|
| 1. | Click on [Organize]-->[Folders]-->[Create] menu to create one Folder 'test_folder', folder description as 'test folder description' | click on [Browse] menu to go to 'Folder Navigation' page, you should see the one folder 'test_folder' you just created |
| 2. | click on [Organize]-->[Folders]-->[Edit Properties] menue to go to the 'Edit Folder Properties' page; selet the folder 'test_folder'; change the folder name to 'folder_test' and folder description to 'folder test description'; click on 'Edit!' link on the bottom of this page | click on [Browse] menu, you will find that the 'test_folder' is changed to 'folder_test'; click on [Organize]-->[Folders]-->[Edit Properties] to go to the 'Edit Folder Properties' page, you will find that the description of 'folder_test' is 'folder test description' |
| 3. | click on [Organize]-->[Folders]-->[Delete Folder] menu to delete one Folder, selet the folder 'folder_test';click on the link 'Delete!' | wait for one while; click on [Browse] menu to go to the 'Folder Navigation' page, you will find that the folder 'folder_test' is missing |
| Purpose | upload organization testing |
|---|---|
| Dependencies | install fossology sucessfully; create one Folder 'test_folder', how to create one folder, you can refer to the test case http://www.fossology.org/projects/fossology/wiki/Website_sanity_checks/#OrgFoldersMenuTest-Createphp |
| Step | Action | Expected Results |
|---|---|---|
| 1. | click on [Upload]-->[From URL] menu to go to the page 'upload from URL' | |
| 2. | enter the url you want to upload; set the upload name as 'test_file' and set the upload description as 'upload test description', select the upload folder as 'test_folder'; click on the link 'Upload!' on the bottom left | You will get one upload report on this page, it looks like The upload test_file has been scheduled. It is upload #upload_id(this is a link). |
| 3. | click on the link #upload_id; | go to the page 'Show Jobs', wait one while, all the job's status is 'Completed' |
| 4. | click on the [Organize]-->[Uploads]-->[Edit Properties] menu to go to the 'Edit Uploaded File Properties' page; change the upload name of the upload you just upload to 'test_file_file', and change the upload description of the upload you just upload to 'test upload description'; click on link 'Edit!' | click on [Browse] menu to go to the 'Browse' page, you will find the upload name and upload description of the upload you just upload are changed. |
| 5. | click on the [Organize]-->[Uploads]-->[Move] menu to go to the page 'Move upload to different folder' | you are on the page 'Move upload to different folder', #1179 |
| 6. | move the upload 'test_file_file' from folder 'test_foler' to folder 'Software Repository'; click on the link 'Move!' | click on the menu [Browse], you will find that the file 'test_file_file'is moved from 'test_folder' to 'Software Repository' #1185 |
| 7. | click on the menu [Organize]-->[Uploads]-->[Delete Upload File] to go to the 'Delete Uploaded File' page; select the upload 'test_file_file' to delete | click on the menu [Browse], you will find 'test_file_file' is missing |
SearchMenuTest.php¶
| Purpose | check the about page valid |
|---|---|
| Dependencies | install fossology sucessfully; know how to upload(how to upload, you can refer to test case http://www.fossology.org/projects/fossology/wiki/Website_sanity_checks/#OrgUploadsMenuTest-Movephp |
| Step | Action | Expected Results |
|---|---|---|
| 1. | upload one package fossology-1.1.0-1.fc10.i386.rpm | |
| 2. | click on the menu [Search], just enter one file name search-file% | you can get a list of files which have a prefix 'search-file' |
| 3. | click on the menu [Search], just enter one file name plugins | you can get a list of directory which are plugins |
| 4. | you can set other conditions yourself, then search it | should get what you want to get |
Admin¶
| Purpose | |
|---|---|
| Dependencies |
| Step | Action | Expected Results |
|---|---|---|
| 1. | ||
| 2. | ||
| 3. |
- Scheduler
1. Go to [Admin]-->[Scheduler] page, Select an operation as 'status', Select the scheduler or a job as 'Scheduler', then click on 'Submmit' button On the top of this page, you will see the status of the Scheduer, it looks like 'Status of the scheduler successfully.scheduler:15642 revision:(null) daemon:0 jobs:1 log:/var/log/fossology/fossology.log port:24693 verbose:1 '
Note: if there are jobs running, the status of the Scheduer has the status of thosejobs, it looks like 'job:103 status:JOB_STARTED type:wget_agent, priority:0 running:1 finished:0 failed:0
job:107 status:JOB_STARTED type:ununpack, priority:0 running:1 finished:0 failed:0 '