1. Home
  2. Relational Databases
  3. Executing SQL and assert values from DB

Executing SQL and assert values from DB

Automating scenarios using SQL and validating the response received from SQL query is very simple using NoCodeBDD.

Steps to automate a scenario containing an SQL query

  1. Define your feature, scenario, and steps.
  2. Click New Step Definition and then select SQL module.
  1. To execute any SQL queries, select the Run SQL query option.
  1. To Add the connection details, select Add Connection and fill in all the details.
  1. Write the required SQL query to be executed.
  1. If you want to assert the details, then Fetch the details from the table.
  1. In the next step, select Assert SQL Response and provide the column name and expected value for the column.

You can run the scenario to validate the results from SQL.

The following video shows how to query and validate SQL responses using NoCodeBDD.

For privacy reasons YouTube needs your permission to be loaded. For more details, please see our Footer.
I Accept
Was this article helpful to you? Yes No