Book demo
Start trial

The LEAP

Automation insights and productivity tips from LEAPWORK.

All Posts

How to Use Live Excel Data for Dynamic Automation

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.

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:

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

Related Posts

How to Achieve Agile Testing by Automating Functional UI Tests

Agile transformation and testing Agile transformation helps businesses manage change and pursue emerging opportunities in any market situation. A key ingredient of this approach is to implement agile testing.

How Test Automation Supports Agile Transformation

Agility in IT processes In a world where new business models are disrupting established revenue streams and expectations to the customer experience are constantly increasing, businesses everywhere are struggling to stay relevant. To stay competitive requires efficiency: Fast market adaptation, well-organized change management, and the ability to secure emerging opportunities. One of the ways to get there is through agile transformation.

Get Started with Test Automation

When implementing test automation there are several things to consider, including: how much can we automate? which tool is right for us? can we justify the initial investment of time and effort? and much more.