« Previous -
Version 6/16
(diff) -
Next » -
Current version
larry shi, 02/23/2012 11:11 am
| Testsuit Name | Basic Fossology functionality | Estimated run time | 2h | Note |
|---|
- CreateFolderTest.php
- DeleteFolderTest.php
- editFolderDescriptionOnlyTest.php
- editFolderNameOnlyTest.php
- editFolderTest.php
- moveFolderTest.php
- DupFolderTest.php
- moveUploadTest.php
- upload properties
- upload removal
- UploadFileTest.php
- UploadUrlTest.php
- uploadSrvFileTest.php
- UploadSrvArchiveTest.php
- uploadSrvDirTest.php
- addUserTest.php
- dupUserTest.php
- Browse tests
- Schedule Agents tests
CreateFolderTest.php¶
DeleteFolderTest.php¶
editFolderDescriptionOnlyTest.php¶
editFolderNameOnlyTest.php¶
editFolderTest.php¶
moveFolderTest.php¶
The tests above are tested in http://www.fossology.org/projects/fossology/wiki/Website_sanity_checks/#OrgFoldersMenuTest-Createphp and http://www.fossology.org/projects/fossology/wiki/Website_sanity_checks/#OrgFoldersMenuTest-Editphp
DupFolderTest.php¶
can create duplicate upload¶
| Purpose | test if can create 2 diff folders under one folder; if can upload 2 duplicate upload |
|---|---|
| Dependencies | install fossology sucessfully |
| 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 |
moveUploadTest.php¶
upload properties¶
upload removal¶
The tests above are tested in http://www.fossology.org/projects/fossology/wiki/Website_sanity_checks#OrgUploadsMenuTest-Deletephp
UploadFileTest.php¶
UploadUrlTest.php¶
uploadSrvFileTest.php¶
UploadSrvArchiveTest.php¶
uploadSrvDirTest.php¶
The tests above are tested in http://www.fossology.org/projects/fossology/wiki/20-specific_Test_Suite#Functionality
addUserTest.php¶
The test above is tested in http://www.fossology.org/projects/fossology/wiki/Common_UI_Test_Cases#plugin_disable
dupUserTest.php¶
| 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.' |
Browse tests¶
| Purpose | check the Browse functions work |
|---|---|
| Dependencies | install fossology sucessfully |
| 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 |
Schedule Agents tests¶
These tests are tests in
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
Admin Scheduler is tested in http://www.fossology.org/projects/fossology/wiki/Common_UI_Test_Cases#GetRunnableJobList