# DataDriver

**URL:** https://forum.robotframework.org/c/ext/datadriver/18.md

[Latest](https://forum.robotframework.org/latest.md) · [Categories](https://forum.robotframework.org/categories.md)

---

## [About the DataDriver category](https://forum.robotframework.org/t/about-the-datadriver-category/37)

<div class="topic-metadata">

**Author:** [@René](https://forum.robotframework.org/u/Ren%C3%A9)\
**Replies:** 0

</div>

---

## [Data Driver unable to read csv file in Robot Framework, returns empty dictionary](https://forum.robotframework.org/t/data-driver-unable-to-read-csv-file-in-robot-framework-returns-empty-dictionary/7564)

<div class="topic-metadata">

**Author:** [@garima.gaur22](https://forum.robotframework.org/u/garima.gaur22)\
**Replies:** 6\
**Last updated:** [11 August 2025 08:54 UTC](https://forum.robotframework.org/t/data-driver-unable-to-read-csv-file-in-robot-framework-returns-empty-dictionary/7564 "2025-08-11T08:54:16Z")

</div>

Installed version Robot Framework 7.0.1 Python 3.12.4 robotframework-datadriver==1.11.1 Worked fine with below versions Working version Robot Framework 7.0.1 Python 3.12.4 robotframework-datadriver==1.6.1 Code S…

---

## [During execution variable are not replaced by value, name of variable is used instead](https://forum.robotframework.org/t/during-execution-variable-are-not-replaced-by-value-name-of-variable-is-used-instead/8615)

<div class="topic-metadata">

**Author:** [@dmereaux](https://forum.robotframework.org/u/dmereaux)\
**Replies:** 1\
**Last updated:** [7 March 2025 19:07 UTC](https://forum.robotframework.org/t/during-execution-variable-are-not-replaced-by-value-name-of-variable-is-used-instead/8615 "2025-03-07T19:07:34Z")

</div>

Here my csv file: \*\*\* Test Cases \*\*\*;${item};${msg} recherche MUG;MUG;Il y a 5 produits. My robot file: \*\*\* Settings \*\*\* Library DataDriver file=donnees.csv Resource motClefPresta.resource Test Setup ouvrir…

---

## [Getting error Datadriver. Error generating libspec: Importing library 'Datadriver' failed: ModuleNotFoundError:](https://forum.robotframework.org/t/getting-error-datadriver-error-generating-libspec-importing-library-datadriver-failed-modulenotfounderror/8598)

<div class="topic-metadata">

**Author:** [@rahulpawargit](https://forum.robotframework.org/u/rahulpawargit)\
**Replies:** 1\
**Last updated:** [24 March 2025 18:58 UTC](https://forum.robotframework.org/t/getting-error-datadriver-error-generating-libspec-importing-library-datadriver-failed-modulenotfounderror/8598 "2025-03-24T18:58:00Z")

</div>

I have installed robotframework-datadriver 1.11.2 but still its not working. Unresolved library: Datadriver. Error generating libspec: Importing library ‘Datadriver’ failed: ModuleNotFoundError: No module named ‘Datadri…

---

## [How to execute robot tests from CLI filtering by tags if the tags are part of input data file?](https://forum.robotframework.org/t/how-to-execute-robot-tests-from-cli-filtering-by-tags-if-the-tags-are-part-of-input-data-file/8381)

<div class="topic-metadata">

**Author:** [@abhijitpaul0212](https://forum.robotframework.org/u/abhijitpaul0212)\
**Replies:** 2\
**Last updated:** [4 February 2025 12:00 UTC](https://forum.robotframework.org/t/how-to-execute-robot-tests-from-cli-filtering-by-tags-if-the-tags-are-part-of-input-data-file/8381 "2025-02-04T12:00:26Z")

</div>

Using Library DataDriver, I’m unable to run tests from command line filtering by tags, if tags are part of input file i.e. data.csv Consider below is my input data file (.csv) \*\* Test Cases \*\*\*;${username};${password};…

---

## [How to execute two different test cases, one with Template and another one just a random test case in a robot file](https://forum.robotframework.org/t/how-to-execute-two-different-test-cases-one-with-template-and-another-one-just-a-random-test-case-in-a-robot-file/4150)

<div class="topic-metadata">

**Author:** [@nanicoderrf](https://forum.robotframework.org/u/nanicoderrf)\
**Replies:** 9\
**Last updated:** [20 November 2024 07:34 UTC](https://forum.robotframework.org/t/how-to-execute-two-different-test-cases-one-with-template-and-another-one-just-a-random-test-case-in-a-robot-file/4150 "2024-11-20T07:34:26Z")

</div>

\*\*\* Settings \*\*\* Library DataDriver …/…/test-data/data.csv dialect=userdefined delimiter=; encoding=utf\_8 \*\*\* Test Cases \*\*\* ${command} ${response} Locate commands \[Tags\] car bus \[Template\] …

---

## [Custom DataReader Class for SQL databases](https://forum.robotframework.org/t/custom-datareader-class-for-sql-databases/7514)

<div class="topic-metadata">

**Author:** [@kimfaint](https://forum.robotframework.org/u/kimfaint)\
**Replies:** 1\
**Last updated:** [16 July 2024 11:25 UTC](https://forum.robotframework.org/t/custom-datareader-class-for-sql-databases/7514 "2024-07-16T11:25:35Z")

</div>

I’m using a custom reader\_class to read from a database rather than a csv file. So a simplified version of my test looks like this: \*\*\* Settings \*\*\* Library DataDriver reader\_class=sql\_reader ... …

---

## [Error in VsCode with dataDriver](https://forum.robotframework.org/t/error-in-vscode-with-datadriver/7420)

<div class="topic-metadata">

**Author:** [@normus](https://forum.robotframework.org/u/normus)\
**Replies:** 2\
**Last updated:** [12 June 2024 21:49 UTC](https://forum.robotframework.org/t/error-in-vscode-with-datadriver/7420 "2024-06-12T21:49:30Z")

</div>

Hi all :wink: This code works fine and executes all the test cases in the Excel file, but one line is highlighted in red (I don’t get this error with 2 arguments)\> Thank you for your help :wink:

---

## [DataDriver powered test returns "Test cannot be empty" error](https://forum.robotframework.org/t/datadriver-powered-test-returns-test-cannot-be-empty-error/7005)

<div class="topic-metadata">

**Author:** [@PavelK](https://forum.robotframework.org/u/PavelK)\
**Replies:** 11\
**Last updated:** [18 March 2024 07:51 UTC](https://forum.robotframework.org/t/datadriver-powered-test-returns-test-cannot-be-empty-error/7005 "2024-03-18T07:51:36Z")

</div>

Hi folks, I’m trying to implement a simple test, powered by DataDriver. Just to open the browser and load url, defined in csv file. DataDriver seems to be installed, the file is read, but test returns “Test cannot be em…

---

## [TestCase cant find variable present in testdata.csv/xls file](https://forum.robotframework.org/t/testcase-cant-find-variable-present-in-testdata-csv-xls-file/5693)

<div class="topic-metadata">

**Author:** [@vgg2503](https://forum.robotframework.org/u/vgg2503)\
**Replies:** 3\
**Last updated:** [15 March 2024 12:15 UTC](https://forum.robotframework.org/t/testcase-cant-find-variable-present-in-testdata-csv-xls-file/5693 "2024-03-15T12:15:07Z")

</div>

I’m not able to read csv testdata file. Please correct me where I’m wrong. robot file: Settings Resource resource.robot Library OperatingSystem Library String Library DataDriver testSheet/TestData.csv Test Templat…

---

## [How do you make a list out of a column in excel file?](https://forum.robotframework.org/t/how-do-you-make-a-list-out-of-a-column-in-excel-file/6670)

<div class="topic-metadata">

**Author:** [@Alton](https://forum.robotframework.org/u/Alton)\
**Replies:** 3\
**Last updated:** [18 January 2024 09:37 UTC](https://forum.robotframework.org/t/how-do-you-make-a-list-out-of-a-column-in-excel-file/6670 "2024-01-18T09:37:36Z")

</div>

Hi, Im trying to store a list from an excel file. but dont know how to work around it. appreciate your help on this.

---

## [Datadriver - trouble in adding the datadriver command](https://forum.robotframework.org/t/datadriver-trouble-in-adding-the-datadriver-command/6497)

<div class="topic-metadata">

**Author:** [@DEEPAKM](https://forum.robotframework.org/u/DEEPAKM)\
**Replies:** 1\
**Last updated:** [21 November 2023 12:29 UTC](https://forum.robotframework.org/t/datadriver-trouble-in-adding-the-datadriver-command/6497 "2023-11-21T12:29:10Z")

</div>

Hi I was trying to add data driver in my robot framework project, I have imported and installed the library and I could even see it in the project structure. But when I try to add the datadriver command it shows error. L…

---

## [How does robotframework-datadriver generate robot files? I downloaded the source code, and is the DataDriven\_xlsx.robot file in the "example\\Login Tests" directory generated automatically?](https://forum.robotframework.org/t/how-does-robotframework-datadriver-generate-robot-files-i-downloaded-the-source-code-and-is-the-datadriven-xlsx-robot-file-in-the-example-login-tests-directory-generated-automatically/5896)

<div class="topic-metadata">

**Author:** [@MayShuuyu](https://forum.robotframework.org/u/MayShuuyu)\
**Replies:** 0\
**Last updated:** [29 June 2023 10:35 UTC](https://forum.robotframework.org/t/how-does-robotframework-datadriver-generate-robot-files-i-downloaded-the-source-code-and-is-the-datadriven-xlsx-robot-file-in-the-example-login-tests-directory-generated-automatically/5896 "2023-06-29T10:35:32Z")

</div>

How does robotframework-datadriver generate robot files? I downloaded the source code, and is the DataDriven\_xlsx.robot file in the “example\\Login Tests” directory generated automatically?

---

## [Data Driver Dynamically Populate CSV/Excel File](https://forum.robotframework.org/t/data-driver-dynamically-populate-csv-excel-file/5872)

<div class="topic-metadata">

**Author:** [@dragon](https://forum.robotframework.org/u/dragon)\
**Replies:** 1\
**Last updated:** [26 June 2023 21:49 UTC](https://forum.robotframework.org/t/data-driver-dynamically-populate-csv-excel-file/5872 "2023-06-26T21:49:28Z")

</div>

Hello, Is it possible to dynamically populate my csv/excel file in the suite setup and use data driver to create test cases accordingly?

---

## [Data driven testing using excel](https://forum.robotframework.org/t/data-driven-testing-using-excel/5763)

<div class="topic-metadata">

**Author:** [@Mahesh](https://forum.robotframework.org/u/Mahesh)\
**Replies:** 5\
**Last updated:** [31 May 2023 08:48 UTC](https://forum.robotframework.org/t/data-driven-testing-using-excel/5763 "2023-05-31T08:48:56Z")

</div>

How to read multiple excel sheets in one robot file. For example there are three sheets in a excel. How do I mention in settings There are three keywords. First key word will use first excel sheet data,second use se…

---

## [Installing datadriver library](https://forum.robotframework.org/t/installing-datadriver-library/5639)

<div class="topic-metadata">

**Author:** [@Naresh](https://forum.robotframework.org/u/Naresh)\
**Replies:** 3\
**Last updated:** [5 May 2023 07:05 UTC](https://forum.robotframework.org/t/installing-datadriver-library/5639 "2023-05-05T07:05:58Z")

</div>

I am installing the datadriver library using pip install datadriver command. but here i’m getting some error like this. whats wrong with this. Collecting datadriver Using cached datadriver-0.1.3-py2.py3-none-any.whl …

---

## [Test data as array, list or tuple](https://forum.robotframework.org/t/test-data-as-array-list-or-tuple/917)

<div class="topic-metadata">

**Author:** [@Typhon](https://forum.robotframework.org/u/Typhon)\
**Replies:** 3\
**Last updated:** [13 April 2023 08:23 UTC](https://forum.robotframework.org/t/test-data-as-array-list-or-tuple/917 "2023-04-13T08:23:17Z")

</div>

Hi, Is to possible manage a test data with other data than single data ? For example, I talk about list for the second argument : \*\*\* Keywords \*\*\* Get list from second argument \[Arguments\] {first\_arg} @{second\_arg}…

---

## [Problem with Robot Framework and Excel](https://forum.robotframework.org/t/problem-with-robot-framework-and-excel/362)

<div class="topic-metadata">

**Author:** [@TRoper](https://forum.robotframework.org/u/TRoper)\
**Replies:** 10\
**Last updated:** [14 August 2022 16:43 UTC](https://forum.robotframework.org/t/problem-with-robot-framework-and-excel/362 "2022-08-14T16:43:53Z")

</div>

Hi, I have installed Robotframework, PyCharm, Intellibot, Selenium using PIP3 on a MAC. No problems. Then I installed robotframework-datadriver both through PyCharm and with PIP3. In a test script i have included the…

---

## [Use a different data source for multiple test cases!](https://forum.robotframework.org/t/use-a-different-data-source-for-multiple-test-cases/3883)

<div class="topic-metadata">

**Author:** [@veys](https://forum.robotframework.org/u/veys)\
**Replies:** 5\
**Last updated:** [19 October 2022 13:34 UTC](https://forum.robotframework.org/t/use-a-different-data-source-for-multiple-test-cases/3883 "2022-10-19T13:34:20Z")

</div>

Dear rfw Expert, I have to do a parallel test. There are a total of 20 test cases, all of which always do the same thing, but only the test data has to be different. For datadriven I used an excel file. I would like to …

---

## [Tag Includes doesn't seem to work, Tag exclude does](https://forum.robotframework.org/t/tag-includes-doesnt-seem-to-work-tag-exclude-does/4581)

<div class="topic-metadata">

**Author:** [@zac-hamid-arm](https://forum.robotframework.org/u/zac-hamid-arm)\
**Replies:** 2\
**Last updated:** [25 August 2022 15:41 UTC](https://forum.robotframework.org/t/tag-includes-doesnt-seem-to-work-tag-exclude-does/4581 "2022-08-25T15:41:31Z")

</div>

Context I’m using a custom Data Reader to port our sparse test data to the Data driver JSON format. Through that I am setting the tags dynamically. I am attempting to selectively run the tests via the include and exclud…

---

## [I am not able to succeed run data-driven xlsx file in parallel (pabot)](https://forum.robotframework.org/t/i-am-not-able-to-succeed-run-data-driven-xlsx-file-in-parallel-pabot/4137)

<div class="topic-metadata">

**Author:** [@Josdov](https://forum.robotframework.org/u/Josdov)\
**Replies:** 0\
**Last updated:** [4 July 2022 11:17 UTC](https://forum.robotframework.org/t/i-am-not-able-to-succeed-run-data-driven-xlsx-file-in-parallel-pabot/4137 "2022-07-04T11:17:27Z")

</div>

Hello, I have tried to execute my data-driven(xlsx) test case but I faced this issue My Excel File inside the Data Folder Tests\_Excel\_Request\_Generator\_V0\_all.xlsx And my script How I run it pabot --testlevel…

---

## [How to include list variables in a csv file?](https://forum.robotframework.org/t/how-to-include-list-variables-in-a-csv-file/3668)

<div class="topic-metadata">

**Author:** [@DhammikaM](https://forum.robotframework.org/u/DhammikaM)\
**Replies:** 2\
**Last updated:** [22 April 2022 13:44 UTC](https://forum.robotframework.org/t/how-to-include-list-variables-in-a-csv-file/3668 "2022-04-22T13:44:00Z")

</div>

While using datadriver extension to externalize test data, came across this issue where robot complains “Variable ‘@{CENTERS}’ not found” and could not figure out why. Could someone help pls. Code: \*\*\* Settings \*\*\* Doc…

---

## [Failed install robotframework-datadriver XLS](https://forum.robotframework.org/t/failed-install-robotframework-datadriver-xls/2511)

<div class="topic-metadata">

**Author:** [@Khuong](https://forum.robotframework.org/u/Khuong)\
**Replies:** 4\
**Last updated:** [19 April 2022 05:45 UTC](https://forum.robotframework.org/t/failed-install-robotframework-datadriver-xls/2511 "2022-04-19T05:45:46Z")

</div>

Hi all, I work with: MAC OS PyCharm 2021.2 (Community Edition) Python 3.9 I tried to install robotframework-datadriver to work with XLSX file by both 2 command lines: pip3 install -U robotframework-datadriver\[XLS\] …

---

## [Using Tags Declared in xls Datasheet](https://forum.robotframework.org/t/using-tags-declared-in-xls-datasheet/2278)

<div class="topic-metadata">

**Author:** [@rgraham5616](https://forum.robotframework.org/u/rgraham5616)\
**Replies:** 11\
**Last updated:** [2 April 2022 12:05 UTC](https://forum.robotframework.org/t/using-tags-declared-in-xls-datasheet/2278 "2022-04-02T12:05:45Z")

</div>

Basically exactly what the title says. I have a datasheet in excel that I am using to run my test cases. Right now it runs every case but I want to limit it to run specific ones. Datadriver says it has tag functionality …

---

## [Extend Testcases using Datadriver - PICT (more than 255)](https://forum.robotframework.org/t/extend-testcases-using-datadriver-pict-more-than-255/3363)

<div class="topic-metadata">

**Author:** [@Flurin92](https://forum.robotframework.org/u/Flurin92)\
**Replies:** 3\
**Last updated:** [11 March 2022 06:50 UTC](https://forum.robotframework.org/t/extend-testcases-using-datadriver-pict-more-than-255/3363 "2022-03-11T06:50:49Z")

</div>

I use PICT to generate my Data File. Unfortunately it generates a txt Data file which has only 255 lines. So I can only generate 255 Testcases. Is it possible to somehow extend the amount of Testcases?

---

## [Datadriver for Test step](https://forum.robotframework.org/t/datadriver-for-test-step/3256)

<div class="topic-metadata">

**Author:** [@Amsavalli](https://forum.robotframework.org/u/Amsavalli)\
**Replies:** 1\
**Last updated:** [12 February 2022 07:36 UTC](https://forum.robotframework.org/t/datadriver-for-test-step/3256 "2022-02-12T07:36:52Z")

</div>

\*\*\* Test Cases \*\*\* validate items displayed on the cart page Fill the login Form ${username} ${ValidPassword} verify home page add items to cart and checkout ${SKUname} -------\> is that possible can I send th…

---

## [Get a cell's data type from a DataDriver Excel Input Sheet based on its cell format](https://forum.robotframework.org/t/get-a-cells-data-type-from-a-datadriver-excel-input-sheet-based-on-its-cell-format/2331)

<div class="topic-metadata">

**Author:** [@jsl](https://forum.robotframework.org/u/jsl)\
**Replies:** 3\
**Last updated:** [27 August 2021 21:34 UTC](https://forum.robotframework.org/t/get-a-cells-data-type-from-a-datadriver-excel-input-sheet-based-on-its-cell-format/2331 "2021-08-27T21:34:23Z")

</div>

tl;dr: is there a way to apply a datadriver Excel input file’s cell format to the variable’s format that is conveyed to the robot test? Moin René, first of all let me say that my users love the option of providing test…

---

## [Exception while using Data Driver Library in RF](https://forum.robotframework.org/t/exception-while-using-data-driver-library-in-rf/939)

<div class="topic-metadata">

**Author:** [@Gaurav](https://forum.robotframework.org/u/Gaurav)\
**Replies:** 2\
**Last updated:** [9 November 2020 08:14 UTC](https://forum.robotframework.org/t/exception-while-using-data-driver-library-in-rf/939 "2020-11-09T08:14:13Z")

</div>

I am working on fetching data from Excel file but i am getting exception while running script for same. Jython Ver: 2.7.2 RF Ver: 3.2.1 RF Datadriver Ver: 1.0.0 Script: \*\*\* Settings \*\*\* Library SeleniumLibrary …

---

## [List of dictionary in CSV file](https://forum.robotframework.org/t/list-of-dictionary-in-csv-file/929)

<div class="topic-metadata">

**Author:** [@Typhon](https://forum.robotframework.org/u/Typhon)\
**Replies:** 2\
**Last updated:** [5 November 2020 10:02 UTC](https://forum.robotframework.org/t/list-of-dictionary-in-csv-file/929 "2020-11-05T10:02:28Z")

</div>

Hi, I use DataDriver to set a CSV file with different types of parameter and it works fine. My need is to set a list of dictionary in one parameter in order to iterate it in a Keyword. CSV file : e{attributes} \[{“na…

---

## [New DataDriver Relase Candidate](https://forum.robotframework.org/t/new-datadriver-relase-candidate/769)

<div class="topic-metadata">

**Author:** [@René](https://forum.robotframework.org/u/Ren%C3%A9)\
**Replies:** 0\
**Last updated:** [26 September 2020 18:35 UTC](https://forum.robotframework.org/t/new-datadriver-relase-candidate/769 "2020-09-26T18:35:45Z")

</div>

:robot: DataDriver 1.0.0 RELEASE! :robot: Is ready for test. #pabot 1.10.0 is compatible with --testlevelsplit Data Types supported Scalars +-----------------+ | ${scalar} | +-----------------+ | Sum List …

[Next page](https://forum.robotframework.org/c/ext/datadriver/18.md?page=1)
