Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

vutil provides REST API to perform CRUD operations on various databases.  As of now, following databases are supported:

  1. MySQL
  2. Postgres
  3. MongoDB

We are also working on integration with other databases as well.  Please stay tuned.

Now, with the help of this API, one can perform the database validation after a test case is executed.


Step 2: Execute your API test case and validate its response. e.g. for this guide, we are creating a contact with our sample contact API as follows:

Image Added

Image Added

Image Added

Step 3: Now, to validate the database state with , we need to write a separate test case in vREST. With the help of DB API provided by vutil.
 , we can write the test case for db validation as follows:

  1. First create a test case with DB Validation API as follows:
    Image Added
  2. Now, provide the connection name as follows:
    Image Added
  3. Now, provide the request body for the DB Validation API:
    Image Added
  4. Provide assertions as you provide for other test cases
    Image Added
  5. And expected body as per your need.
    Image Added

 That's it. In this way, you may validate the DB state.