Table 1.
Authority management test process.
Test function | Test input | Expected outcome |
---|---|---|
Add role | Add 3 existing role information in the system; 3 role information with incomplete information; 3 existing role information in the system; directly save once without filling in any information; | The role list shows that there is no role information in the 3 systems just added, the newly added role with incomplete information will give a “Incomplete information” prompt, and the newly added system will prompt “the role already exists,” do not fill in the information to save the prompt required fields |
| ||
Rights profile | Select an existing role, associate several permission function points for the role, and test 10 times | Users associated with the role can operate the functions corresponding to the permissions configured for the role, but cannot operate the functions corresponding to the unconfigured permissions |
| ||
Search role | Enter the role name 3 times, enter 2 other search terms | Only the role information that meets the search criteria is displayed in the role information table |
| ||
Modify selected role | The role information is modified 3 times normally, all fields are blank when one modification is made, and some fields are blank when one modification is made | Normal modification succeeds in modifying the information of the role. When modifying, if the field is left blank, the corresponding required field will be prompted |
| ||
Delete selected role | Select an existing role, delete the role, test 5 times | The selected role was deleted successfully |