Export Data(DB)
This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to execute the specified query provided in the input field and export the retrieved data to an external file. The result is stored in the given dynamic variable for further use during test execution.
Syntax
Input Value: <DB IP/instance name/DB file path>;<DB port>;<DB username>;<DB password>;<DB name>;<Query>;<DB Number/DB Tags>;<querytype/warehouse>(Optional);<schema>(Optional)
<DB IP/instance name/DB file path> (Required)
Provide the Database server location, instance name, or DB file path which you want to use.
<DB port> (Required)
Provide the port number which you want to use to connect to the Database.
<DB username> (Required)
Provide the username credential which you want to use for Database access.
<DB Password> (Required)
Provide the password associated with the username.
<DB name> (Required)
Provide the Database name which you want to connect to.
<Query> (Required)
Provide the SQL or Non-SQL query which you want to execute.
<DB Number/DB Tags> (Required)
Provide the Database identifier which you want to use for the connection.
<querytype/warehouse> (Optional)
Provide the data container you want to target within the Database.
<schema> (Optional)
Provide the schema you want to use.
Other Related Links:
To learn more about supported Database and there respective Database Numbers and Tags, click here.
Output Value: <File Path>;<Sheet Name>(Optional)
<File Path>
(Required)
Provide the Excel file location where you want to store the exported data.
<Sheet name>
(Optional)
Provide the Excel sheet name where you want to store the exported data.
Example: Exporting Data from a Database to an Excel File
In this example, we explain how to export data from a Database and save it into an Excel file.
Action: Verify Data(DB)
Input Value: 10.13.0.57;1033;John;John$QA@12;Student;SELECT * from PQRS;MSSQL
The first argument (10.13.0.57) specifies the Database server IP address.
The second argument (1033) specifies the port number used to establish the Database connection.
The third argument (John) specifies the Database username.
The fourth argument (John$QA@12) specifies the Database password.
The fifth argument (Student) specifies the Database name.
The sixth argument (SELECT * from PQRS) contains the SQL query to be executed.
The seventh argument (MSSQL) specifies the Database tag used for execution.
Output Value: C:\sam\Excel.xls;Sheet1
The Output Value column contains the Excel file path (C:\sam\Excel.xls) and sheet name (Sheet1) where the data is exported.
Logical Explanation: The Verify Data(DB) action takes the value from the Input Value column (10.13.0.57;1033;John;John$QA@12;Student;SELECT * from PQRS;MSSQL). The action connects to the specified Database and executes the query. It retrieves the data from the Database. The retrieved data is exported to the specified Excel file path (C:\sam\Excel.xls) and sheet (Sheet1) provided in the Output Value column.

Last updated
Was this helpful?