Skip to content

Test Cases Projects

Anupam Ghosh edited this page Jun 28, 2022 · 1 revision

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 the fields
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

Step Action Result
1 Click on Projects tab Projects page is displayed
2 Click Add Project New Project page is displayed with mandatory fields marked with red star
3 Fill mandatory Name with a project name, change other fields if needed Values are entered in the fields
4 Click Click to add linked Projects Search Project dialog is displayed
5 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
6 Click Click to add Releases Search Release dialog is displayed
7 Click Search by name and Select a release to be added Dialog is closed and selected release is displayed under Linked Releases section
8 Click Add Project The page remain the same and the message You are editing the original document. is displayed
9 Click Cancel button New project Summary page is displayed
10 Click on Projects tab The new project should be added to the projects list
11 Check Clearing Status by hovering mouse over the numbers. The message should be new release, under clearing...
12 Send open release to clearing by clicking the button Send to fossology, under Actions column Fossology Clearing dialog is displayed
13 Select the release to be sent for clearing and click Send Sent message is displayed near the Send to fossology button
14 Click on project name and check Summary page Clearing details should have 1 for Under clearing
15 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

Step Action Result
1-5 Same as in TC02
5a Click on Delete icon to delete the linked project Do you really want to remove the link to this project? message is displayed
5b Click OK The project is removed from the list of Linked Projects
6 Click Click to add Releases Search Release dialog is displayed
7 Click Search by name and Select more than one release to be added Dialog is closed and selected releases are displayed under Linked Releases section
7a Click on Delete icon to delete one of the linked release Do you really want to remove the link to this release? message is displayed
7b Click OK The release is removed from the list of Linked Releases
8-15 Same as in TC02

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

Step Action Result
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 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 Project is deleted successfully
8 Go to first created project in the table (not linked anymore to second project) and delete it Project is deleted successfully

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

Step Action Result
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 steps 5-16 from TC02

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

Step Action Result
1 Click on Projects tab Projects page is displayed
2 Click Add Project New Project page is displayed with mandatory fields marked with red star
3 Fill in all editable fields under Basic Information, User Information and Admin Information Values are entered in the fields
4 Click Add Project The page remain the same and the message You are editing the original document. is displayed
5 Click Cancel button New project Summary page is displayed
6 Check all fields on Summary page Values are filled in correctly
7 Click Edit button, modify some fields and Update Project Values are updated successfully

TC07: Duplicate an existing project

Step Action Result
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 All fields 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 All fields were copied successfully, except the new name of the project
Clone this wiki locally