Database connection test step
The database connection test step connects to a database server using the given host, port, user, password and database. The supported database servers are MySQL, PostgreSQL, Microsoft SQL and Oracle. The step fails if the connection fails.
An optional SQL statement can be given that will be executed on the database server after a successful connection. The step fails if the execution of the statement fails. In the case of successful statement execution, the execution result is saved in CSV format as the result of the test step and can be viewed using the Wenenu UI or accessed using the Wenenu API. The maximum length of the CSV is 524288 characters. The output is truncated if it exceeds the maximum length.
For security reasons, do not display any sensitive information in the step result. |
UI settings
Arbitrary name of the test step up to 64 characters |
|
Test agent that is going to execute the test step |
|
Type of the database server |
|
Host of the database server |
|
Port of the database server |
|
(Optional) Name of the database to connect to |
|
Username that is used for the connection |
|
Password that is used for the connection |
|
(Optional) SQL statement that is executed on the database server |
JSON
{
"displayName": "Database test",
"type": "db",
"id": "b24b8ef5-54f8-4a98-bb69-1de83b873691",
"serverType": "mysql",
"host": "db2.example.com",
"port": 3306,
"dbName": "sales",
"dbUser": "testuser",
"dbPassword": "testpassword",
"sql": "SELECT date FROM invoice ORDER BY id DESC;",
"agent": {
"type": "standard",
"id": "162dff466f92c372005cf7055d006b77ac377e01c60ae59f942d74680f2496d1"
}
}
Arbitrary name of the test step up to 64 characters | |
Type of the test step, must be 'db' | |
Version 4 unique identifier of the test step, must be unique within the test scenario | |
Type of the database server | |
Host of the database server | |
Port of the database server | |
Name of the database to connect to | |
Username that is used for the connection | |
Password that is used for the connection | |
SQL statement that is executed on the database server | |
Agent object defining the agent that will execute the test step |