Database Connection StepDef – SoliteraTA

SoliteraTA

Categories
Database Connection StepDef Database Operation Step Defination

close database connection with “application_name” configuration

close database connection with “application_name” configuration

close database connection with “application_name” configuration

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

close database connection with “application_name” configuration

Keyword

Given, When, And, Then

Description

Will close the database connection using the given configuration

Declaration
				
					Then close database connection with "LocalDatabase" configuration
				
			
				
					NILL
				
			
				
					
<environment>
  <config>
    <name>LocalDatabase</name>
    <type>database</type>
    <db_type>MYSQL</db_type>
    <db_version>8.3.0</db_version>
    <db_url>jdbc:mysql://localhost:3306</db_url>
    <db_con_type>STANDARD</db_con_type>
    <db_username>root</db_username>
    <db_password>root</db_password>
    <db_schema>soliterata</db_schema>
    <db_driver_name>com.mysql.cj.jdbc.Driver</db_driver_name>
  </config>
</environment>
				
			
				
					NILL
				
			
Remarks

 

  1. We can use any variable name
Restriction
  1. The variable used in the step definition should exist in the application file with proper configurations of database.
Categories
Database Connection StepDef Database Operation Step Defination

connect to database with “application_name” configuration

connect to database with “application_name” configuration

connect to database with “application_name” configuration

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

connect to database with “application_name” configuration

Keyword

Given, When, And, Then

Description

Will connect to the database using the given configuration.

Declaration
				
					Given connect to database with "LocalDatabase" configuration
				
			
				
					NILL
				
			
				
					
<environment>
  <config>
    <name>LocalDatabase</name>
    <type>database</type>
    <db_type>MYSQL</db_type>
    <db_version>8.3.0</db_version>
    <db_url>jdbc:mysql://localhost:3306</db_url>
    <db_con_type>STANDARD</db_con_type>
    <db_username>root</db_username>
    <db_password>root</db_password>
    <db_schema>soliterata</db_schema>
    <db_driver_name>com.mysql.cj.jdbc.Driver</db_driver_name>
  </config>
</environment>
				
			
				
					NILL
				
			
Remarks

 

  1. We can use any variable name
Restriction
  1. The variable used in the step definition should exist in the application file with proper configurations of database.

Solitera may collect certain information by automated means, such as cookies and web beacons, when a user visits our website. A “cookie” is a small piece of data that a website can send to your browser, which may then be stored on your system. learn more

Choose your Operating System