TestOptimal Wiki

Model-Based Testing (MBT)

User Tools

Site Tools


dbtag

Db tag is a command tag. It defines a jdbc data source to be used by sql tag.

The syntax is:

  <db connectionstring="jdbc connection string" driverclass="jdbc driver class name" id="myDB" user="xxx" password="yyy" />

For mysql database, use “jdbc:mysql:localhost/test” for connectionstring attribute and “com.mysql.jdbc.Driver” for driverclass attribute. To access csv file or excel file, use the built-in file and excel driver. See datasetTag or Read From File, Excel, Java, URL for more details. The “id” attribute is the unique identifier for the db tag and is used in mscript functions to access this data source.

dbtag.txt · Last modified: 2016/09/22 02:35 (external edit)