JDBC Request can also make use of most of the assertions with SOAP request TestSteps. In SoapUI, most of these assertions are independent from TestSteps. Hence, the assertions such as Contains and XPath Match can be used with JDBC Request TestStep.
By clicking the Add an assertion icon at the top menu of JDBC Request TestStep, the user can find out what assertions are supported by the TestStep.
In addition to the generic assertions, there are two JDBC Request TestStep specific assertions −
JDBC Timeout − This assertion can be used to verify whether the current SQL query is executed within the specified Query Timeout property value.
JDBC Status − In order to check whether the SQL statement is executed successfully, we can use the JDBC Status assertion.
To set the Query Timeout, provide the value respective of Property Query Timeout on the left side of the screen. Please keep in mind, it accepts value in milliseconds (ms).