Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Test Cases: Projects

Michael edited this page Sep 21, 2016 · 11 revisions

TC01: Add a simple project with no relations and no releases

Step Action Result
1 Sign In with a known user User successfully signed in and Home page is displayed
2 Click on Projects tab Projects page is displayed
3 Click Add Project New Project page is displayed with mandatory fields marked with red star
4 Fill mandatory Name with a project name, change other fields if needed values are entered in fields
  1. Sign In with a known user -> User successfully signed in and Home page is displayed
  2. Click on Projects tab -> Projects page is displayed
  3. Click Add Project -> New Project page is displayed with mandatory fields marked with red star
  4. Fill mandatory Name with a project name, change other fields if needed
  5. Click Add Project -> The page remain the same and the message You are editing the original document. is displayed
  6. Click Cancel button -> New project Summary page is displayed
  7. Click on Projects tab -> The new project should be added to the projects list

TC02: Add a full project with relations, releases and send to clearing process

  1. Sign In with a known user -> User successfully signed in and Home page is displayed
  2. Click on Projects tab -> Projects page is displayed
  3. Click Add Project -> New Project page is displayed with mandatory fields marked with red star
  4. Fill mandatory Name with a project name, change other fields if needed
  5. Click Click to add linked Projects -> Search Project dialog is displayed
  6. Click Search and Select the project to be linked (e.g. created in TC01) -> Dialog is closed and selected project is displayed under Linked Projects section
  7. Click Click to add Releases -> Search Release dialog is displayed
  8. Click Search by name and Select a release to be added -> Dialog is closed and selected release is displayed under Linked Releases section
  9. Click Add Project -> The page remain the same and the message You are editing the original document. is displayed
  10. Click Cancel button -> New project Summary page is displayed
  11. Click on Projects tab -> The new project should be added to the projects list
  12. Check Clearing Status by hovering mouse over the numbers. -> The message should be new release, under clearing...
  13. Send open release to clearing by clicking the button Send to fossology, under Actions column -> Fossology Clearing dialog is displayed
  14. Select the release to be sent for clearing and click Send -> Sent message is displayed near the Send to fossology button
  15. Click on project name and check Summary page -> Clearing details should have 1 for Under clearing
  16. Click on Clearing Status > The "Release Clearing State should be Sent to Fossology

TC03: Add a project with releases, no relations, remove a release, and send to clearing process

Same as TC02, with the following extra or modified steps:

After step 6.
6a. Click on Delete icon to delete the linked project -> Do you really want to remove the link to this project? message is displayed
6b. Click OK -> The project is removed from the list of Linked Projects

Within step 8. Select more than one release, with the intention to remove some of them
8a. Click on Delete icon to delete the linked project -> Do you really want to remove the link to this release? message is displayed
8b. Click OK -> The release is removed from the list of Linked Releases

TC04: Delete a project that is first linked to another project and then not linked

  1. Create a new project -> Project is created successfully
  2. Create another project and add first created one as linked project -> Projects are linked successfully
  3. Go to first created project in the projects table and try to delete it -> Message Do you want to delete project name? is displayed
  4. Click OK -> Message The project is used by another project! is displayed
  5. Click OK and check that project is not deleted (e.g. refresh the page by clicking Projects tab)
  6. Go to second created project in the projects table and delete it -> Message Do you want to delete project name? is displayed
  7. Click OK and check that project is deleted successfully
  8. Go to first created project in the table (not linked anymore to second project) and delete it. Check that project is deleted successfully

TC05: Modify an existing project with relations, releases and send to clearing process

  1. Search for a simple project (e.g. created in TC01) and click Edit -> You are editing the original document message is displayed
  2. Execute TC02 from step 5 onward

TC06: Add and modify a project with all project fields filled in

  1. Sign In with a known user -> User successfully signed in and Home page is displayed
  2. Click on Projects tab -> Projects page is displayed
  3. Click Add Project -> New Project page is displayed with mandatory fields marked with red star
  4. Fill in all editable fields under Basic Information, User Information and Admin Information
  5. Click Add Project -> The page remain the same and the message You are editing the original document. is displayed
  6. Click Cancel button -> New project Summary page is displayed
  7. Check all fields on Summary page are filled in correctly
  8. Click Edit button, modify some fields and Update Project

TC07: Duplicate an existing project

  1. Search for an existing project with all fields filled in (e.g. created in TC06) and click Duplicate button under Actions column -> Project Information page is displayed
  2. Check all fields from copied project are unchanged, including Linked Projects and Linked Releases
  3. Fill mandatory Name with a project name and click Add Project -> The page remain the same and the message You are editing the original document. is displayed
  4. Click Cancel button -> New project Summary page is displayed
  5. Check all fields were copied successfully, except the new name of the project