The LEAP

Automation insights and productivity tips from LEAPWORK.

All Posts

How to Drive Test Automation with Excel, Databases, and ODBC

Driving automation in LEAPWORK with pre-defined data from an Excel file is easy with the Read Excel block. But sometimes you need more real-time access.

For instance, if you routinely change the data in the Excel file before running your automation cases, re-adding the file every time can be cumbersome. The changes can even be made by other people in your organization who are not involved in the automation process.

You may also want to write results or other data back to the Excel file for further processing later. For instance, you can update the same Excel file every day with more and more results and even use it as a human-readable format for exchanging data between different systems.

See video demonstration

The following is an example of how Excel files can be used as a live data source in LEAPWORK and how to read and write to it using a Database block with an ODBC connection.

 

 

Using an ODBC connection to Excel (or a csv- or txt-file for that matter) can be a powerful way to read, manipulate and write data.

The ODBC query syntax can unfortunately be somewhat confusing, and documentation from Microsoft is sparse.

The following are a few links to articles and blog posts where the Excel ODBC driver is discussed:

Everything you need for codeless test automation

Learn more about codeless test automation in our guide to reducing risk, lowering costs, and driving value with test automation.

CTA-StartTrial-2

Claus Topholt
Claus Topholt
CTO and co-founder of LEAPWORK.

Related Posts

End-to-end Testing Using Selenium

End-to-end testing is a type of test that consists of several components that, combined, are intended to simulate a user’s path through an application. By testing this path from beginning to end, the risk that a user will find a bug can be minimized. 

Oracle Test Automation Frameworks: Why They Don’t Work

Test automation frameworks are often the starting point for building automated tests for Oracle and transitioning to agile development. But they rarely allow businesses to leverage the full potential of automation. Learn why in this blog post.

The Key to Continuous Testing in DevOps

If you’re working with DevOps, there’s a good chance that you’ll know about continuous testing. In this blog post we take a look at continuous testing to understand why it plays a key role in DevOps, and why test automation is essential in enabling continuity.