Packages

TC01: Create a package with required fields

StepActionResult
1Sign In with a known userUser successfully signed in and Home page is displayed
2Click Packages tab
Click Add Package button
The Create Package page is displayed
3Input 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
4Click 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
5Search for the new project then click the hyperlink of the newly created package nameRedirect to view page of the created package
6Check data of all fieldsData in all fields match with input values

TC02: Create a package with all fields

StepActionResult
1Sign In with a known user
Click Packages tab
Click Add Package button
The Create Package page is displayed
2Input valid data into all editable fieldsValues are entered in the fields
3Click 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
4Search for the new package then click the hyperlink of the newly created package nameRedirect to view page of the created package
5Check data of all fieldsData in all fields match with input values

TC03: Update some fields for package

StepActionResult
1Sign 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
2Click Packages tab
Create a new package with name and version are Package1 (1.0.1)
Package Package1 (1.0.1) is created successfully
3At advanced Search, search for newly created package
Eg: Package1 (1.0.1)
Click Edit Package icon at Actions column
Update Package page is displayed
4Update 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
5Click Update Package button- The message: “Success: Package updated successfully” is displayed at the left corner
- Redirect to the package list page
6Search for the updated project then click the hyperlink of the package nameRedirect to view page of the updated package
7Check data of all fieldsData in all fields match with data at update page
StepActionResult
1Create Component with name is ComponentA
Create a release with name is ComponentA (1.0.1)
Release is created successfully
2Click 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
3Click Project tab
Create project with name is ProjectA
Project is created successfully
4In Edit ProjectA project page then click Linked Packages tab
Click Add Packages button
Dialog Link Packages is displayed
5Input 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
6Click Update Project button- Redirect to the ProjectA project view screen
- Information of Linked Package tab is correct with input data
7Click License Clearing tab, check information of the tableDisplay data of ComponentA (1.0.1) release with correctly information
StepActionResult
1Sign 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
2Click 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
3In 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
4Click 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

StepActionResult
1Sign 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
2Click 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
3Click 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})?”
4Click Delete Package buttonError message is displayed: “Package cannot be deleted!”
5Unlink 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