You can easily connect to a database and execute SQL queries in your tests.
The following databases are supported by our platform:
- Microsoft SQL
To establish a new connection, select the
Connect to Database option from the
If you want to execute a SQL query without fetching the result, use the
Execute SQL Query action.
If you want to get the result from a SQL query, use the
Extract result from SQL Query option from the
Set Variable action. This option allows you to fetch a value from a database and use it in your test.
- Add a
Connect to Databasestep.
- Add the query in an
Execute SQL Queryor
Extract result from SQL Querystep.
Once the connection to the database is established with the
Connect to Database step, you can continue to execute SQL queries until your test execution finishes.
If you want to execute SQL queries from your tests, make sure that your database can be accessed from our list of Secure Gateway IPs:
|Secure Gateway IP Addresses|
If you want to use Real IP Geolocation in your tests, you'll have to add these entries to the whitelist as well:
|Seoul, South Korea||184.108.40.206|