Open topic with navigation
Disconnects from a database.
int lr_db_disconnect("StepName=<step_name>", "ConnectionName=<connection_name>", LAST );
|Example: lr_db_disconnect||Database Functions|
|StepName||The name of the step, as it appears in the test tree. Any text can be used.|
|ConnectionName||The logical name for the connection specified in lr_db_connect.|
|LAST||This delimiter marks the end of the argument list.|
The lr_db_disconnect function disconnects a database connection.
This function is supported only under the Windows operating system.
You must call lr_db_disconnect for each connection established by lr_db_connect to terminate the connection.
Add lr_db_disconnect to the vuser_end section of the script. Adding this function to the Action section can increase performance overhead during load testing.
This function returns LR_PASS on success and LR_FAIL on failure.
All string arguments (char type) can be parameterized using standard parameterization.