Test web end attendance system
Test mainly interactive web end as the center, based on the data returned by the backend logic detecting page is correct, in response to a successful operation, failure abnormality. For a separate front and rear ends of the SPA application, the front end can focus on data rendering and page jumps, will now be tested from the following modules:
- register log in
- User punch
- Statistics
- User Management
- Notice Management
1. registration, login
Directly into the system, if the session has expired or is not logged in
Click the jump registered user registration page, fill out the registration information, request a password must be greater than six
Upload your own photos after registration click to display the loading effect before returning the results in the back-end
After successful registration, jump back to the home prompted to register success
Registration requires administrator certification, or can not log in
Enter the administrator login account password authentication
2. User punch
- Face end server did not open, the following error is
Home prompted the server to
Open the console interface to check and found that the background can not be successful nginx proxy
By testing postman, the request can not reach
- Face abnormal test
Click to open the camera, then click Start punch card, is displayed in front of the back-end authentication confirmation
Non-recognition himself, punch card failure
After the success of face recognition, prompted to enter the ip verify
ip validation after failing to specify that you must connect wifi
Do not open the camera directly Click Start punch, prompting server error
- Start, end punch abnormal test
- Punch success page, the state has not punch into a punch
Click again to open the punch is successful, the user is being prompted to punch in and punch information display
Before starting the end of punch card punch clicks, warning
It is not playing 30 minutes before the end of the punch card, confirm dialog
Clicking confirm, identified as a less than 30 minutes or punch to punch bit next day, suggesting that this check-failure
3. Statistics
Normal display data punch 30 days
4. User Management
- Administrator login, users will just registered to ordinary users
Pop-up box operation
Successful operation, indicating success, and page data is updated
General lack of user access rights management page Tips
- delete users
A confirmation prompt deletion
Successfully deleted, suggesting success, and update the page data
5. Notice Management
- Add announcement
Click on the left menu management announcement
Click Add announcement, jump new announcement page
Click announcement, prompt publishing success
Click Save announcement, suggesting saved successfully
Back, click to see the details, jump to the announcement details page
- Modify Announcement
Click Edit announcement, announcement jump to modify the page
Click Cancel release, suggesting that the operation was successful and update the data page
- Delete announcement
Click Delete to confirm dialog
Click to confirm the deletion, suggesting that the operation was successful and update the data page