Database Testing Test Cases - All About Testing Database Testing Test Cases

Friday 4 October 2019

Database Testing Test Cases

1. Check if correct data is getting saved in the database upon successful page submit

2. Check values for columns which are not accepting null values

3. Check for data integrity. Data should be stored in single or multiple tables based on design

4. Index names should be given as per the standards e.g. IND_<Tablename>_<ColumnName>

5. Tables should have a primary key column

6. Table columns should have description information available (except for audit columns like created date, created by, etc.)

7. For every database add/update operation log should be added

8. Required table indexes should be created

9. Check if data is committed to the database only when the operation is successfully completed

10. Data should be rolled back in case of failed transactions

11. Database name should be given as per the application type i.e. test, UAT, sandbox, live (though this is not a standard it is helpful for database maintenance)

12. Database logical names should be given according to database name (again this is not standard but helpful for DB maintenance)

13. Stored procedures should not be named with prefix “sp_”

14. Check values for table audit columns (like createddate, createdby, updatedate, updatedby, isdeleted, deleteddate, deletedby etc.) are populated properly

15. Check if input data is not truncated while saving. The field length is shown to the user on-page and in database schema should be same

16. Check numeric fields with minimum, maximum, and float values

17. Check numeric fields with negative values (for both acceptance and non-acceptance)

18. Check if radio button and dropdown list options are saved correctly in the database

19. Check if database fields are designed with correct data type and data length

20. Check if all table constraints like Primary key, Foreign key, etc. are implemented correctly

21. Test stored procedures and triggers with sample input data

22. Input field leading and trailing spaces should be truncated before committing data to the database

23. Null values should not be allowed for Primary key column

0 comments:

Post a Comment