diff --git a/content/en/docs/Development/TestCases/Test-Cases-Moderations.md b/content/en/docs/Development/TestCases/Test-Cases-Moderations.md
index bd9d175..e465493 100644
--- a/content/en/docs/Development/TestCases/Test-Cases-Moderations.md
+++ b/content/en/docs/Development/TestCases/Test-Cases-Moderations.md
@@ -4,52 +4,55 @@ linkTitle: "Moderation"
weight: 10
---
-## Accept moderation request, for visible projects by other users
+## TC01: Accept moderation request, for visible projects by other users
Step | Action | Result
---:|:-----|:----
-1 | Open first browser instance ((e.g. "firefox.exe -p "profile1" -no-remote") and sign in with a known _First_ user | User successfully signed in and _Home_ page is displayed
-2 | Open a second browser instance ((e.g. "firefox.exe -p "profile2" -no-remote") and sign in with a known _Second_ user | User successfully signed in and _Home_ page is displayed
+1 | Open a first browser instance (Eg: "firefox.exe -p "profile1" -no-remote") and sign in with a known _First_ user | User successfully signed in and _Home_ page is displayed
+2 | Open a second browser instance (Eg: "firefox.exe -p "profile2" -no-remote") and sign in with a known _Second_ user | User successfully signed in and _Home_ page is displayed
3 | Activate _First_ browser instance | Instance is active
-4 | Create a new project visible for _Second_ user (e.g. _Me and Moderators_, _Group and Moderators_, _Everyone_) | Project is created successfully
+4 | Create a new project visible for _Second_ user
Eg:
- Name: Project is created by First user
- Project visibility: Everyone | Project is created successfully
5 | Activate _Second_ browser instance | Instance is active
-6 | Search for the above created project and click _Edit_ | _You will create a moderation request if you update._ message is displayed
-7 | Edit Description field or other fields and click _Update Project_ | _Moderation request was sent to update the Project name!_ message is displayed.
-8 | Activate _First_ browser instance | Instance is active
-9 | Check _My Task Assignments_ on _Home_ page | The above project that needs moderation is displayed with status _PENDING_
-10 | Click on _Moderation_ page | The moderation request of _Second_ user is displayed with state _Pending_
-11 | Click on moderation request | _Moderation Change Project_ page is displayed, with proposed changes from step 7 listed
-12 | Click on _Accept Request_ | _You have accepted the previous moderation request._ message is displayed, and State changes to _Approved_
-13 | Check _My Task Assignments_ on _Home_ page | Status is _APPROVED_
-14 | Activate _Second_ browser instance | Instance is active
-15 | Check _My Task Submissions on _Home_ page | Status is _APPROVED_
-16 | Open the _Projects_ tab and click on previously modified project on step 7 | Project _Summary_ page displayed successfully
-17 | Check the moderation requested changes | Changes are visible in the corresponding fields
+6 | Search for the above created project and click _Edit_ button | _"Success: You will create a moderation request if you update"_ message is displayed
+7 | Edit _Description_ field or other fields
Eg:
Description: "Update description to create a moderation request!!"
Click _Update Project_ button| Create moderation request dialog is displayed
+8 | Fill in _Please comment your changes_ field
Eg: I want to update this project. Please accept for me. Thanks @@.
Click _Send moderation request_ button | Show message: _"Success: Moderation request was sent to update the Project {nameProject} {(version)}!"_
+9 | Activate _First_ browser instance | Instance is active
+10 | Check status of project in the _MY TASK ASSIGNMENTS_ table on _Home_ page | The above project that needs moderation is displayed with status _Pending_
+11 | Click _Requests_ page | The moderation request of _Second_ user is displayed with state _Pending_
+12 | Click the project name in the _Document Name_ column | - _"Success: You have assigned yourself to this moderation request."_ message is displayed
- _Moderation Request Information_ page is displayed, with proposed changes from step 7 listed
+13 | Input a comment in the _Comment on Moderation Decision_ box. Eg: _The request is approved_
Click _Accept Request_ button | Request page display and show message: _"Success: You have accepted the moderation request"_
+14 | Click _Closed Moderation Requests_ tab
Check state of _Project is created by First user_ project | State changed to _Approved_
+15 | Check status of project in the _MY TASK ASSIGNMENTS_ table on _Home_ page | The request is removed from the table
+16 | Activate _Second_ browser instance | Instance is active
+17 | Check status of project in the _MY TASK SUBMISSIONS_ table on _Home_ page | Status is _Approved_
+18 | Open the _Projects_ page and click on previously modified project on step 7 | Project _Summary_ page displayed successfully
+19 | Check the moderation requested changes | Changes are visible in the corresponding fields: _Description_ field was changed to _"Update description to create a moderation request!!"_
-## Decline moderation request, for visible projects by other users
+## TC02: Decline moderation request, for visible projects by other users
Step | Action | Result
---:|:-----|:----
1-11 | Same as in TC01
-12 | Click on _Decline Request_ | _You have declined the previous moderation request_ message is displayed, and State changes to _Rejected_
-13 | Check _My Task Assignments_ on _Home_ page | Status is _REJECTED_
-14 | Activate _Second_ browser instance | Instance is active
-15 | Check _My Task Submissions on _Home_ page | Status is _REJECTED_
-16 | Open the _Projects_ tab and click on previously modified project on step 7 | Project _Summary_ page displayed successfully
-17 | Check the moderation requested changes | Changes are not visible in the corresponding fields
+12 | Input a comment in the _Comment on Moderation Decision_ box. Eg: _The request is declined_
Click _Decline Request_ button| Requests page display and show message: _"Success: You have rejected the moderation request"_
+13 | Click _Closed Moderation Requests_ tab
Check state of the above rejected project | State changed to _Rejected_
+14 | Check status of project in the _MY TASK ASSIGNMENTS_ table on _Home_ page | The request is removed from the table
+15 | Activate _Second_ browser instance | Instance is active
+16 | Check status of project in the _MY TASK SUBMISSIONS_ table on _Home_ page | Status is _Rejected_
+17 | Open the _Projects_ page and click on previously modified project on step 7 | Project _Summary_ page displayed successfully
+18 | Check the moderation requested changes | Changes are not visible in the corresponding fields: data of the project is not changed.
-## Remove Me from Moderators for moderation request, for visible projects by other users
+## TC03: Remove Me from Moderators for moderation request, for visible projects by other users
Step | Action | Result
---:|:-----|:----
1-11 | Same as in TC01
-12 | Click on _Remove Me from Moderators_ | _You are the last moderator for this request - you are not allowed to unsubscribe._ message is displayed (assuming only _First_ user was listed under _Moderators_ column in step 10)
-13 | Click on _Decline Request_ | _You have declined the previous moderation request_ message is displayed, and State changes to _Rejected_
-14 | Edit the project and add a new moderator (e.g. _Third_ user) under _Moderators_ field | Project updated successfully.
+12 | Click _Remove Me from Moderators_ button | - _"Warning: You are the last moderator for this request, you are not allowed to unsubscribe !"_ message is displayed (assuming only _First_ user was listed under _Moderators_ column in step 10)
- Can't remove from Moderators. Nothing to change
+13 | Input a comment in the _Comment on Moderation Decision_ box. Eg: _Decline the request._
Click _Decline Request_ button| Requests page display and show message: _"Success: You have rejected the moderation request"_
+14 | Edit the project and add a new moderator (Eg: _Third_ user) under _Moderators_ field | Project updated successfully
15 | Activate _Second_ browser instance | Instance is active
16 | Edit the project and create a new moderation request | Moderation request was sent
17 | Activate _First_ browser instance | Instance is active
-18 | Click on _Moderation_ page | The moderation request of _Second_ user is displayed with state _Pending_
-19 | Click on moderation request | _Moderation Change Project_ page is displayed, with proposed changes from step 7 listed
-20 | Click on _Remove Me from Moderators_ | _You are removed from the list of moderators for the previous moderation request. You have no open Requests._ message is displayed. Also the document is deleted from moderation list.
-21 | Login with the _Third_ user and check the _Moderation_ tab | The moderation request of _Second_ user is displayed with state _Pending_
+18 | Click _Moderation_ page | The moderation request of _Second_ user is displayed with state _Pending_
+19 | Click the project name which the moderation was created in step 16 | - _"Success: You have assigned yourself to this moderation request."_ is displayed
- _Moderation Request Information_ page is displayed, with proposed changes from step 16 listed
+20 | Click _Remove Me from Moderators_ button| _"Success: You have unassigned yourself from the moderation request"_ message is displayed. Also the document is deleted from moderation list.
+21 | Login with the _Third_ user and check the _Moderation request_ in _Request_ page | The moderation request of _Second_ user is displayed with state _Pending_
\ No newline at end of file
diff --git a/content/en/docs/Development/TestCases/Test-Cases-Packages.md b/content/en/docs/Development/TestCases/Test-Cases-Packages.md
new file mode 100644
index 0000000..b64b6ef
--- /dev/null
+++ b/content/en/docs/Development/TestCases/Test-Cases-Packages.md
@@ -0,0 +1,69 @@
+---
+title: "Packages"
+linkTitle: "Packages"
+weight: 10
+---
+
+## TC01: Create a package with required fields
+
+Step | Action | Result
+---:|:-----|:----
+1 | Sign In with a known user | User successfully signed in and _Home_ page is displayed
+2 | Click _Packages_ tab
Click _Add Package_ button| The _Create Package_ page is displayed
+3 | Input valid data into required fields
_Eg:_
- Name: package1
- Version: 1.0.0
- Package Type: Framework
- PURL (Package URL): pkg:npm/angular-sanitize@1.8.2 | Values are entered in the fields
+4 | Click _Create Package_ button | - The message: _"Success: Package created successfully"_ is displayed at the left corner
- Redirect to the _Package list_ page
- The new package is added to the package list
+5 | Search for the new project then click the hyperlink of the newly created package name | Redirect to view page of the created package
+6 | Check data of all fields | Data in all fields match with input values
+
+## TC02: Create a package with all fields
+
+Step | Action | Result
+---:|:-----|:----
+1 | Sign In with a known user
Click _Packages_ tab
Click _Add Package_ button | The _Create Package_ page is displayed
+2 | Input valid data into all editable fields | Values are entered in the fields
+3 | Click _Create Package_ button | - The message: _"Success: Package created successfully"_ is displayed at the left corner
- Redirect to the _Package list_ page
- The new package is added to the package list
+4 | Search for the new package then click the hyperlink of the newly created package name | Redirect to view page of the created package
+5 | Check data of all fields | Data in all fields match with input values
+
+## TC03: Update some fields for package
+
+Step | Action | Result
+---:|:-----|:----
+1 | Sign In with a known user
Click _Component_ tab
Create a component with name is _ComponentA_
Create a release with name is _ComponentA (1.0.1)_ | Release _ComponentA (1.0.1)_ is created successfully
+2 | Click _Packages_ tab
Create a new package with name and version are _Package1 (1.0.1)_ | Package _Package1 (1.0.1)_ is created successfully
+3 | At advanced Search, search for newly created package
_Eg:_ Package1 (1.0.1)
Click _Edit Package_ icon at _Actions_ column | _Update Package_ page is displayed
+4 | Update data of some fields
_Eg:_
- Version: 1.0.2
- Homepage URL: pkg:npm/@microsoft/applicationinsights-web@2.5.11
- Release: ComponentA (1.0.1) | Data is filled in fields match with input values
+5 | Click _Update Package_ button | - The message: _"Success: Package updated successfully"_ is displayed at the left corner
- Redirect to the package list page
+6 | Search for the updated project then click the hyperlink of the package name | Redirect to view page of the updated package
+7 | Check data of all fields | Data in all fields match with data at update page
+
+## TC04: Link package to project with release of the package has not linked to the project yet
+
+Step | Action | Result
+---:|:-----|:----
+1 | Create Component with name is _ComponentA_
Create a release with name is _ComponentA (1.0.1)_| Release is created successfully
+2 | Click _Packages_ tab
Click _Add Package_ button
Create a new package with:
- Name: _PackageA_
- Version: _(1.0.1)_
- Release: _ComponentA (1.0.1)_| Package is created successfully
+3 | Click _Project_ tab
Create project with name is _ProjectA_ | Project is created successfully
+4 | In _Edit ProjectA project_ page then click _Linked Packages_ tab
Click _Add Packages_ button | Dialog _Link Packages_ is displayed
+5 | Input _PackageA_ in textbox then click _Search_ button
Choose _PackageA_ package then click _Link Packages_ button | Information of the _PackageA_ package is displayed correctly in the table
+6 | Click _Update Project_ button | - Redirect to the _ProjectA_ project view screen
- Information of _Linked Package_ tab is correct with input data
+7 | Click _License Clearing_ tab, check information of the table | Display data of _ComponentA (1.0.1)_ release with correctly information
+
+## TC05: Unlink package from the project
+
+Step | Action | Result
+---:|:-----|:----
+1 | Sign In with a known user
Click _Packages_ tab
Create a new package with name and version are _PackageA (1.0.1)_| Package is created successfully
+2 | Click _Project_ tab
Create a project with name is _ProjectA_ and then add _PackageA_ newly created as linked package of _ProjectA_ project | Project is created successfully
+3 | In edit project page, click _Linked Packages_ tab
Click _Delete_ icon of PackageA (1.0.1) package
Click _Delete Link_ button | Data of _PackageA (1.0.1)_ package is removed from package table
+4 | Click _Update Project_ button | - Redirect to view _ProjectA_ page
- Project _ProjectA_ is updated successfully
- Data in the _Linked Packages_ tab: _PackageA (1.0.1)_ package information is removed
+
+## TC06: Delete a package that is first linked to a project and then not
+
+Step | Action | Result
+---:|:-----|:----
+1 | Sign In with a known user
Click _Packages_ tab
Create a new package with name and version are _PackageA (1.0.1)_| Package is created successfully
+2 | Click _Projects_ tab
Create a project with name is _ProjectA_ and then add _PackageA_ newly created as linked package of _ProjectA_ project | Project is created successfully
+3 | Click _Packages_ tab
At advanced Search, search for newly created package
_Eg:_ PackageA(1.0.1)
Click _Delete Package_ icon in _Actions_ column of this package | Dialog _"Delete Package?"_ display with message: _"Do you really want to delete the package {packageName} ({package version})?"_
+4 | Click _Delete Package_ button | Error message is displayed: _"Package cannot be deleted!"_
+5 | Unlink _PackageA_ package from _ProjectA_ project
Re-delete _PackageA(1.0.1)_ package follow steps from 3-4| - Delete _PackageA_ package successfully with message "Deleted successfully!" in the dialog
- Package _PackageA(1.0.1)_ is not display in the package list table
\ No newline at end of file
diff --git a/content/en/docs/Development/TestCases/Test-Cases-Projects.md b/content/en/docs/Development/TestCases/Test-Cases-Projects.md
index ace55a9..b344ff1 100644
--- a/content/en/docs/Development/TestCases/Test-Cases-Projects.md
+++ b/content/en/docs/Development/TestCases/Test-Cases-Projects.md
@@ -4,89 +4,112 @@ linkTitle: "Projects"
weight: 10
---
-## Add a simple project with no relations and no releases
+## 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
+2 | Click _Projects_ tab | _Projects_ page is displayed
+3 | Click _Add Project_ button| _New Project_ page is displayed with mandatory fields marked with red star:
- Summary tab: Name, Visibility, Project Type, Group
- Administration tab: Project State
+4 | Fill mandatory _Name_ with a project name, change other fields if needed
Eg:
- Name: PROJECT_REQUIRED_FIELDS| Values are entered in the fields
+5 | Click _Create Project_ button| - Navigate to the new project's viewing screen with the message _"Success: Your project is created"_ is displayed
- New project _Summary_ page is displayed
+6 | Click _Projects_ tab | - The new project _"PROJECT_REQUIRED_FIELDS"_ should be added to the projects list
- Data of the project correctly, matches with input data
-## Add a full project with relations, releases and send to clearing process
+## 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_
+1 | Sign In with a known user
Click _Projects_ tab
Click _Add Project_ button
Input Name as "A_FULL_PROJECTS"
Fill in all editable fields in _Summary_ and _Administration_ links | Values are entered in the fields
+2 | Click _Linked Releases And Projects_ link | _Linked Releases And Projects_ page is displayed
+3 | Click _Add Projects_ button | _Search Project_ dialog is displayed
+4 | Click _Search_ button then select a project to be linked (Eg: created in TC01 "PROJECT_REQUIRED_FIELDS")
Click _Link Projects_ button| Dialog is closed and selected project is displayed under _Linked Projects_ section
+5 | Click _Add Releases_ button | _Search Release_ dialog is displayed
+6 | Click _Search_ button
Select releases to be linked
Click _Link Releases_ button| Dialog is closed and selected release is displayed under _Linked Releases_ section
+7 | Click _Linked Packages_ link | _Linked Packages_ page is displayed
+8 | Click _Add Packages_ button | _Search Package_ dialog is displayed
+9 | Click _Search_ button in the dialog
Select an orphan package to be added then click _Link Packages_ button | Dialog is closed and selected release is displayed under _Linked Packages_ section
+10 | Click _Create Project_ button | - Navigate to the new project's viewing screen with the message _"Success: Your project is created"_ is displayed
- New project _Summary_ page is displayed
+11 | Click _Projects_ tab
At _Advanced Search_ area, input _"A_FULL_PROJECTS"_ in the _"Project Name"_ textbox
Click _Search_ button| The new project should be added to the projects list with data correctly, matches with input data
+12 | In new project, check _Clearing Status_ by hovering mouse over the numbers | The message should be _{number} Releases out of {total number} have approved clearing reports (including sub-projects)._
+13 | Click _Create Clearing Request_ icon under _Actions_ column | The dialog _Create Clearing Request_ is displayed
+14 | Choose clearing team email id, _Clearing Type_ and _Preferred Clearing Date_ | The data in the fields is displayed as the selected data
+15 | Click _Create Request_ button | The message:
_Clearing Request {clearing request id} created successfully!
Clearing team will confirm on the agreed clearing date._
is displayed in the dialog
+16 | Click _Close_ button in the dialog | The dialog is closed
+17 | Re-click the _Create Clearing Request_ icon under _Actions_ column | The _View Clearing Request_ dialog is displayed with:
- Requesting User: {requested user}
- Created on: {created request date}
- Preferred Clearing Date: {displayed as input data}
- Clearing Team: {email of chosen clearing team}
- Priority: LOW
- Request Status: NEW
+18 | Click _Close_ button in the dialog | The dialog is closed
-## Add a project with releases, no relations, remove a release, and send to clearing process
+
+## TC03: Add a project with releases, no relations, remove a release
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
+1 | Sign In with a known user
Click _Projects_ tab
Click _Add Project_ button
Fill mandatory Name with a project name, change other fields if needed
Click _Linked Releases And Projects_ link
Click _Add Projects_ button | _Search Project_ dialog is displayed
+2 | Click _Search_ and select the project to be linked (Eg: created in TC01 "PROJECT_REQUIRED_FIELDS")
Click _Link Projects_ button | Dialog is closed and selected project is displayed under _Linked Projects_ section
+3 | Click _Delete_ icon to delete the linked project | Message is displayed: _"Do you really want to remove the link to project {linked project name}?"_
+4 | Click _Delete Link_ button | The project is removed from the list of _Linked Projects_
+5 | Click _Add Releases_ button | _Search Release_ dialog is displayed
+6 | Click _Search_ by name and select a release to be added then click _Link Releases_ button| Dialog is closed and selected release is displayed under _Linked Releases_ section
+7 | Click _Delete_ icon to delete the linked release | Message is displayed: _"Do you really want to remove the link to release {linked release name}?"_
+8 | Click _Delete Link_ button | The release is removed from the list of _Linked Releases_
+9 | Click _Linked Packages_ link
Click _Add Packages_ button | Search Release dialog is displayed
+10 | Click _Search_ button in the dialog
Select an orphan package to be added then click _Link Packages_ button | Dialog is closed and selected release is displayed under _Linked Packages_ section
+11 | Click _Delete_ icon to delete the linked package | Message is displayed: _"Do you really want to remove the link to package {linked package name}?"_
+12 | Click _Delete Link_ button | The release is removed from the list of _Linked Packages_
+13 | Click _Create Project_ button | Navigate to the new project's viewing screen with the message _"Success: Your project is created"_ is displayed
+14 | Click _Projects_ tab | The new project should be added to the projects list
+15 | In newly created project, check _Clearing Status_ by hovering mouse over the numbers of the project | The message should be 0 Releases out of 0 have approved clearing reports (including sub-projects)
-##TC04: Delete a project that is first linked to another project and then not linked
+## 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
+1 | Create a new project with name is _Child Project_ | _Child Project_ project is created successfully
+2 | Create another project with name is _Parent Project_ and add previously created _Child Project_ as linked project of _Parent Project_ | _Parent Project_ project is created successfully with linked project is _Child Project_ project
+3 | Click _Projects_ tab
At _Advanced Search_ area, input _Child Project_ in the _Project Name_ textbox
Click _Search_ button| _Child Project_ project display in the result table
+4 | Click _Delete_ icon to delete _Child Project_ project | Screen display dialog with message: _"Do you really want to delete the project Child Project?"_
+5 | Click _Delete Project_ button | Display message in the dialog: _"The project cannot be deleted, since it is used by another project!"_
+6 | Click _Cancel_ button | Dialog is closed and _Child Project_ project wasn't deleted in the table
+7 | Go to _Parent Project_ project in the project table and delete it
Click _Delete_ button | _Parent Project_ project is deleted successfully
+8 | Go to _Child Project_ project in the project table and re-delete it | _Child Project_ project is deleted successfully
-## Modify an existing project with relations, releases and send to clearing process
+## 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
+1 | Create a new project. Eg: _PROJECT_REQUIRED_FIELDS_ | The project is created successfully
+2 | Click _Project_ tab
At _Advanced Search_ area, search for a simple project
Eg: project created in TC01: input "PROJECT_REQUIRED_FIELDS" in the "Project Name" textbox
Click _Search_ button
Click _Edit_ icon of "PROJECT_REQUIRED_FIELDS" project | _Summary_ page is displayed
Screen display message: _"Success: You are editing the original document."_
+3 | Update project name to _PROJECT_REQUIRED_FIELDS_updated_ | Values are entered in the field
+4 | Click _Linked Releases And Projects_ link | _Linked Releases And Projects_ page is displayed
+5 | Click _Add Projects_ button | _Search Project_ dialog is displayed
+6 | Click _Search_ and select the project to be linked (Eg: created in TC02 "A_FULL_PROJECTS")
Click _Link Projects_ button | Dialog is closed and selected project is displayed under _Linked Projects_ section
+7 | Click _Add Releases_ button | _Search Release_ dialog is displayed
+8 | Click _Search_ button
Select an release to be added then click "Link Releases" button | Dialog is closed and selected release is displayed under _Linked Releases_ section
+9 | Click _Linked Packages_ link | _Linked Packages_ page is displayed
+10 | Click _Add Packages_ button | _Search Release_ dialog is displayed
+11 | Click _Search_ button in the dialog
Select an orphan package to be added then Click _Link Packages_ button | Dialog is closed and selected release is displayed under _Linked Packages_ section
+12 | Click _Update Project_ button | - Navigate to the project's viewing screen with the message _"Success: Project {project name} updated successfully!"_ is displayed
- The project is updated according to the input data
+13 | Click _Projects_ tab
At _Advanced Search_ area, input "PROJECT_REQUIRED_FIELDS_updated" in the _Project Name_ textbox
Click _Search_ button | The project name _PROJECT_REQUIRED_FIELDS_updated_ is displayed in the project list table
+14 | Click _Create Clearing Request_ icon under _Actions_ column | The dialog _Create Clearing Request_ is displayed
+15 | Choose clearing team emaild id, _Clearing Type_ and _Preferred Clearing Date_ | The data in the fields is displayed as the selected data
+16 | Click _Create Request_ button | The message:
_Clearing Request {clearing request id} created successfully!
Clearing team will confirm on the agreed clearing date._
is displayed in the dialog
+17 | Click _Close_ button in the dialog | The dialog is closed
+18 | Re-click the _Create Clearing Request_ icon under _Actions_ column | The _View Clearing Request_ dialog is displayed with:
- Requesting User: {requested user}
- Created on: {created request date}
- Preferred Clearing Date: {displayed as input data}
- Clearing Team: {email of chosen clearing team}
- Priority: LOW
- Request Status: NEW
+19 | Click _Close_ button in the dialog | The dialog is closed
-## Add and modify a project with all project fields filled in
+## 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
+1 | Click _Projects_ tab
Click _Add Project_ button
Input Name as _A_FULL_BASIC_PROJECT_
Fill in all editable fields in _Summary_ and _Administration_ links | _Projects_ page is displayed | Values are entered in the fields
+2 | Click _Create Project_ button | Navigate to the new project's viewing screen with the message _"Success: Your project is created"_ is displayed
+3 | Click _Edit Project_ button | Summary page is displayed with message: _"Success: You are editing the original document."_
+5 | Modify some fields
Eg:
- Name: A_FULL_BASIC_PROJECT_changed
- Clearing state (in Administration tab): In Progress
Click _Update Project_ button | - Screen is display view page and the message _"Success: Project A_FULL_BASIC_PROJECT_changed updated successfully!."_ is displayed
- Values are updated successfully
-## Duplicate an existing project
+## 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
+1 | Search for an existing project with all fields filled in (Eg: created in TC02 A_FULL_PROJECTS project) and click _Duplicate_ button under _Actions_ column | Project _Information_ page is displayed
+2 | Check all fields from copied project | - In the Administration tab, the default for the _Clearing State_ field is _Open_
- Other fields are duplicated, including _Linked Projects_, _Linked Releases_ and _Linked Packages_
+3 | Change version. Eg: 1.0.5-duplicate
Click _Create Project_ button| Navigate to the new project's viewing screen with the message _"Success: Your project is created"_ is displayed
+4 | Check all fields | All fields were copied successfully, except the new name and _Project Clearing State_ of the project