Add manual test cases for label

This commit is contained in:
Wenkai Yin 2018-03-30 18:40:56 +08:00
parent 199ebdb751
commit 2e6202f276
4 changed files with 123 additions and 0 deletions

View File

@ -0,0 +1,28 @@
Test 11-01 - System admins manage global level labels
=======
# Purpose:
To verify that the system administrators can manage(CURD) the global level labels.
# References:
User guide
# Environment:
* This test requires that a Harbor instance is running and available.
# Test Steps:
1. The system admin user logs in to the UI.
2. The admin user creates a global level label from the UI.
3. The admin user edits the label created in Step1.
4. The admin user deletes the label created in Step1.
# Expected Outcome:
* In Step2, the label can be created successfully.
* In Step3, the label can be updated successfully.
* In Step4, the label can be deleted successfully.
# Possible Problems:
None

View File

@ -0,0 +1,31 @@
Test 11-02 - Project admins manage project level labels
=======
# Purpose:
To verify that the project administrators can manage(CURD) the project level labels.
# References:
User guide
# Environment:
* This test requires that a Harbor instance is running and available.
# Test Steps:
1. The project admin user logs in to the UI.
2. The project admin user creates a project level label under a project from the UI.
3. The project admin user edits the label created in Step1.
4. The project admin user deletes the label created in Step1.
5. The project developer user logs in to the UI.
6. The project developer user tries to create a project level label under a project from the UI.
# Expected Outcome:
* In Step2, the label can be created successfully.
* In Step3, the label can be updated successfully.
* In Step4, the label can be deleted successfully.
* In Step6, the project developer user can not create project level labels.
# Possible Problems:
None

View File

@ -0,0 +1,37 @@
Test 11-03 - Add/remove labels to/from images
=======
# Purpose:
To verify that the users whose role >= project developer can add/remove labels to/from images.
# References:
User guide
# Environment:
* This test requires that a Harbor instance is running and available.
* At least one global level label and one project level label are created.
# Test Steps:
1. The project developer user logs in to the UI.
2. The user add a global level label to an image from the UI.
3. The user add a project level label to an image from the UI.
4. The user removes the global label from the image.
5. The user removes the project label from the image.
6. Login in to the UI as a project admin user and repeat the Step2-5.
7. Login in to the UI as a system admin user and repeat the Step2-5.
8. Login in to the UI as a project guest user and try to add a label to an image.
# Expected Outcome:
* In Step2, the global level label can be added to the image successfully.
* In Step3, the project level label can be added to the image successfully.
* In Step4, the global level label can be removed from the image successfully.
* In Step5, the project level label can be removed from the image successfully.
* In Step6, the project admin user can do the same operations as the project developer user.
* In Step7, the system admin user can do the same operations as the project developer user.
* In Step8, the project guest user can not add a label to an image.
# Possible Problems:
None

View File

@ -0,0 +1,27 @@
Test 11-04 - Filter images by label
=======
# Purpose:
To verify that the images can be filtered by labels.
# References:
User guide
# Environment:
* This test requires that a Harbor instance is running and available.
* Create at least two labels and add one of them to an image.
# Test Steps:
1. The project guest user logs in to the UI.
2. The user filters the images by the label that has been added to the image.
3. The user filters the images by the label that has not been added to the image.
# Expected Outcome:
* In Step2, the image list contains the image which is labeled.
* In Step3, the image list doesn't contain the image which is labeled.
# Possible Problems:
None