Testsuit Name Basic Fossology functionality Estimated run time 3h Note

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.'

emailUserTest.php

noEmailUserTest.php

uploadWEmail.php

uploadWoutEmail.php

Purpose test mail notification function work
Dependencies install fossology sucessfully; start the scheduer; install mail delivery agent
Step Action Expected Results
0. install delivery agent postfix on the test machine, if you want to send mail to this machine, please add users on this machine; if you want to send mail to external network, please confirm your mail server has correct domain name, and set /etc/postfix/main.cf correctly; you if want to send mail intranet, please install postfix on another test machine and add users to receive mails you can send mail from command line on the test machine
1. login with fossy/fossy; add one user test1 with admin permission; set one invalid the mail address; check 'E-mail Notification'; logout and login with test1; upload one file certainly, you can not reveive anything, any error msg?
2. login with fossy/fossy; add one user test1 with admin permission; set one valid the mail address; check 'E-mail Notification'; logout and login with test1; upload one file after all the jobs are finished, wait for a while you can receive one mail
3. login with fossy/fossy; add one user test2 with admin permission; set one valid the mail address; uncheck 'E-mail Notification'; logout and login with test1; upload one file after all the jobs are finished, wait for a while you can not receive one mail

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 http://www.fossology.org/projects/fossology/wiki/Website_sanity_checks#OrgUploadsMenuTest-Deletephp

Purpose test add more agent analysis to one existing upload
Dependencies install fossology sucessfully; start the scheduler
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.

Admin tests

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