Database
Last updated
Last updated
In order to connect a database agent to aqua, you have to go through the following steps. First, extract the database agent zip file and open the aquaAgentDatabaseGui.exe.config.
Here, enter the agentCode and the aquaServiceURL.
The rest of the config file is not necessary to connect the agent to aqua. The agent code is generated in aqua, and assigned to the agent.
Next, click onto Connections in the Agent Server Configuration in order to define the database.
Within the test case, you can insert a database test script. The connection has to be defined in the drop-down box, the query has to be inserted, and there is an option to enter a check value. In order to use variables, place them between '&', e.g.: A variable called 'User' can be used in the query or in the expected results as '&User&'.
Download and install (full install) MySQL Connector for .Net on computer running DBAgent (https://dev.mysql.com/downloads/connector/net/ )
Restart DBAgent (if already running)
Open aqua -> Project Configuration -> Testautomation -> Connections
Create new connection (Choose "Generic")
DataSupplier = MySql.Data.MySqlClient
Adjust connection string to match MySQL Setup (server, user id, password, database)
To create new connections and to add these databases, click on the button and insert a new database.