Reference: Https://wenku.baidu.com/view/e6462707de80d4d8d15a4f1e.html?rec_flag=default&mark_pay_doc=2&mark_rec _page=1&mark_rec_position=5&mark_rec=view_r_1&clear_uda_param=1
Page flipping features are commonly used in several functions:
1, home, previous page, next page, end.
2, the total number of pages, the current page
3. Specify jump Page
4. Specify the number of bars to display per page
1, the page link or button test, the main check test points:
- Display of controls when there are countless data
- On the first page, first and last whether you click
- At the end, the next and last page is clicked
- Four buttons are correct on non-end and non-homepage
- Whether the records in the list are sorted according to the sort specified after the page turn
2, the total number of pages, the current page, the main check test points:
- Total number of pages equals total records/number of per page specified
- The current number of pages is correct
3, the designated jump page, the main check test points:
- Whether you can jump to the specified number of pages normally
- Enter the number of jump pages illegal when processing
4, specify the number of bars per page, the main test points to check
- Whether there is a default number of pages displayed per page
- Specify the number of page bars per page, the list of records to display, and the correct pages
- Handling when entering the number of pages per page is illegal
After analyzing the test points above, it should be possible to design the use case.
Step1:
List No records
Expect
1, four flip controls dimmed and not clickable
2, the list has the corresponding no data information hint
3. Number of pages cannot be specified
4. Cannot specify jump page
5, the total number of pages displayed as 0
6, the current page display is 0
Step2:
Number of records in the list <= the number of bars per page specified
Expect
1, four flip controls dimmed and not clickable
2, the total number of pages displayed as 1
3, the current page display is 1
Step3:
Number of records in List > number of bars per page specified
Expect
1, the default on the first page, the current page is 1
2. The data of the list is sorted correctly according to the specified sort column
3, record number and database match
4, Total pages = number of records/number of bars per page specified
STEP4:
The number of records in the list > the number of bars per page specified, on the homepage
Expect
1, the first page to become gray can not click
2, the previous page to become gray can not click
3, the next page can be clicked, from (Specify the number of bars per page +1) record start display, current page +1
4, end can click, display the last page of records
STEP5:
Number of records in the list > the number of bars per page specified, in the middle of a page
Expect
1, the first page can be clicked, show 1 to the record of the specified number of pages
2, the previous page can be clicked, display the previous page of records
3, next page can be clicked, from the next page of records
4, end can click, display the last page of records
5. The data of the list is sorted correctly according to the specified sort column
6, the current page is the pages
STEP6:
The number of records in the list > the number of bars per page specified, at the end
Expect
1, the first page can be clicked, show 1 to the record of the specified number of pages
2, the previous page can be clicked, display the previous page of records
3, the next page to become gray is not clickable
4, the last turn gray can not click
5. The data of the list is sorted correctly according to the specified sort column
6. The number of pages currently in the last page
STEP7:
Enter the number of bars per page as a positive integer
Expect
1, each page shows the number of bars updated to the specified number of bars
2, the record paging display that exceeds the specified number of bars
3. Total number of pages updated to list of records/pages per page
STEP8:
Enter the number of bars per page 0
Expect
1. Tip "The number of bars per page must be an integer greater than 1"
2, prompt after each page shows the number of bars restored to the last effective number of bars
STEP9:
Enter a negative number of display bars per page
Expect
1, prompt each page show the number of bars must be greater than 1 integer
2, prompt after each page shows the number of bars restored to the last effective number of bars
STEP10:
Enter the number of bars per page longer than the specified length of the database <<>>
Expect
1, the Tip per page can not exceed the number of bars <<>> bit
2, prompt after each page shows the number of bars restored to the last effective number of bars
STEP11:
Enter the number of display bars per page as a string, such as Chinese page number
Expect
1, prompt each page show the number of bars must be greater than 1 integer
2, prompt after each page shows the number of bars restored to the last effective number of bars
STEP12:
Enter the number of display bars per page as special characters, such as%
Expect
1, prompt each page show the number of bars must be greater than 1 integer
2, prompt after each page shows the number of bars restored to the last effective number of bars
STEP13:
Enter the number of display bars per page as an HTML string, as
Expect
1, prompt each page show the number of bars must be greater than 1 integer
2, prompt after each page shows the number of bars restored to the last effective number of bars
STEP14:
Enter the number of pages for the jump to exist
Expect
1, correctly jump to the specified number of pages
STEP15:
Enter the number of pages for a jump that does not exist or is illegal
Expect
1, jump page value is set to 1, display the first page of data
The use case above is the total number of pages, the current number of pages are rubbed into the page control test cases.
Web test--page turn function test case