vutil provides REST API to perform CRUD operations on various databases.
Now, with the help of this API, one can perform the database validation after a test case is executed.
Step by step guide to perform database validation:
Step 1: Configure connection details in vutil
First you need to configure database connection details in config.json file. If you have not created a config.json file, then create one by copying the config.sample.json into config.json file and provide the connection details as per the samples provided.
Step 2: Execute your API test case and validate its response.
Step 3: Now validate the database state