180+ Web Application Testing Example Test Cases
180+ Web Application Testing Example Test Cases
Cases
Assumptions: Assume that your application supports the following functionalities
Forms with various fields
Child windows
The application interacts with the database
Various search filter criteria and display results
Image upload
Send email functionality
Data export functionality
General Test Scenarios
1. All mandatory fields should be validated and indicated by an asterisk (*) symbol.
2. Validation error messages should be displayed properly in the correct position.
3. All error messages should be displayed in the same CSS style (For Example, using
red color)
4. General confirmation messages should be displayed using CSS style other than error
messages style (For Example, using green color)
5. Tooltips text should be meaningful.
6. Drop-down fields should have the first entry as blank or text like ‘Select'.
7. ‘Delete functionality' for any record on a page should ask for a confirmation.
8. Select/deselect all records option should be provided if page supports record
add/delete/update functionality
9. Amount values should be displayed with correct currency symbols.
10. Default page sorting should be provided.
11. Reset button functionality should set default values for all fields.
12. All numeric values should be formatted properly.
13. Input fields should be checked for the max field value. Input values greater than the
specified max limit should not be accepted or stored in the database.
14. Check all input fields for special characters.
15. Field labels should be standard e.g. field accepting user's first name should be
labeled properly as ‘First Name'.
16. Check page sorting functionality after add/edit/delete operations on any record.
17. Check for timeout functionality. Timeout values should be configurable. Check
application behavior after the operation timeout.
18. Check cookies used in an application.
19. Check if downloadable files are pointing to the correct file paths.
20. All resource keys should be configurable in config files or database instead of hard
coding.
21. Standard conventions should be followed throughout for naming resource keys.
22. Validate markup for all web pages (validate HTML and CSS for syntax errors) to
make sure it is compliant with the standards.
23. Application crash or unavailable pages should be redirected to the error page.
24. Check the text on all pages for spelling and grammatical errors.
25. Check numeric input fields with character input values. A proper validation message
should appear.
26. Check for negative numbers if allowed for numeric fields.
27. Check the number of fields with decimal number values.
28. Check the functionality of buttons available on all pages.
29. The user should not be able to submit a page twice by pressing the submit button in
quick succession.
30. Divide by zero errors should be handled for any calculations.
31. Input data with the first and last position blank should be handled correctly.
GUI And Usability Test Scenarios
1. All fields on a page (For Example, text box, radio options, drop-down lists) should be
aligned properly.
2. Numeric values should be justified correctly unless specified otherwise.
3. Enough space should be provided between field labels, columns, rows, error
messages, etc.
4. The scrollbar should be enabled only when necessary.
5. Font size, style, and color for headline, description text, labels, infield data, and grid
info should be standard as specified in SRS.
6. The description text box should be multi-lined.
7. Disabled fields should be greyed out and users should not be able to set focus on
these fields.
8. Upon click of an input text field, the mouse arrow pointer should get changed to the
cursor.
9. The user should not be able to type in drop-down select lists.
10. Information filled by users should remain intact when there is an error message on
page submit. The user should be able to submit the form again by correcting the errors.
11. Check if proper field labels are used in error messages.
12. Drop-down field values should be displayed in defined sort order.
13. Tab and Shift+Tab order should work properly.
14. Default radio options should be pre-selected on the page load.
15. Field-specific and page-level help messages should be available.
16. Check if the correct fields are highlighted in case of errors.
17. Check if the drop-down list options are readable and not truncated due to field size
limits.
18. All buttons on a page should be accessible by keyboard shortcuts and the user
should be able to perform all operations using a keyboard.
19. Check all pages for broken images.
20. Check all pages for broken links.
21. All pages should have a title.
22. Confirmation messages should be displayed before performing any update or delete
operation.
23. Hourglass should be displayed when the application is busy.
24. Page text should be left-justified.
25. The user should be able to select only one radio option and any combination for
checkboxes.
Test Scenarios For Filter Criteria
1. The user should be able to filter results using all parameters on the page.
2. Refine search functionality should load the search page with all user-selected search
parameters.
3. When there are at least one filter criteria required to perform the search operation,
make sure the proper error message is displayed when the user submits the page
without selecting any filter criteria.
4. When at least one filter criteria selection is not compulsory, the user should be able to
submit the page and the default search criteria should get used to query results.
5. Proper validation messages should be displayed for all invalid values for filter criteria.
https://www.softwaretestinghelp.com/sample-test-cases-testing-web-desktop-applications/