Creating a Database Checkpoint in QTP
Posted on April 12th, 2009 in QTP Lessons
To create a database CHECKPOINT in a Test:
- Identify the checks that you want to use to verify data in a database.
- Identify the step in a test after which you want to insert the database checkpoint.
- Create an SQL query to retrieve data from the database.
- Specify the expected data.
- Run the test to verify the database checkpoint.
Common Database Checks: You can define database Checkpoints in a test to check if:
- The data is saved to the correct tables and columns of the database.
- The data is updated in the database when a record is inserted, updated, or deleted in the aut. This process is also known as data persistence.
- The data entered using the AUT is represented correctly in the database. Some of the properties that you check for are data type, format, length, and spacing.
- The data entered into the database is not duplicate.
Related posts:
Tags: