{"library":"robotframework-datadriver","title":"Robot Framework DataDriver","description":"robotframework-datadriver is a library for Data-Driven Testing within the Robot Framework ecosystem. It allows users to separate test data from test logic, making it easier to manage and scale tests by running the same test case with multiple sets of input data. The library is actively maintained, with version 1.11.2 being the latest, and it frequently releases updates to ensure compatibility with new Robot Framework versions.","language":"python","status":"active","last_verified":"Sun May 17","install":{"commands":["pip install robotframework-datadriver"],"cli":null},"imports":["from DataDriver import AbstractDataDriverReader"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nimport subprocess\n\n# Create a dummy data file (e.g., my_data.csv)\ncsv_content = \"TEST_NAME,param1,param2\\nTest 1,ValueA,ValueB\\nTest 2,ValueC,ValueD\"\nwith open('my_data.csv', 'w') as f:\n    f.write(csv_content)\n\n# Create a Robot Framework test suite (e.g., my_tests.robot)\nrobot_content = \"\"\"\n*** Settings ***\nLibrary    DataDriver    my_data.csv\n\n*** Test Cases ***\nMy Data-Driven Test\n    Log To Console    Data Row: ${data_row}\n    Log To Console    Test Name: ${TEST_NAME}\n    Log To Console    Param1: ${param1}\n    Log To Console    Param2: ${param2}\n\"\"\"\nwith open('my_tests.robot', 'w') as f:\n    f.write(robot_content)\n\n# Run the Robot Framework tests using subprocess\nprint(\"Running Robot Framework tests...\")\nresult = subprocess.run(['robot', 'my_tests.robot'], capture_output=True, text=True)\nprint(result.stdout)\nif result.stderr:\n    print(result.stderr)\n\n# Clean up generated files\nos.remove('my_data.csv')\nos.remove('my_tests.robot')\nos.remove('output.xml')\nos.remove('log.html')\nos.remove('report.html')","lang":"python","description":"This quickstart demonstrates how to use `robotframework-datadriver` with a simple CSV data file. It creates a CSV file and a Robot Framework test suite (`.robot` file) on the fly, then executes the tests using the `robot` command-line tool. Each row in the CSV will generate a separate test case, logging the provided parameters.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-17","installed_version":"1.11.2","pypi_latest":"1.11.2","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.9,"avg_import_s":null,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"robotframework-datadriver","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"37.0M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"robotframework-datadriver","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":2.6,"import_time_s":null,"mem_mb":null,"disk_size":"38M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"robotframework-datadriver","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"41.5M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"robotframework-datadriver","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":3,"import_time_s":null,"mem_mb":null,"disk_size":"42M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"robotframework-datadriver","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"32.9M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"robotframework-datadriver","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":2.8,"import_time_s":null,"mem_mb":null,"disk_size":"33M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"robotframework-datadriver","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"32.6M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"robotframework-datadriver","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":2.9,"import_time_s":null,"mem_mb":null,"disk_size":"33M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"robotframework-datadriver","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"36.5M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"robotframework-datadriver","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":3.1,"import_time_s":null,"mem_mb":null,"disk_size":"37M"}]}}