| | | | |
|
Username Field |
Test create a new user successfully | Enter Username = a non-existed user in Database Enter both Password and Confirm Password are same Enter Fullname = character Enter an valid Email Click on Send button
| The system displays: { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Test duplicated Username | Enter a existed Username in DB Enter the valid data for the remain fields Click on Send button
| | | |
Enter “spaces” in the first and last of the existed user in Database Enter the valid data for the remain fields Click on Send button
| | | |
Test empty Username | Enter Usernamr = empty Enter the valid data for the remain fields Click on Send button
| | | |
Enter Username = All spaces Enter the valid data for the remain fields Click on Send button
| | | |
Test valid maxlength | Enter Username = 20 characters Enter the valid data for the remain fields Click on Send button
| The system displays: { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Test invalid maxlength | Enter Username = 21 characters Enter the valid data for the remain fields Click on Send button
| | | |
Test valid minlength | Enter Username = 4 characters Enter the valid data for the remain fields Click on Send button
| The system displays: { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Test invalid minlength | Enter Username = 3 characters Enter the valid data for the remain fields Click on Send button
| | | |
Test trimming of space | Enter “spaces” in the first and last of the entered Username Enter the valid data for the remain fields Click on Send button
| The system displays: { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Test Username is Vietnamese | Enter Username is Vietnamese Enter the valid data for the remain fields Click on Send button
| | | |
Password Field |
Test valid password | Enter both Password and ConfirmPassword are same Enter the valid data for the remain fields Click on Send button
| The system displays: { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Test invalid password | Enter both Password and Confirm Password are not same Enter the valid data for the remain fields Click on Send button
| | | |
Test empty password | Enter Password = empty Enter the valid data for the remain fields Click on Send button
| | | |
Enter Password = all spaces Enter the valid data for the remain fields Click on Send button
| | | |
Test valid maxlength | Enter Username = 20 characters Enter the valid data for the remain fields Click on Send button
| The system displays: { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Test invalid maxlength | Enter Username = 21 characters Enter the valid data for the remain fields Click on Send button
| | | |
Test valid minlength | Enter Username = 6 characters Enter the valid data for the remain fields Click on Send button
| The system displays: { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Test invalid minlength | Enter Username = 5 characters Enter the valid data for the remain fields Click on Send button
| | | |
Test empty confirm password | Enter ConfirmPassword = empty Enter the valid data for the remain fields Click on Send button
| | | |
Enter ConfirmPassword = all spaces Enter the valid data for the remain fields Click on Send button
| | | |
FullName field |
Test valid FullName | Enter FullName = characters Enter the valid data for the remain fields Click on Send button
| The system displays: { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Test empty FullName | Enter FullName = empty Enter the valid data for the remain fields Click on Send button
| | | |
Enter FullName = all spaces Enter the valid data for the remain fields Click on Send button
| | | |
Test valid maxlength | Enter FullName = 50 characters Enter the valid data for the remain fields Click on Send button
| The system displays: { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Test invalid maxlength | Enter FullName = 51 characters Enter the valid data for the remain fields Click on Send button
| | | |
Test trimming of space | Enter “spaces” in the first and last of the entered FullName Enter the valid data for the remain fields Click on Send button
| The system displays: { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Email Field |
Test valid Email | Enter an correct format Email eg:demo@cdm.com Enter the valid data for the remain fields Click on Send button
| The System display { "isSuccess": true, "message": "Create successfully", "data": { "userId": "userID", "username": "username", "password": "password", "confirmPassword": "password", "fullName": "FullName", "email": "email@gmail.com", "activeFlag": true, "mustNotChangeFlag": false }, "statusCode": 200 } | | |
Test invalid Email | Enter an Email without/ missing @ Enter the valid data for the remain fields Click on Send button
| | | |
Enter an Email without/ missing dot (.) Enter the valid data for the remain fields Click on Send button
| | | |
Enter an Email without/ missing domain Enter the valid data for the remain fields Click on Send button
| Status = 400 | | |
Enter an Email name = special chars (!@#$%^&*():"'?/><{} Enter the valid data for the remain fields Click on Send button
| Status = 400 | | |
Enter an Email name is Vietnamese Enter the valid data for the remain fields Click on Send button
| Status = 400 | | |
Enter an Email name has middle space Enter the valid data for the remain fields Click on Send button
| Status = 400 | | |
Test empty Email | Enter Email = Empty Enter the valid data for the remain fields Click on Send button
| | | |
Enter Email = all spaces Enter the valid data for the remain fields Click on Send button
| | | |
Test duplicate Email | Enter an Email existed in DB Enter the valid data for the remain fields Click on Send button
| Status = 400 Message: Email existed
| | |