Search:     Advanced search

Exporting Data to Excel Using the TestTrack ODBC Driver

Article ID: 313  |  Last updated: 25 Apr, 2017

Note: This article only applies to TestTrack 2011.1 and earlier. If you use Helix ALM (or TestTrack 2012 - 2016.1), see Exporting Data to Excel.

TestTrack projects can be accessed using the TestTrack ODBC driver. This read-only driver lets you query your databases using ODBC-compatible products, such as Microsoft Excel.

Installing and configuring the driver

  1. Download the ODBC driver for your TestTrack version. (2009, 2010, 2011)
  2. Unzip the file.
  3. Open the directory and double-click Setup.exe. Follow the onscreen installation instructions.
  4. To configure the driver, choose Start > Settings > Control Panel.
  5. Open the ODBC Data Source Administrator.
  6. On the User DSN tab, select TestTrack ODBC Datasource and click Configure.
    The ODBC TestTrack Setup dialog box opens. The data source field is automatically populated but this field can be changed. When you configure the data source, an error may be returned. If you receive an error, it is generally due to a missing .dll. The missing .dll is included in the zip file. Copy ttc4dll.dll into the system folder.
  7. Click Browse to set the database path.
    Navigate to the project directory to query. The default project database location is the computer where the TestTrack Server is installed.
  8. Click Open.
  9. Click OK. The driver is configured.

Using Microsoft Query to retrieve data

  1. Start Microsoft Excel and open a new workbook.
  2. Choose Data > Import External Data > New Database Query. The Choose Data Source dialog box opens.
  3. On the Databases tab, select TestTrack ODBC Datasource and click OK. The Excel Query Wizard opens. This wizard is used to perform simple queries.
  4. Click Cancel to perform a more complex query. You are prompted to confirm editing the query in Microsoft Query.
  5. Click Yes. The Microsoft Query Editor opens. For this example, we will create a query that includes the Defect Number, Product, and Version Found.
  6. Add the following tables: DEFECTS, FLDPROD and REPORTBY. Click Close after the three tables are added.
  7. The Query Editor creates links, or joins, between the tables. Make sure you remove all joins.
  8. After the joins are removed, expand the tables so you can view all fields.
  9. Double-click the DEFECTNUM column in the DEFECTS table. Double-click the DESCRIPTOR column in FLDPROD table. Double-click the VERSNFOUND column in the REPORTBY table. The columns are added to the bottom half of the split screen window.
  10. Create joins to link the tables. Click and drag IDPRODUCT in the DEFECTS table to IDRECORD in the FLDPROD table. Next, click and drag IDRECORD in the DEFECTS table to IDDEFREC in the REPORTBY table.
  11. Click the SQL button in the menu bar. Verify the SQL matches the following:


    The query determines the product name using the WHERE DEFECTS.IDPRODUCT = FLDPROD.IDRECORD and determines the version using AND DEFECTS.IDRECORD = REPORTBY.IDDEFREC as part of the WHERE statement.
  12. Click OK to close the SQL dialog box.
  13. To return the data to Excel, choose File > Return Data to Microsoft Office Excel. You are prompted for a starting cell to return the data to.
  14. Select A1 to start at the beginning of the page. After the data is returned to Excel, you can update the query information by right-clicking anywhere on the data output and selecting Refresh Data.
Article ID: 313  |   Last updated: 25 Apr, 2017
database ODBC driver query

Prev   Next
Running Executables from TestTrack Triggers and Escalation Rules     Moving Databases and Projects - TestTrack 2011.1 and Earlier