robotframework-datadriver 1.11.1__tar.gz → 1.12.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- robotframework_datadriver-1.12.0/CONTRIBUTION.md +75 -0
- {robotframework-datadriver-1.11.1/src/robotframework_datadriver.egg-info → robotframework_datadriver-1.12.0}/PKG-INFO +162 -81
- robotframework-datadriver-1.11.1/PKG-INFO → robotframework_datadriver-1.12.0/Readme.rst +131 -91
- robotframework_datadriver-1.12.0/atest/.DS_Store +0 -0
- robotframework_datadriver-1.12.0/atest/.mypy_cache/.gitignore +2 -0
- robotframework_datadriver-1.12.0/atest/.mypy_cache/CACHEDIR.TAG +3 -0
- robotframework_datadriver-1.12.0/atest/.pabotsuitenames +5 -0
- robotframework_datadriver-1.12.0/atest/TestCases/.DS_Store +0 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Arguments/column_order.csv +2 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Arguments/column_order.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Arguments/optional_arguments.csv +3 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Arguments/optional_arguments.robot +22 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/dialect_excel.csv +4 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/dialect_excel.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/dialect_excel_tab.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/dialect_excel_tab.tsv +4 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/dialect_unix.csv +4 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/dialect_unix.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/empty_collections.csv +2 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/empty_collections.robot +17 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/empty_data.csv +1 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/empty_data.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/encoding_default_cp1252.csv +4 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/encoding_default_cp1252.robot +17 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/encoding_utf_16.csv +0 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/encoding_utf_16.robot +17 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/encoding_utf_8_sig.csv +6 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/encoding_utf_8_sig.robot +17 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/encoding_utf_8_with_bom.robot +17 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/list_separator.csv +3 -0
- robotframework_datadriver-1.12.0/atest/TestCases/CSV_Options/list_separator.robot +17 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Compatibility/search_module.robot +27 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Compatibility/search_module_usage.py +44 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/ConfigKeyword/config_keyword_generate_file.robot +7 -4
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/ConfigKeyword/custom_reader.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Check_DataTypes.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Check_DataTypes_xlsx.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/LiteralEval.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Types_in_dicts.robot +1 -1
- robotframework_datadriver-1.12.0/atest/TestCases/Defaults/.DS_Store +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/defaults.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/generic_csv_reader.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/test_case_names.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/test_case_no_names.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/defaults_glob_files.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/defaults_glob_folders.robot +1 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Defaults/PICT/.DS_Store +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/PICT/defaults_pict.robot +3 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/PICT/pict_arguments.robot +3 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Defaults/PICT/pict_parallel.py +23 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Defaults/PICT/pict_parallel.robot +13 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/XLS/defaults_xls.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/XLS/defaults_xlsx.robot +1 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Defaults/XLS/defaults_xlsx.xlsx +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/XLS/defaults_xlsx_data_type.robot +1 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Defaults/XLS/defaults_xlsx_sheet_index.robot +30 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/XLS/defaults_xlsx_sheet_name.robot +1 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FileOptions/absolute_path.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FileOptions/data/relative.csv +3 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FileOptions/extension_only.csv +3 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FileOptions/extension_only.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FileOptions/file_search_strategy_regex.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FileOptions/parent_folder.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FileOptions/regex_data/found_by_regex.csv +3 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FileOptions/regex_data/ignored.txt +1 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FileOptions/relative_to_execdir.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FileOptions/relative_to_suite.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FirstColumn/documentation.csv +3 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FirstColumn/documentation.robot +17 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FirstColumn/tags.csv +4 -0
- robotframework_datadriver-1.12.0/atest/TestCases/FirstColumn/tags.robot +19 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Names/dict_variables_in_name.csv +3 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Names/dict_variables_in_name.robot +18 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Names/name_resolution.py +19 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Names/name_resolution.robot +32 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/dynamic_tests_handover.py +29 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/dynamic_tests_handover.robot +28 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/many_tests_pict.pict +4 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/many_tests_pict.robot +30 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/optimize_atomic.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/optimize_binary.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/optimize_equal.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/pabot_data.csv +41 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/pabot_whitespace.csv +5 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/whitespace_atomic.robot +17 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/whitespace_binary.robot +17 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Pabot/whitespace_equal.robot +17 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/cli_tag_filter.robot +19 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/dynamic_tests.csv +7 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/dynamic_tests.robot +18 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/library_tag_filter_overrides_cli.robot +18 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/optimize_pabot_override.csv +7 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/optimize_pabot_override.robot +23 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/rerun_failed.csv +11 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/rerun_failed.robot +26 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/rerun_same_name/first/dd.csv +3 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/rerun_same_name/first/dd.robot +25 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/rerun_same_name/first/plain.robot +19 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/rerun_same_name/second/dd.csv +3 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/rerun_same_name/second/dd.robot +25 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/rerun_same_name/second/plain.robot +19 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/tasks.csv +4 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Scenarios/tasks.robot +18 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Setup_Teardown/Setups_Teardowns.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Some_Fail/2_of_10_fail.robot +1 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Tags/handle_template_tags_default.robot +25 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Tags/handle_template_tags_force.robot +23 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Tags/handle_template_tags_notags.robot +23 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Tags/handle_template_tags_unset.robot +23 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Tags/library_exclude.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Tags/library_include.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Tags/library_include_exclude.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Tags/library_include_none.robot +16 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Tags/tag_filter.csv +8 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Tags/template_tags.csv +4 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Tags/test.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Timeouts/timeout.robot +1 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Variables/datadriver_variables.csv +4 -0
- robotframework_datadriver-1.12.0/atest/TestCases/Variables/datadriver_variables.robot +38 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/csv_reader_config/reader_by_filename.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/csv_reader_config/reader_by_module_name.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/csv_reader_config/reader_by_name.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/csv_reader_config/reader_by_path.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/custom_reader.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/custom_reader_local.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/file_search_strategy_none.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/jsonreader.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/with_path_and_file.robot +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/performance/10.000.robot +1 -0
- robotframework_datadriver-1.12.0/atest/count_checker.py +204 -0
- robotframework_datadriver-1.12.0/atest/run_atest.py +549 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/.gitignore +2 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.0.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.1.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.10.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.11.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.12.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.13.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.14.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.15.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.2.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.3.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.4.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.5.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.6.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.7.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.8.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.12/cache.9.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.0.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.1.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.10.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.11.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.12.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.13.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.14.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.15.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.2.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.3.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.4.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.5.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.6.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.7.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.8.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/3.13/cache.9.db +0 -0
- robotframework_datadriver-1.12.0/atest/typing/.mypy_cache/CACHEDIR.TAG +3 -0
- robotframework_datadriver-1.12.0/atest/typing/custom_reader_usage.py +21 -0
- robotframework_datadriver-1.12.0/doc/DataDriver.html +484 -0
- robotframework_datadriver-1.12.0/example/.DS_Store +0 -0
- robotframework_datadriver-1.12.0/example/.vscode/DataDriver.code-workspace +8 -0
- robotframework_datadriver-1.12.0/example/.vscode/tasks.json +38 -0
- robotframework_datadriver-1.12.0/example/Login Tests/.DS_Store +0 -0
- robotframework_datadriver-1.12.0/example/Login Tests/.idea/Login Tests.iml +11 -0
- robotframework_datadriver-1.12.0/example/Login Tests/.idea/inspectionProfiles/profiles_settings.xml +6 -0
- robotframework_datadriver-1.12.0/example/Login Tests/.idea/misc.xml +4 -0
- robotframework_datadriver-1.12.0/example/Login Tests/.idea/modules.xml +8 -0
- robotframework_datadriver-1.12.0/example/Login Tests/.idea/vcs.xml +6 -0
- robotframework_datadriver-1.12.0/example/Login Tests/.idea/workspace.xml +110 -0
- robotframework_datadriver-1.12.0/example/Login Tests/DataDriven_regex.robot +22 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/.DS_Store +0 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/geckodriver-1.log +14 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/geckodriver-2.log +12 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/geckodriver-3.log +10 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/geckodriver-4.log +10 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/output.xml +541 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/selenium-screenshot-1.png +0 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/selenium-screenshot-2.png +0 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/selenium-screenshot-3.png +0 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/selenium-screenshot-4.png +0 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/selenium-screenshot-5.png +0 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/selenium-screenshot-6.png +0 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/selenium-screenshot-7.png +0 -0
- robotframework_datadriver-1.12.0/example/Login Tests/logs/selenium-screenshot-8.png +0 -0
- robotframework_datadriver-1.12.0/example/README.md +52 -0
- robotframework_datadriver-1.12.0/example/demo_web_server/.DS_Store +0 -0
- robotframework_datadriver-1.12.0/pyproject.toml +150 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/AbstractReaderClass.py +23 -22
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/DataDriver.py +252 -137
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/ReaderConfig.py +18 -18
- robotframework_datadriver-1.12.0/src/DataDriver/__init__.py +7 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/json_reader.py +1 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/pict_reader.py +25 -16
- robotframework_datadriver-1.12.0/src/DataDriver/py.typed +0 -0
- robotframework_datadriver-1.12.0/src/DataDriver/rerunfailed.py +86 -0
- robotframework_datadriver-1.12.0/src/DataDriver/search.py +122 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/utils.py +65 -14
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/xls_reader.py +1 -1
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/xlsx_reader.py +14 -1
- robotframework_datadriver-1.12.0/tasks.py +257 -0
- robotframework-datadriver-1.11.1/CONTRIBUTION.md +0 -23
- robotframework-datadriver-1.11.1/MANIFEST.in +0 -44
- robotframework-datadriver-1.11.1/Readme.rst +0 -1277
- robotframework-datadriver-1.11.1/atest/TestCases/Defaults/XLS/defaults_xlsx.xlsx +0 -0
- robotframework-datadriver-1.11.1/atest/run_atest.bat +0 -1
- robotframework-datadriver-1.11.1/atest/run_atest.py +0 -13
- robotframework-datadriver-1.11.1/atest/run_atest.sh +0 -1
- robotframework-datadriver-1.11.1/atest/run_atest_pabot.bat +0 -1
- robotframework-datadriver-1.11.1/atest/run_atest_pabot.sh +0 -1
- robotframework-datadriver-1.11.1/create_readme.py +0 -8
- robotframework-datadriver-1.11.1/dev-requirements.txt +0 -10
- robotframework-datadriver-1.11.1/doc/DataDriver.html +0 -1876
- robotframework-datadriver-1.11.1/docs/index.html +0 -1876
- robotframework-datadriver-1.11.1/example/Login Tests/DataDriven_regex.robot +0 -22
- robotframework-datadriver-1.11.1/pyproject.toml +0 -58
- robotframework-datadriver-1.11.1/setup.cfg +0 -4
- robotframework-datadriver-1.11.1/setup.py +0 -40
- robotframework-datadriver-1.11.1/src/DataDriver/__init__.py +0 -1
- robotframework-datadriver-1.11.1/src/DataDriver/rerunfailed.py +0 -60
- robotframework-datadriver-1.11.1/src/DataDriver/search.py +0 -246
- robotframework-datadriver-1.11.1/src/robotframework_datadriver.egg-info/SOURCES.txt +0 -157
- robotframework-datadriver-1.11.1/src/robotframework_datadriver.egg-info/dependency_links.txt +0 -1
- robotframework-datadriver-1.11.1/src/robotframework_datadriver.egg-info/requires.txt +0 -8
- robotframework-datadriver-1.11.1/src/robotframework_datadriver.egg-info/top_level.txt +0 -1
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/COPYRIGHT.txt +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/LICENSE +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/@plugins_snapshot.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_ast.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_ast.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_importlib_modulespec.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_importlib_modulespec.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_typeshed/__init__.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_typeshed/__init__.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/abc.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/abc.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/array.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/array.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/ast.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/ast.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/builtins.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/builtins.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/codecs.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/codecs.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/collections/__init__.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/collections/__init__.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/genericpath.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/genericpath.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/importlib/__init__.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/importlib/__init__.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/importlib/abc.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/importlib/abc.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/io.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/io.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/mmap.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/mmap.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/os/__init__.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/os/__init__.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/os/path.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/os/path.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/posix.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/posix.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/sys.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/sys.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/types.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/types.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/typing.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/typing.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/typing_extensions.data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/typing_extensions.meta.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Check_DataTypes.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Check_DataTypes_xlsx.xlsx +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/LiteralEval.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Types_in_dicts.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/defaults.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/generic_csv_reader.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/test_case_names.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/test_case_no_names.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/DataFiles/First_File.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/DataFiles/Last_File.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/DataFiles/Wrong_File.NoJson +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/FoldersToFind/Folder1/verify.txt +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/FoldersToFind/Folder2/verify.txt +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/PICT/defaults_pict.pict +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/PICT/pict_arg.pict +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/XLS/defaults_xls.xls +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Setup_Teardown/Setups_Teardowns.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Some_Fail/2_of_10_fail.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Tags/foo_reader.py +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/Timeouts/timeout.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/csv_reader_config/tab-csv-file-name.tsv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/custom_reader.py +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/data.json +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/dummy.txt +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/atest/TestCases/performance/10000.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven.csv +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven.pict +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven.robot +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven.xls +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven.xlsx +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven_pict.robot +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven_xls.robot +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven_xlsx.robot +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/invalidLogins.robot +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/login_resources.robot +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/logs/log.html +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/logs/report.html +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/Login Tests/validTest.robot +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/demo_web_server/html/demo.css +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/demo_web_server/html/error.html +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/demo_web_server/html/index.html +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/demo_web_server/html/log.html +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/demo_web_server/html/welcome.html +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/example/demo_web_server/server.py +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/argument_utils.py +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/csv_reader.py +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/generic_csv_reader.py +0 -0
- {robotframework-datadriver-1.11.1 → robotframework_datadriver-1.12.0}/src/DataDriver/glob_reader.py +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
### Environment
|
|
2
|
+
|
|
3
|
+
To test DataDriver i would strongly recomment to create virtual environment.
|
|
4
|
+
|
|
5
|
+
Steps:
|
|
6
|
+
- First fork DataDriver
|
|
7
|
+
- Clone the fork to you disk
|
|
8
|
+
- in your terminal execute `python -m venv .venv` in the main folder of robotframework-datadriver
|
|
9
|
+
- activate that virtual environment (unix: `source .venv/bin/activate`)
|
|
10
|
+
- install DataDriver editable from source together with all dev requirements `pip install -e ".[xls,dev]"`
|
|
11
|
+
- all development actions are [invoke](https://www.pyinvoke.org/) tasks, see `invoke --list`:
|
|
12
|
+
- `invoke lint` (ruff check + format check), `invoke format` (apply ruff fixes and formatting)
|
|
13
|
+
- `invoke typecheck` (mypy on the package and on `atest/typing` against the installed package)
|
|
14
|
+
- `invoke readme`, `invoke libdoc`, `invoke docs` (both)
|
|
15
|
+
- `invoke atest`, `invoke atest --pabot`
|
|
16
|
+
- `invoke build`, `invoke publish`, `invoke clean`
|
|
17
|
+
|
|
18
|
+
### ATests
|
|
19
|
+
|
|
20
|
+
Run the acceptance tests with `invoke atest`.
|
|
21
|
+
The data-driven PICT tests need the [pict](https://github.com/microsoft/pict) binary on `PATH`.
|
|
22
|
+
|
|
23
|
+
The runner executes:
|
|
24
|
+
|
|
25
|
+
- **main**: all suites in `atest/TestCases`, except the tags `performance`, `failing`, `filtered` and `scenario`.
|
|
26
|
+
- **scenarios**: suites tagged `scenario` that need special command line options
|
|
27
|
+
(`DYNAMICTEST(S)`, `--include`/`--exclude`, `--rpa`, the `rerunfailed` prerunmodifier, `DATADRIVER_OPTIMIZE_PABOT`).
|
|
28
|
+
See `invoke atest --list`.
|
|
29
|
+
|
|
30
|
+
After every run, `atest/count_checker.py` checks that each data-driven suite generated exactly the
|
|
31
|
+
expected number of tests. Each suite declares that number in its settings:
|
|
32
|
+
|
|
33
|
+
```robotframework
|
|
34
|
+
*** Settings ***
|
|
35
|
+
Metadata Expected Test Count 12
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
A new suite without this metadata fails the check. Scenarios define their own expected counts in `run_atest.py`.
|
|
39
|
+
|
|
40
|
+
Useful options: `--only main --only dynamictests`, `--no-scenarios`, `--verbose` (full robot output), `--outputdir`.
|
|
41
|
+
|
|
42
|
+
A test for a known, not yet fixed bug is excluded from CI by the `failing` tag on the suite,
|
|
43
|
+
`known_issue=` on a scenario in `run_atest.py` or an entry in `PABOT_KNOWN_ISSUES` in `run_atest.py`
|
|
44
|
+
(the last two report XFAIL, and XPASS once the bug is fixed). Remove the marker with the fix.
|
|
45
|
+
`Some_Fail/2_of_10_fail.robot` and `Timeouts/timeout.robot` fail on purpose and are tagged `failing`.
|
|
46
|
+
|
|
47
|
+
#### Pabot tests
|
|
48
|
+
|
|
49
|
+
`invoke atest --pabot` runs the main suites with
|
|
50
|
+
`pabot --testlevelsplit --pabotlib --processes 4` and checks the counts on the merged output.
|
|
51
|
+
Suites tagged `nopabot` are excluded.
|
|
52
|
+
|
|
53
|
+
### Coverage
|
|
54
|
+
|
|
55
|
+
`invoke atest --coverage` (also with `--pabot`) measures statement and branch coverage of DataDriver in
|
|
56
|
+
all robot/pabot processes. `invoke coverage-report` combines the data, writes `coverage_report/html` and
|
|
57
|
+
fails if the combined coverage is below `fail_under` in `pyproject.toml`.
|
|
58
|
+
When coverage improves, raise `fail_under`; the report prints a hint.
|
|
59
|
+
|
|
60
|
+
### CI
|
|
61
|
+
|
|
62
|
+
`.github/workflows/tests.yml` runs the same invoke tasks: `lint`, `build`, `docs` and `atest` on
|
|
63
|
+
Ubuntu and Windows for all supported Python versions and Robot Framework minor versions
|
|
64
|
+
(not every combination), plus pabot runs. A final job combines the coverage of all jobs and fails below
|
|
65
|
+
`fail_under`.
|
|
66
|
+
|
|
67
|
+
### Release
|
|
68
|
+
|
|
69
|
+
1. Set `__version__` in `src/DataDriver/__init__.py` (flit reads the version from there) and run
|
|
70
|
+
`invoke docs`, so Readme and libdoc show the new version. Commit and merge to `main`.
|
|
71
|
+
2. `invoke publish` builds sdist and wheel with flit and uploads them to PyPI after a confirmation
|
|
72
|
+
(`invoke publish --repository testpypi` for a test upload, the repository must be in `~/.pypirc`).
|
|
73
|
+
Credentials come from `~/.pypirc`, the keyring or `FLIT_USERNAME`/`FLIT_PASSWORD`
|
|
74
|
+
(for an API token the username is `__token__`); otherwise flit asks for them.
|
|
75
|
+
3. Tag the release commit with the version (e.g. `1.12.0`) and create the GitHub release.
|
|
@@ -1,24 +1,43 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: robotframework-datadriver
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.12.0
|
|
4
4
|
Summary: A library for Data-Driven Testing.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Author-email: "René Rohner(Snooz82)" <snooz@posteo.de>
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/x-rst
|
|
8
|
+
License-Expression: Apache-2.0
|
|
8
9
|
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
-
Classifier:
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
15
|
Classifier: Operating System :: OS Independent
|
|
15
16
|
Classifier: Topic :: Software Development :: Testing
|
|
16
17
|
Classifier: Topic :: Software Development :: Testing :: Acceptance
|
|
17
18
|
Classifier: Framework :: Robot Framework
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Provides-Extra: xls
|
|
19
|
+
Classifier: Framework :: Robot Framework :: Library
|
|
20
|
+
License-File: COPYRIGHT.txt
|
|
21
21
|
License-File: LICENSE
|
|
22
|
+
Requires-Dist: robotframework >= 7.1.1, < 8.0
|
|
23
|
+
Requires-Dist: docutils
|
|
24
|
+
Requires-Dist: Pygments
|
|
25
|
+
Requires-Dist: coverage[toml] ; extra == "dev"
|
|
26
|
+
Requires-Dist: invoke ; extra == "dev"
|
|
27
|
+
Requires-Dist: robotframework-pabot ; extra == "dev"
|
|
28
|
+
Requires-Dist: robotframework-stacktrace ; extra == "dev"
|
|
29
|
+
Requires-Dist: ruff ; extra == "dev"
|
|
30
|
+
Requires-Dist: mypy ; extra == "dev"
|
|
31
|
+
Requires-Dist: flit ; extra == "dev"
|
|
32
|
+
Requires-Dist: pandas ; extra == "xls"
|
|
33
|
+
Requires-Dist: xlrd >= 1.2.0 ; extra == "xls"
|
|
34
|
+
Requires-Dist: openpyxl ; extra == "xls"
|
|
35
|
+
Project-URL: Homepage, https://github.com/Snooz82/robotframework-datadriver
|
|
36
|
+
Project-URL: Issues, https://github.com/Snooz82/robotframework-datadriver/issues
|
|
37
|
+
Project-URL: Source, https://github.com/Snooz82/robotframework-datadriver
|
|
38
|
+
Provides-Extra: dev
|
|
39
|
+
Provides-Extra: xls
|
|
40
|
+
Import-Name: DataDriver
|
|
22
41
|
|
|
23
42
|
===================================================
|
|
24
43
|
DataDriver for Robot Framework®
|
|
@@ -35,10 +54,10 @@ DataDriver is used/imported as Library but does not provide keywords
|
|
|
35
54
|
which can be used in a test. DataDriver uses the Listener Interface
|
|
36
55
|
Version 3 to manipulate the test cases and creates new test cases based
|
|
37
56
|
on a Data-File that contains the data for Data-Driven Testing. These
|
|
38
|
-
data
|
|
57
|
+
data files may be .csv, .xls or .xlsx files.
|
|
39
58
|
|
|
40
|
-
|
|
41
|
-
|
|
59
|
+
DataDriver is also able to cooperate with Microsoft PICT, an open
|
|
60
|
+
source tool for data combination testing. PICT is able to
|
|
42
61
|
generate data combinations based on textual model definitions.
|
|
43
62
|
https://github.com/Microsoft/pict
|
|
44
63
|
|
|
@@ -49,7 +68,8 @@ your test data from some other sources, like databases or json files.
|
|
|
49
68
|
Installation
|
|
50
69
|
------------
|
|
51
70
|
|
|
52
|
-
|
|
71
|
+
DataDriver requires Python >= 3.11 and Robot Framework >= 7.1.1.
|
|
72
|
+
If you already have Python with pip installed, you can simply
|
|
53
73
|
run:
|
|
54
74
|
|
|
55
75
|
``pip install --upgrade robotframework-datadriver``
|
|
@@ -58,9 +78,9 @@ run:
|
|
|
58
78
|
Excel Support
|
|
59
79
|
~~~~~~~~~~~~~
|
|
60
80
|
|
|
61
|
-
For
|
|
62
|
-
It contains the dependencies
|
|
63
|
-
New since version 3.6.
|
|
81
|
+
For ``xls`` or ``xlsx`` files you need to install the extra XLS or its dependencies.
|
|
82
|
+
It contains the dependencies pandas, xlrd and openpyxl. Just add [XLS] to your installation.
|
|
83
|
+
New since version 0.3.6.
|
|
64
84
|
|
|
65
85
|
``pip install --upgrade robotframework-datadriver[XLS]``
|
|
66
86
|
|
|
@@ -68,15 +88,11 @@ New since version 3.6.
|
|
|
68
88
|
Python 2
|
|
69
89
|
~~~~~~~~
|
|
70
90
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
``pip3 install --upgrade robotframework-datadriver``
|
|
74
|
-
|
|
75
|
-
DataDriver is compatible with Python 2.7 only in Version 0.2.7.
|
|
91
|
+
The last version that is compatible with Python 2.7 is 0.2.7.
|
|
76
92
|
|
|
77
93
|
``pip install --upgrade robotframework-datadriver==0.2.7``
|
|
78
94
|
|
|
79
|
-
|
|
95
|
+
Python 2.7 is not supported anymore, so this version does not get any new features or fixes.
|
|
80
96
|
|
|
81
97
|
|
|
82
98
|
Table of contents
|
|
@@ -114,13 +130,13 @@ RoboCon 2020 Talk
|
|
|
114
130
|
.. image:: https://img.youtube.com/vi/RtEUr1i4x3s/0.jpg
|
|
115
131
|
:target: https://www.youtube.com/watch?v=RtEUr1i4x3s
|
|
116
132
|
|
|
117
|
-
Brief overview what DataDriver is and how it works at the RoboCon 2020 in
|
|
133
|
+
Brief overview of what DataDriver is and how it works at the RoboCon 2020 in Helsinki.
|
|
118
134
|
|
|
119
135
|
|
|
120
136
|
Alternative approach
|
|
121
137
|
~~~~~~~~~~~~~~~~~~~~
|
|
122
138
|
|
|
123
|
-
DataDriver gives an alternative to the
|
|
139
|
+
DataDriver gives an alternative to the built-in data-driven approach
|
|
124
140
|
like:
|
|
125
141
|
|
|
126
142
|
.. code :: robotframework
|
|
@@ -134,7 +150,7 @@ like:
|
|
|
134
150
|
Test Template Invalid login
|
|
135
151
|
|
|
136
152
|
|
|
137
|
-
*** Test Cases *** User
|
|
153
|
+
*** Test Cases *** User Password
|
|
138
154
|
Right user empty pass demo ${EMPTY}
|
|
139
155
|
Right user wrong pass demo FooBar
|
|
140
156
|
|
|
@@ -154,18 +170,18 @@ like:
|
|
|
154
170
|
click login button
|
|
155
171
|
Error page should be visible
|
|
156
172
|
|
|
157
|
-
This
|
|
158
|
-
test cases. If you have generated or calculated data and
|
|
159
|
-
you have a variable amount of test
|
|
173
|
+
This built-in approach is fine for a handful of data and a handful of
|
|
174
|
+
test cases. If you have generated or calculated data and especially if
|
|
175
|
+
you have a variable amount of test cases / combinations, these robot files
|
|
160
176
|
become quite a pain. With DataDriver you may write the same test case
|
|
161
|
-
syntax but only once and deliver the data from
|
|
177
|
+
syntax but only once and deliver the data from an external data file.
|
|
162
178
|
|
|
163
179
|
One of the rare reasons when Microsoft® Excel or LibreOffice Calc may be
|
|
164
180
|
used in testing… ;-)
|
|
165
181
|
|
|
166
|
-
`See example test suite <#example-suite>`__
|
|
182
|
+
`See example test suite <#example-test-suite>`__
|
|
167
183
|
|
|
168
|
-
`See example csv table <#example-
|
|
184
|
+
`See example csv table <#example-data-file>`__
|
|
169
185
|
|
|
170
186
|
|
|
171
187
|
How DataDriver Works
|
|
@@ -177,12 +193,11 @@ Framework® to read and modify the test specification objects. After
|
|
|
177
193
|
activation it searches for the ``Test Template`` -Keyword to analyze the
|
|
178
194
|
``[Arguments]`` it has. As a second step, it loads the data from the
|
|
179
195
|
specified data source. Based on the ``Test Template`` -Keyword, DataDriver
|
|
180
|
-
creates as
|
|
196
|
+
creates as many test cases as there are data sets in the data source.
|
|
181
197
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
``[Arguments]``.
|
|
198
|
+
If the data source is a csv file (default), DataDriver reads the values
|
|
199
|
+
for the arguments of the ``Test Template`` -Keyword from the columns of
|
|
200
|
+
the CSV file with the matching names of the ``[Arguments]``.
|
|
186
201
|
For each line of the CSV data table, one test case will be created. It
|
|
187
202
|
is also possible to specify test case names, tags and documentation for
|
|
188
203
|
each test case in the specific test suite related CSV file.
|
|
@@ -199,7 +214,10 @@ To use it, just use it as Library in your suite. You may use the first
|
|
|
199
214
|
argument (option) which may set the file name or path to the data file.
|
|
200
215
|
|
|
201
216
|
Without any options set, it loads a .csv file which has the same name
|
|
202
|
-
and path
|
|
217
|
+
and path as the test suite .robot file.
|
|
218
|
+
|
|
219
|
+
Runnable examples are in the `example folder <https://github.com/Snooz82/robotframework-datadriver/tree/main/example>`_
|
|
220
|
+
of the repository. Its README describes the prerequisites.
|
|
203
221
|
|
|
204
222
|
|
|
205
223
|
|
|
@@ -223,14 +241,14 @@ Structure of Test Suite
|
|
|
223
241
|
Requirements
|
|
224
242
|
~~~~~~~~~~~~
|
|
225
243
|
|
|
226
|
-
|
|
244
|
+
At the moment there are some requirements how a test
|
|
227
245
|
suite must be structured so that the DataDriver can get all the
|
|
228
246
|
information it needs.
|
|
229
247
|
|
|
230
248
|
- only the first test case will be used as a template. All other test
|
|
231
249
|
cases will be deleted.
|
|
232
250
|
- Test cases have to be defined with a
|
|
233
|
-
``Test Template`` in Settings
|
|
251
|
+
``Test Template`` in Settings section. Reason for this is,
|
|
234
252
|
that the DataDriver needs to know the names of the test case arguments.
|
|
235
253
|
Test cases do not have named arguments. Keywords do.
|
|
236
254
|
- The keyword which is used as
|
|
@@ -245,7 +263,7 @@ Example Test Suite
|
|
|
245
263
|
|
|
246
264
|
.. code :: robotframework
|
|
247
265
|
|
|
248
|
-
***Settings***
|
|
266
|
+
*** Settings ***
|
|
249
267
|
Library DataDriver
|
|
250
268
|
Resource login_resources.robot
|
|
251
269
|
Suite Setup Open my Browser
|
|
@@ -253,10 +271,10 @@ Example Test Suite
|
|
|
253
271
|
Test Setup Open Login Page
|
|
254
272
|
Test Template Invalid Login
|
|
255
273
|
|
|
256
|
-
*** Test
|
|
274
|
+
*** Test Cases ***
|
|
257
275
|
Login with user ${username} and password ${password} Default UserData
|
|
258
276
|
|
|
259
|
-
|
|
277
|
+
*** Keywords ***
|
|
260
278
|
Invalid login
|
|
261
279
|
[Arguments] ${username} ${password}
|
|
262
280
|
Input username ${username}
|
|
@@ -348,16 +366,16 @@ Supported Data Types
|
|
|
348
366
|
~~~~~~~~~~~~~~~~~~~~
|
|
349
367
|
|
|
350
368
|
In general DataDriver supports any Object that is handed over from the DataReader.
|
|
351
|
-
However the text based readers for csv, excel and so
|
|
369
|
+
However the text based readers for csv, excel and so on support different types as well.
|
|
352
370
|
DataDriver supports Robot Framework® Scalar variables as well as Dictionaries and Lists.
|
|
353
|
-
It also
|
|
371
|
+
It also supports python literal evaluations.
|
|
354
372
|
|
|
355
373
|
Scalar Variables
|
|
356
374
|
^^^^^^^^^^^^^^^^
|
|
357
375
|
|
|
358
376
|
The Prefix ``$`` defines that the value in the cell is taken as in Robot Framework® Syntax.
|
|
359
377
|
``String`` is ``str``, ``${1}`` is ``int`` and ``${None}`` is NoneType.
|
|
360
|
-
The Prefix only defines the value
|
|
378
|
+
The Prefix only defines the value type. It can also be used to assign a scalar to a dictionary key.
|
|
361
379
|
See example table: ``${user}[id]``
|
|
362
380
|
|
|
363
381
|
|
|
@@ -367,7 +385,7 @@ Dictionary Variables
|
|
|
367
385
|
Dictionaries can be created in different ways.
|
|
368
386
|
|
|
369
387
|
One option is, to use the prefix ``&``.
|
|
370
|
-
If a variable is defined that
|
|
388
|
+
If a variable is defined that way (i.e. ``&{dict}``), the cell value is interpreted the same way
|
|
371
389
|
the BuiltIn keyword `Create Dictionary <https://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Create%20Dictionary>`_ would do.
|
|
372
390
|
The arguments here are comma (``,``) separated.
|
|
373
391
|
See example table: ``&{dict}``
|
|
@@ -383,7 +401,7 @@ List Variables
|
|
|
383
401
|
Lists can be created with the prefix ``@`` as comma (``,``) separated list.
|
|
384
402
|
See example table: ``@{list}``
|
|
385
403
|
|
|
386
|
-
Be aware that a list with an empty string has to be the cell content
|
|
404
|
+
Be aware that a list with an empty string as only item has to be the cell content ``${Empty}``.
|
|
387
405
|
|
|
388
406
|
Python Literals
|
|
389
407
|
^^^^^^^^^^^^^^^
|
|
@@ -415,8 +433,8 @@ See example table: ``e{user.chk}``
|
|
|
415
433
|
Accessing Test Data From Robot Variables
|
|
416
434
|
----------------------------------------
|
|
417
435
|
|
|
418
|
-
If
|
|
419
|
-
This could be
|
|
436
|
+
If necessary it is possible to access the fetched data tables directly from a Robot Framework® variable.
|
|
437
|
+
This could be helpful in Test Setup or in Suite Setup.
|
|
420
438
|
|
|
421
439
|
There are three variables available within the Data-Driven Suite:
|
|
422
440
|
|
|
@@ -671,6 +689,14 @@ By default DataDriver reads csv files. With the `Encoding and CSV
|
|
|
671
689
|
Dialect <#file-encoding-and-csv-dialect>`__ settings you may configure which
|
|
672
690
|
structure your data source has.
|
|
673
691
|
|
|
692
|
+
DataDriver selects the reader by the file extension and there is no reader for ``.tsv``.
|
|
693
|
+
To read a tab separated file with the extension ``.tsv``, set the csv reader and the dialect:
|
|
694
|
+
|
|
695
|
+
.. code :: robotframework
|
|
696
|
+
|
|
697
|
+
*** Settings ***
|
|
698
|
+
Library DataDriver file=my_data.tsv reader_class=csv_reader dialect=excel-tab
|
|
699
|
+
|
|
674
700
|
|
|
675
701
|
XLS / XLSX Files
|
|
676
702
|
~~~~~~~~~~~~~~~~
|
|
@@ -678,11 +704,11 @@ XLS / XLSX Files
|
|
|
678
704
|
To use Excel file types, you have to install DataDriver with the Extra XLS.
|
|
679
705
|
|
|
680
706
|
If you want to use Excel based data sources, you may just set the file
|
|
681
|
-
to the
|
|
707
|
+
to the extension or you may point to the correct file. If the extension
|
|
682
708
|
is ".xls" or ".xlsx" DataDriver will interpret it as Excel file.
|
|
683
709
|
You may select the sheet which will be read by the option ``sheet_name``.
|
|
684
710
|
By default it is set to 0 which will be the first table sheet.
|
|
685
|
-
You may use sheet index (0 is first sheet) or sheet name(case sensitive).
|
|
711
|
+
You may use sheet index (0 is first sheet) or sheet name (case sensitive).
|
|
686
712
|
XLS interpreter will ignore all other options like encoding, delimiters etc.
|
|
687
713
|
|
|
688
714
|
.. code :: robotframework
|
|
@@ -701,13 +727,13 @@ or:
|
|
|
701
727
|
MS Excel and typed cells
|
|
702
728
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
703
729
|
|
|
704
|
-
Microsoft Excel xls or xlsx
|
|
730
|
+
Microsoft Excel xls or xlsx files have the possibility to type their data
|
|
705
731
|
cells. Numbers are typically of the type float. If these data are not
|
|
706
732
|
explicitly defined as text in Excel, pandas will read it as the type
|
|
707
|
-
that
|
|
733
|
+
that it has in Excel. Because we have to work with strings in Robot
|
|
708
734
|
Framework® these data are converted to string. This leads to the
|
|
709
|
-
situation that a European
|
|
710
|
-
2019) is handed over to Robot Framework® in
|
|
735
|
+
situation that a European date value like "04.02.2019" (4th February
|
|
736
|
+
2019) is handed over to Robot Framework® in ISO format "2019-02-04
|
|
711
737
|
00:00:00". This may cause unwanted behavior. To mitigate this risk you
|
|
712
738
|
should define Excel based files explicitly as text within Excel.
|
|
713
739
|
|
|
@@ -733,26 +759,27 @@ Documentation: https://github.com/Microsoft/pict/blob/master/doc/pict.md
|
|
|
733
759
|
Requirements of PICT
|
|
734
760
|
^^^^^^^^^^^^^^^^^^^^
|
|
735
761
|
|
|
736
|
-
-
|
|
737
|
-
|
|
738
|
-
-
|
|
762
|
+
- The ``pict`` executable (``pict.exe`` on Windows) must be in the ``PATH`` environment variable.
|
|
763
|
+
On Linux and macOS PICT can be built from source.
|
|
764
|
+
- Data model file has the file extension ".pict"
|
|
765
|
+
- PICT model file must be encoded in UTF-8
|
|
739
766
|
|
|
740
767
|
|
|
741
768
|
How it works
|
|
742
769
|
^^^^^^^^^^^^
|
|
743
770
|
|
|
744
|
-
If the file option is set to a file with the
|
|
745
|
-
will hand over this file to pict
|
|
746
|
-
a file with the
|
|
747
|
-
source for the test generation. (It is tab
|
|
748
|
-
Except
|
|
771
|
+
If the file option is set to a file with the extension pict, DataDriver
|
|
772
|
+
will hand over this file to pict and let it automatically generate
|
|
773
|
+
a file with the extension ".pictout". This file will then be used as data
|
|
774
|
+
source for the test generation. (It is tab separated and UTF-8 encoded)
|
|
775
|
+
Except ``file`` and ``pict_options``, all other options of the library will be ignored.
|
|
749
776
|
|
|
750
777
|
.. code :: robotframework
|
|
751
778
|
|
|
752
779
|
*** Settings ***
|
|
753
780
|
Library DataDriver my_model_file.pict
|
|
754
781
|
|
|
755
|
-
It is possible to give options to pict with the import argument
|
|
782
|
+
It is possible to give options to pict with the import argument ``pict_options=``.
|
|
756
783
|
|
|
757
784
|
.. code :: robotframework
|
|
758
785
|
|
|
@@ -870,6 +897,7 @@ dialect=
|
|
|
870
897
|
|
|
871
898
|
You may change the CSV Dialect here.
|
|
872
899
|
The dialect option can be one of the following:
|
|
900
|
+
|
|
873
901
|
- Excel-EU
|
|
874
902
|
- excel
|
|
875
903
|
- excel-tab
|
|
@@ -928,14 +956,14 @@ Usage in Robot Framework®
|
|
|
928
956
|
.. code :: robotframework
|
|
929
957
|
|
|
930
958
|
*** Settings ***
|
|
931
|
-
Library DataDriver my_data_file.csv dialect=
|
|
959
|
+
Library DataDriver my_data_file.csv dialect=excel-tab
|
|
932
960
|
|
|
933
961
|
|
|
934
962
|
|
|
935
963
|
.. code :: robotframework
|
|
936
964
|
|
|
937
965
|
*** Settings ***
|
|
938
|
-
Library DataDriver my_data_file.csv dialect=
|
|
966
|
+
Library DataDriver my_data_file.csv dialect=unix
|
|
939
967
|
|
|
940
968
|
|
|
941
969
|
|
|
@@ -989,7 +1017,7 @@ Using Custom DataReader
|
|
|
989
1017
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
990
1018
|
|
|
991
1019
|
DataReader classes are loaded dynamically into DataDriver while runtime.
|
|
992
|
-
DataDriver identifies the DataReader to load by the file
|
|
1020
|
+
DataDriver identifies the DataReader to load by the file extension of the data file or by the option ``reader_class``.
|
|
993
1021
|
|
|
994
1022
|
|
|
995
1023
|
Select Reader by File Extension:
|
|
@@ -1009,9 +1037,9 @@ Select Reader by Option:
|
|
|
1009
1037
|
.. code :: robotframework
|
|
1010
1038
|
|
|
1011
1039
|
*** Settings ***
|
|
1012
|
-
|
|
1040
|
+
Library DataDriver file=mydata.csv reader_class=generic_csv_reader dialect=userdefined delimiter=\\t encoding=UTF-8
|
|
1013
1041
|
|
|
1014
|
-
This will load the class ``generic_csv_reader`` from ``generic_csv_reader.py`` from same folder.
|
|
1042
|
+
This will load the class ``generic_csv_reader`` from ``generic_csv_reader.py`` from the same folder.
|
|
1015
1043
|
|
|
1016
1044
|
|
|
1017
1045
|
Create Custom Reader
|
|
@@ -1076,7 +1104,7 @@ See other readers as example.
|
|
|
1076
1104
|
Selection of Test Cases to Execute
|
|
1077
1105
|
----------------------------------
|
|
1078
1106
|
|
|
1079
|
-
Because test cases
|
|
1107
|
+
Because test cases are created by DataDriver during execution after parsing,
|
|
1080
1108
|
it is not possible to use some Robot Framework® methods to select test cases.
|
|
1081
1109
|
|
|
1082
1110
|
|
|
@@ -1121,7 +1149,7 @@ Select a list of test cases:
|
|
|
1121
1149
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1122
1150
|
|
|
1123
1151
|
It is possible to set a list of test case names by using the variable ${DYNAMICTESTS} (plural).
|
|
1124
|
-
This variable must be a string and the list of names must be pipe-
|
|
1152
|
+
This variable must be a string and the list of names must be pipe-separated (``|``).
|
|
1125
1153
|
|
|
1126
1154
|
Example:
|
|
1127
1155
|
|
|
@@ -1131,6 +1159,11 @@ Example:
|
|
|
1131
1159
|
|
|
1132
1160
|
It is also possible to set the variable @{DYNAMICTESTS} as a list variable from i.e. python code.
|
|
1133
1161
|
|
|
1162
|
+
**Note:** DataDriver uses ``${DYNAMICTEST}`` and ``${DYNAMICTESTS}`` internally to hand over
|
|
1163
|
+
the selected tests to the pabot processes. If you set one of them yourself, DataDriver does not
|
|
1164
|
+
distribute the tests of that suite with ``pabot --testlevelsplit``; they are executed in one process.
|
|
1165
|
+
Use tags to select tests if you want to run them in parallel.
|
|
1166
|
+
|
|
1134
1167
|
|
|
1135
1168
|
Re-run failed test cases:
|
|
1136
1169
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
@@ -1154,10 +1187,12 @@ Example:
|
|
|
1154
1187
|
robot --prerunmodifier DataDriver.rerunfailed:original.xml --output rerun.xml tests # then re-execute failing
|
|
1155
1188
|
rebot --merge original.xml rerun.xml # finally merge results
|
|
1156
1189
|
|
|
1190
|
+
This also works with ``pabot --testlevelsplit``: the failed tests are distributed to the pabot processes.
|
|
1191
|
+
|
|
1157
1192
|
|
|
1158
1193
|
Be aware, that in this case it is not allowed to use "``:``" as character in the original output file path.
|
|
1159
1194
|
If you want to set a full path on windows like ``e:\\myrobottest\\output.xml`` you have to use "``;``"
|
|
1160
|
-
as argument
|
|
1195
|
+
as argument separator.
|
|
1161
1196
|
|
|
1162
1197
|
Example:
|
|
1163
1198
|
|
|
@@ -1183,7 +1218,7 @@ To filter the source, the normal command line arguments of Robot Framework® can
|
|
|
1183
1218
|
See Robot Framework® Userguide_ for more information
|
|
1184
1219
|
Be aware that the filtering of Robot Framework® itself is done before DataDriver is called.
|
|
1185
1220
|
This means if the Template test is already filtered out by Robot Framework®, DataDriver can never be called.
|
|
1186
|
-
If you want to use ``--include`` the DataDriver TestSuite should have
|
|
1221
|
+
If you want to use ``--include`` the DataDriver TestSuite should have ``Test Tags`` (or ``[Tags]`` on the template test) that
|
|
1187
1222
|
fulfills these requirements.
|
|
1188
1223
|
|
|
1189
1224
|
.. _Userguide: https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#tag-patterns
|
|
@@ -1243,7 +1278,7 @@ Usage in Robot Framework®
|
|
|
1243
1278
|
Create File ${CURDIR}/test321.csv
|
|
1244
1279
|
... *** Test Cases ***,\\${var},\\n123,111,\\n321,222, # generating file
|
|
1245
1280
|
${new_config}= Create Dictionary file=test321.csv # set file attribute in a dictionary
|
|
1246
|
-
|
|
1281
|
+
RETURN ${new_config} # returns {'file': 'test321.csv'}
|
|
1247
1282
|
|
|
1248
1283
|
|
|
1249
1284
|
|
|
@@ -1256,16 +1291,16 @@ DataDriver supports ``--testlevelsplit`` from pabot only if the PabotLib is in u
|
|
|
1256
1291
|
Use ``--pabotlib`` to enable that.
|
|
1257
1292
|
|
|
1258
1293
|
When using pabot like this, DataDriver automatically splits the amount of test cases into nearly same sized groups.
|
|
1259
|
-
|
|
1294
|
+
It uses the processes count from pabot to calculate the groups.
|
|
1260
1295
|
When using 8 processes with 100 test cases you will get 8 groups of tests with the size of 12 to 13 tests.
|
|
1261
1296
|
These 8 groups are then executed as one block with 8 processes.
|
|
1262
1297
|
This reduces a lot of overhead with Suite Setup and Teardown.
|
|
1263
1298
|
|
|
1264
1299
|
You can switch between three modes:
|
|
1265
1300
|
|
|
1266
|
-
- ``Equal``: means it creates equal
|
|
1267
|
-
- ``Binary``: is more complex.
|
|
1268
|
-
- ``Atomic``: it does not group tests at all and runs
|
|
1301
|
+
- ``Equal``: means it creates equal sized groups
|
|
1302
|
+
- ``Binary``: is more complex. It creates containers of decreasing size to support better balancing.
|
|
1303
|
+
- ``Atomic``: it does not group tests at all and runs each test case in a separate process.
|
|
1269
1304
|
|
|
1270
1305
|
This can be set by ``optimize_pabot`` in Library import.
|
|
1271
1306
|
|
|
@@ -1297,3 +1332,49 @@ Binary creates with 40 test cases and 8 threads something like that:
|
|
|
1297
1332
|
P14: 38
|
|
1298
1333
|
P15: 39
|
|
1299
1334
|
P16: 40
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
Choose the mode for the whole run:
|
|
1338
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
1339
|
+
|
|
1340
|
+
Which mode fits best often depends on the run (number of processes, machine, test duration)
|
|
1341
|
+
and not on the suite. Set the variable ``${DATADRIVER_OPTIMIZE_PABOT}`` when you start pabot
|
|
1342
|
+
to use one mode for all DataDriver suites of the run:
|
|
1343
|
+
|
|
1344
|
+
.. code ::
|
|
1345
|
+
|
|
1346
|
+
pabot --testlevelsplit --pabotlib --variable DATADRIVER_OPTIMIZE_PABOT:Binary tests
|
|
1347
|
+
|
|
1348
|
+
``${DATADRIVER_OPTIMIZE_PABOT}`` is a global override: it wins over ``optimize_pabot`` in the
|
|
1349
|
+
Library import of every suite. Allowed values are ``Equal``, ``Binary`` and ``Atomic``
|
|
1350
|
+
(case-insensitive). Any other value, also an empty one, fails every DataDriver suite,
|
|
1351
|
+
also in a run without pabot.
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
Choose the mode per suite with your own variable:
|
|
1355
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
1356
|
+
|
|
1357
|
+
If only some suites shall follow the run, use your own variable in the Library import of
|
|
1358
|
+
these suites and give it a default value. Suites without that variable keep their own mode.
|
|
1359
|
+
|
|
1360
|
+
.. code :: robotframework
|
|
1361
|
+
|
|
1362
|
+
*** Settings ***
|
|
1363
|
+
Library DataDriver optimize_pabot=${PABOT_MODE}
|
|
1364
|
+
|
|
1365
|
+
*** Variables ***
|
|
1366
|
+
${PABOT_MODE} Equal
|
|
1367
|
+
|
|
1368
|
+
.. code ::
|
|
1369
|
+
|
|
1370
|
+
pabot --testlevelsplit --pabotlib --variable PABOT_MODE:Atomic tests
|
|
1371
|
+
|
|
1372
|
+
The default value can also be defined once in a resource file or variable file that the
|
|
1373
|
+
suites import.
|
|
1374
|
+
|
|
1375
|
+
The mode of a suite is taken from (first match wins):
|
|
1376
|
+
|
|
1377
|
+
1. ``${DATADRIVER_OPTIMIZE_PABOT}``
|
|
1378
|
+
2. ``optimize_pabot`` in the Library import (directly or by your own variable),
|
|
1379
|
+
or returned by the ``config_keyword``
|
|
1380
|
+
3. the default ``Equal``
|