robotframework-datadriver 1.11.2__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.2/src/robotframework_datadriver.egg-info → robotframework_datadriver-1.12.0}/PKG-INFO +159 -84
- robotframework_datadriver-1.11.2/PKG-INFO → robotframework_datadriver-1.12.0/Readme.rst +131 -97
- 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.2 → robotframework_datadriver-1.12.0}/atest/TestCases/ConfigKeyword/config_keyword_generate_file.robot +7 -4
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/ConfigKeyword/custom_reader.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Check_DataTypes.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Check_DataTypes_xlsx.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/LiteralEval.robot +1 -0
- {robotframework_datadriver-1.11.2 → 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.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/defaults.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/generic_csv_reader.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/test_case_names.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/test_case_no_names.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/defaults_glob_files.robot +1 -0
- {robotframework_datadriver-1.11.2 → 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.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/PICT/defaults_pict.robot +3 -0
- {robotframework_datadriver-1.11.2 → 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.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/XLS/defaults_xls.robot +1 -0
- {robotframework_datadriver-1.11.2 → 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.2 → 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.2 → 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.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Setup_Teardown/Setups_Teardowns.robot +1 -0
- {robotframework_datadriver-1.11.2 → 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.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Tags/test.robot +1 -0
- {robotframework_datadriver-1.11.2 → 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.2 → robotframework_datadriver-1.12.0}/atest/TestCases/csv_reader_config/reader_by_filename.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/csv_reader_config/reader_by_module_name.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/csv_reader_config/reader_by_name.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/csv_reader_config/reader_by_path.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/custom_reader.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/custom_reader_local.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/file_search_strategy_none.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/jsonreader.robot +1 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/with_path_and_file.robot +1 -0
- {robotframework_datadriver-1.11.2 → 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.2 → robotframework_datadriver-1.12.0}/src/DataDriver/AbstractReaderClass.py +23 -22
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/src/DataDriver/DataDriver.py +252 -143
- {robotframework_datadriver-1.11.2 → 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.2 → robotframework_datadriver-1.12.0}/src/DataDriver/json_reader.py +1 -0
- {robotframework_datadriver-1.11.2 → 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.2 → robotframework_datadriver-1.12.0}/src/DataDriver/utils.py +65 -14
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/src/DataDriver/xls_reader.py +1 -1
- {robotframework_datadriver-1.11.2 → 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.2/CONTRIBUTION.md +0 -23
- robotframework_datadriver-1.11.2/MANIFEST.in +0 -44
- robotframework_datadriver-1.11.2/Readme.rst +0 -1277
- robotframework_datadriver-1.11.2/atest/TestCases/ConfigKeyword/444test321.csv +0 -3
- robotframework_datadriver-1.11.2/atest/TestCases/ConfigKeyword/779test321.csv +0 -3
- robotframework_datadriver-1.11.2/atest/TestCases/ConfigKeyword/873test321.csv +0 -3
- robotframework_datadriver-1.11.2/atest/TestCases/Defaults/XLS/defaults_xlsx.xlsx +0 -0
- robotframework_datadriver-1.11.2/atest/run_atest.bat +0 -1
- robotframework_datadriver-1.11.2/atest/run_atest.py +0 -13
- robotframework_datadriver-1.11.2/atest/run_atest.sh +0 -1
- robotframework_datadriver-1.11.2/atest/run_atest_pabot.bat +0 -1
- robotframework_datadriver-1.11.2/atest/run_atest_pabot.sh +0 -1
- robotframework_datadriver-1.11.2/create_readme.py +0 -8
- robotframework_datadriver-1.11.2/dev-requirements.txt +0 -10
- robotframework_datadriver-1.11.2/doc/DataDriver.html +0 -1876
- robotframework_datadriver-1.11.2/docs/index.html +0 -1876
- robotframework_datadriver-1.11.2/example/Login Tests/DataDriven_regex.robot +0 -22
- robotframework_datadriver-1.11.2/pyproject.toml +0 -58
- robotframework_datadriver-1.11.2/setup.cfg +0 -4
- robotframework_datadriver-1.11.2/setup.py +0 -40
- robotframework_datadriver-1.11.2/src/DataDriver/__init__.py +0 -1
- robotframework_datadriver-1.11.2/src/DataDriver/rerunfailed.py +0 -60
- robotframework_datadriver-1.11.2/src/DataDriver/search.py +0 -246
- robotframework_datadriver-1.11.2/src/robotframework_datadriver.egg-info/SOURCES.txt +0 -160
- robotframework_datadriver-1.11.2/src/robotframework_datadriver.egg-info/dependency_links.txt +0 -1
- robotframework_datadriver-1.11.2/src/robotframework_datadriver.egg-info/requires.txt +0 -8
- robotframework_datadriver-1.11.2/src/robotframework_datadriver.egg-info/top_level.txt +0 -1
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/COPYRIGHT.txt +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/LICENSE +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/@plugins_snapshot.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_ast.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_ast.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_importlib_modulespec.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_importlib_modulespec.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_typeshed/__init__.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/_typeshed/__init__.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/abc.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/abc.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/array.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/array.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/ast.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/ast.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/builtins.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/builtins.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/codecs.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/codecs.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/collections/__init__.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/collections/__init__.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/genericpath.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/genericpath.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/importlib/__init__.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/importlib/__init__.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/importlib/abc.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/importlib/abc.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/io.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/io.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/mmap.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/mmap.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/os/__init__.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/os/__init__.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/os/path.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/os/path.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/posix.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/posix.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/sys.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/sys.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/types.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/types.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/typing.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/typing.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/typing_extensions.data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/.mypy_cache/3.9/typing_extensions.meta.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Check_DataTypes.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Check_DataTypes_xlsx.xlsx +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/LiteralEval.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/DataTypes/Types_in_dicts.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/defaults.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/generic_csv_reader.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/test_case_names.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/CSV/test_case_no_names.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/DataFiles/First_File.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/DataFiles/Last_File.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/DataFiles/Wrong_File.NoJson +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/FoldersToFind/Folder1/verify.txt +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/GLOB/FoldersToFind/Folder2/verify.txt +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/PICT/defaults_pict.pict +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/PICT/pict_arg.pict +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Defaults/XLS/defaults_xls.xls +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Setup_Teardown/Setups_Teardowns.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Some_Fail/2_of_10_fail.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Tags/foo_reader.py +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/Timeouts/timeout.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/csv_reader_config/tab-csv-file-name.tsv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/custom_reader.py +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/data.json +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/custom_reader/dummy.txt +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/atest/TestCases/performance/10000.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven.csv +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven.pict +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven.robot +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven.xls +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven.xlsx +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven_pict.robot +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven_xls.robot +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/DataDriven_xlsx.robot +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/invalidLogins.robot +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/login_resources.robot +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/logs/log.html +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/logs/report.html +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/Login Tests/validTest.robot +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/demo_web_server/html/demo.css +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/demo_web_server/html/error.html +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/demo_web_server/html/index.html +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/demo_web_server/html/log.html +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/demo_web_server/html/welcome.html +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/example/demo_web_server/server.py +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/src/DataDriver/argument_utils.py +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/src/DataDriver/csv_reader.py +0 -0
- {robotframework_datadriver-1.11.2 → robotframework_datadriver-1.12.0}/src/DataDriver/generic_csv_reader.py +0 -0
- {robotframework_datadriver-1.11.2 → 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,30 +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
|
-
|
|
19
|
+
Classifier: Framework :: Robot Framework :: Library
|
|
20
|
+
License-File: COPYRIGHT.txt
|
|
20
21
|
License-File: LICENSE
|
|
21
|
-
Requires-Dist: robotframework<8.0
|
|
22
|
+
Requires-Dist: robotframework >= 7.1.1, < 8.0
|
|
22
23
|
Requires-Dist: docutils
|
|
23
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
|
|
24
39
|
Provides-Extra: xls
|
|
25
|
-
|
|
26
|
-
Requires-Dist: xlrd>=1.2.0; extra == "xls"
|
|
27
|
-
Requires-Dist: openpyxl; extra == "xls"
|
|
40
|
+
Import-Name: DataDriver
|
|
28
41
|
|
|
29
42
|
===================================================
|
|
30
43
|
DataDriver for Robot Framework®
|
|
@@ -41,10 +54,10 @@ DataDriver is used/imported as Library but does not provide keywords
|
|
|
41
54
|
which can be used in a test. DataDriver uses the Listener Interface
|
|
42
55
|
Version 3 to manipulate the test cases and creates new test cases based
|
|
43
56
|
on a Data-File that contains the data for Data-Driven Testing. These
|
|
44
|
-
data
|
|
57
|
+
data files may be .csv, .xls or .xlsx files.
|
|
45
58
|
|
|
46
|
-
|
|
47
|
-
|
|
59
|
+
DataDriver is also able to cooperate with Microsoft PICT, an open
|
|
60
|
+
source tool for data combination testing. PICT is able to
|
|
48
61
|
generate data combinations based on textual model definitions.
|
|
49
62
|
https://github.com/Microsoft/pict
|
|
50
63
|
|
|
@@ -55,7 +68,8 @@ your test data from some other sources, like databases or json files.
|
|
|
55
68
|
Installation
|
|
56
69
|
------------
|
|
57
70
|
|
|
58
|
-
|
|
71
|
+
DataDriver requires Python >= 3.11 and Robot Framework >= 7.1.1.
|
|
72
|
+
If you already have Python with pip installed, you can simply
|
|
59
73
|
run:
|
|
60
74
|
|
|
61
75
|
``pip install --upgrade robotframework-datadriver``
|
|
@@ -64,9 +78,9 @@ run:
|
|
|
64
78
|
Excel Support
|
|
65
79
|
~~~~~~~~~~~~~
|
|
66
80
|
|
|
67
|
-
For
|
|
68
|
-
It contains the dependencies
|
|
69
|
-
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.
|
|
70
84
|
|
|
71
85
|
``pip install --upgrade robotframework-datadriver[XLS]``
|
|
72
86
|
|
|
@@ -74,15 +88,11 @@ New since version 3.6.
|
|
|
74
88
|
Python 2
|
|
75
89
|
~~~~~~~~
|
|
76
90
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
``pip3 install --upgrade robotframework-datadriver``
|
|
80
|
-
|
|
81
|
-
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.
|
|
82
92
|
|
|
83
93
|
``pip install --upgrade robotframework-datadriver==0.2.7``
|
|
84
94
|
|
|
85
|
-
|
|
95
|
+
Python 2.7 is not supported anymore, so this version does not get any new features or fixes.
|
|
86
96
|
|
|
87
97
|
|
|
88
98
|
Table of contents
|
|
@@ -120,13 +130,13 @@ RoboCon 2020 Talk
|
|
|
120
130
|
.. image:: https://img.youtube.com/vi/RtEUr1i4x3s/0.jpg
|
|
121
131
|
:target: https://www.youtube.com/watch?v=RtEUr1i4x3s
|
|
122
132
|
|
|
123
|
-
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.
|
|
124
134
|
|
|
125
135
|
|
|
126
136
|
Alternative approach
|
|
127
137
|
~~~~~~~~~~~~~~~~~~~~
|
|
128
138
|
|
|
129
|
-
DataDriver gives an alternative to the
|
|
139
|
+
DataDriver gives an alternative to the built-in data-driven approach
|
|
130
140
|
like:
|
|
131
141
|
|
|
132
142
|
.. code :: robotframework
|
|
@@ -140,7 +150,7 @@ like:
|
|
|
140
150
|
Test Template Invalid login
|
|
141
151
|
|
|
142
152
|
|
|
143
|
-
*** Test Cases *** User
|
|
153
|
+
*** Test Cases *** User Password
|
|
144
154
|
Right user empty pass demo ${EMPTY}
|
|
145
155
|
Right user wrong pass demo FooBar
|
|
146
156
|
|
|
@@ -160,18 +170,18 @@ like:
|
|
|
160
170
|
click login button
|
|
161
171
|
Error page should be visible
|
|
162
172
|
|
|
163
|
-
This
|
|
164
|
-
test cases. If you have generated or calculated data and
|
|
165
|
-
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
|
|
166
176
|
become quite a pain. With DataDriver you may write the same test case
|
|
167
|
-
syntax but only once and deliver the data from
|
|
177
|
+
syntax but only once and deliver the data from an external data file.
|
|
168
178
|
|
|
169
179
|
One of the rare reasons when Microsoft® Excel or LibreOffice Calc may be
|
|
170
180
|
used in testing… ;-)
|
|
171
181
|
|
|
172
|
-
`See example test suite <#example-suite>`__
|
|
182
|
+
`See example test suite <#example-test-suite>`__
|
|
173
183
|
|
|
174
|
-
`See example csv table <#example-
|
|
184
|
+
`See example csv table <#example-data-file>`__
|
|
175
185
|
|
|
176
186
|
|
|
177
187
|
How DataDriver Works
|
|
@@ -183,12 +193,11 @@ Framework® to read and modify the test specification objects. After
|
|
|
183
193
|
activation it searches for the ``Test Template`` -Keyword to analyze the
|
|
184
194
|
``[Arguments]`` it has. As a second step, it loads the data from the
|
|
185
195
|
specified data source. Based on the ``Test Template`` -Keyword, DataDriver
|
|
186
|
-
creates as
|
|
196
|
+
creates as many test cases as there are data sets in the data source.
|
|
187
197
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
``[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]``.
|
|
192
201
|
For each line of the CSV data table, one test case will be created. It
|
|
193
202
|
is also possible to specify test case names, tags and documentation for
|
|
194
203
|
each test case in the specific test suite related CSV file.
|
|
@@ -205,7 +214,10 @@ To use it, just use it as Library in your suite. You may use the first
|
|
|
205
214
|
argument (option) which may set the file name or path to the data file.
|
|
206
215
|
|
|
207
216
|
Without any options set, it loads a .csv file which has the same name
|
|
208
|
-
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.
|
|
209
221
|
|
|
210
222
|
|
|
211
223
|
|
|
@@ -229,14 +241,14 @@ Structure of Test Suite
|
|
|
229
241
|
Requirements
|
|
230
242
|
~~~~~~~~~~~~
|
|
231
243
|
|
|
232
|
-
|
|
244
|
+
At the moment there are some requirements how a test
|
|
233
245
|
suite must be structured so that the DataDriver can get all the
|
|
234
246
|
information it needs.
|
|
235
247
|
|
|
236
248
|
- only the first test case will be used as a template. All other test
|
|
237
249
|
cases will be deleted.
|
|
238
250
|
- Test cases have to be defined with a
|
|
239
|
-
``Test Template`` in Settings
|
|
251
|
+
``Test Template`` in Settings section. Reason for this is,
|
|
240
252
|
that the DataDriver needs to know the names of the test case arguments.
|
|
241
253
|
Test cases do not have named arguments. Keywords do.
|
|
242
254
|
- The keyword which is used as
|
|
@@ -251,7 +263,7 @@ Example Test Suite
|
|
|
251
263
|
|
|
252
264
|
.. code :: robotframework
|
|
253
265
|
|
|
254
|
-
***Settings***
|
|
266
|
+
*** Settings ***
|
|
255
267
|
Library DataDriver
|
|
256
268
|
Resource login_resources.robot
|
|
257
269
|
Suite Setup Open my Browser
|
|
@@ -259,10 +271,10 @@ Example Test Suite
|
|
|
259
271
|
Test Setup Open Login Page
|
|
260
272
|
Test Template Invalid Login
|
|
261
273
|
|
|
262
|
-
*** Test
|
|
274
|
+
*** Test Cases ***
|
|
263
275
|
Login with user ${username} and password ${password} Default UserData
|
|
264
276
|
|
|
265
|
-
|
|
277
|
+
*** Keywords ***
|
|
266
278
|
Invalid login
|
|
267
279
|
[Arguments] ${username} ${password}
|
|
268
280
|
Input username ${username}
|
|
@@ -354,16 +366,16 @@ Supported Data Types
|
|
|
354
366
|
~~~~~~~~~~~~~~~~~~~~
|
|
355
367
|
|
|
356
368
|
In general DataDriver supports any Object that is handed over from the DataReader.
|
|
357
|
-
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.
|
|
358
370
|
DataDriver supports Robot Framework® Scalar variables as well as Dictionaries and Lists.
|
|
359
|
-
It also
|
|
371
|
+
It also supports python literal evaluations.
|
|
360
372
|
|
|
361
373
|
Scalar Variables
|
|
362
374
|
^^^^^^^^^^^^^^^^
|
|
363
375
|
|
|
364
376
|
The Prefix ``$`` defines that the value in the cell is taken as in Robot Framework® Syntax.
|
|
365
377
|
``String`` is ``str``, ``${1}`` is ``int`` and ``${None}`` is NoneType.
|
|
366
|
-
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.
|
|
367
379
|
See example table: ``${user}[id]``
|
|
368
380
|
|
|
369
381
|
|
|
@@ -373,7 +385,7 @@ Dictionary Variables
|
|
|
373
385
|
Dictionaries can be created in different ways.
|
|
374
386
|
|
|
375
387
|
One option is, to use the prefix ``&``.
|
|
376
|
-
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
|
|
377
389
|
the BuiltIn keyword `Create Dictionary <https://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Create%20Dictionary>`_ would do.
|
|
378
390
|
The arguments here are comma (``,``) separated.
|
|
379
391
|
See example table: ``&{dict}``
|
|
@@ -389,7 +401,7 @@ List Variables
|
|
|
389
401
|
Lists can be created with the prefix ``@`` as comma (``,``) separated list.
|
|
390
402
|
See example table: ``@{list}``
|
|
391
403
|
|
|
392
|
-
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}``.
|
|
393
405
|
|
|
394
406
|
Python Literals
|
|
395
407
|
^^^^^^^^^^^^^^^
|
|
@@ -421,8 +433,8 @@ See example table: ``e{user.chk}``
|
|
|
421
433
|
Accessing Test Data From Robot Variables
|
|
422
434
|
----------------------------------------
|
|
423
435
|
|
|
424
|
-
If
|
|
425
|
-
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.
|
|
426
438
|
|
|
427
439
|
There are three variables available within the Data-Driven Suite:
|
|
428
440
|
|
|
@@ -677,6 +689,14 @@ By default DataDriver reads csv files. With the `Encoding and CSV
|
|
|
677
689
|
Dialect <#file-encoding-and-csv-dialect>`__ settings you may configure which
|
|
678
690
|
structure your data source has.
|
|
679
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
|
+
|
|
680
700
|
|
|
681
701
|
XLS / XLSX Files
|
|
682
702
|
~~~~~~~~~~~~~~~~
|
|
@@ -684,11 +704,11 @@ XLS / XLSX Files
|
|
|
684
704
|
To use Excel file types, you have to install DataDriver with the Extra XLS.
|
|
685
705
|
|
|
686
706
|
If you want to use Excel based data sources, you may just set the file
|
|
687
|
-
to the
|
|
707
|
+
to the extension or you may point to the correct file. If the extension
|
|
688
708
|
is ".xls" or ".xlsx" DataDriver will interpret it as Excel file.
|
|
689
709
|
You may select the sheet which will be read by the option ``sheet_name``.
|
|
690
710
|
By default it is set to 0 which will be the first table sheet.
|
|
691
|
-
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).
|
|
692
712
|
XLS interpreter will ignore all other options like encoding, delimiters etc.
|
|
693
713
|
|
|
694
714
|
.. code :: robotframework
|
|
@@ -707,13 +727,13 @@ or:
|
|
|
707
727
|
MS Excel and typed cells
|
|
708
728
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
709
729
|
|
|
710
|
-
Microsoft Excel xls or xlsx
|
|
730
|
+
Microsoft Excel xls or xlsx files have the possibility to type their data
|
|
711
731
|
cells. Numbers are typically of the type float. If these data are not
|
|
712
732
|
explicitly defined as text in Excel, pandas will read it as the type
|
|
713
|
-
that
|
|
733
|
+
that it has in Excel. Because we have to work with strings in Robot
|
|
714
734
|
Framework® these data are converted to string. This leads to the
|
|
715
|
-
situation that a European
|
|
716
|
-
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
|
|
717
737
|
00:00:00". This may cause unwanted behavior. To mitigate this risk you
|
|
718
738
|
should define Excel based files explicitly as text within Excel.
|
|
719
739
|
|
|
@@ -739,26 +759,27 @@ Documentation: https://github.com/Microsoft/pict/blob/master/doc/pict.md
|
|
|
739
759
|
Requirements of PICT
|
|
740
760
|
^^^^^^^^^^^^^^^^^^^^
|
|
741
761
|
|
|
742
|
-
-
|
|
743
|
-
|
|
744
|
-
-
|
|
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
|
|
745
766
|
|
|
746
767
|
|
|
747
768
|
How it works
|
|
748
769
|
^^^^^^^^^^^^
|
|
749
770
|
|
|
750
|
-
If the file option is set to a file with the
|
|
751
|
-
will hand over this file to pict
|
|
752
|
-
a file with the
|
|
753
|
-
source for the test generation. (It is tab
|
|
754
|
-
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.
|
|
755
776
|
|
|
756
777
|
.. code :: robotframework
|
|
757
778
|
|
|
758
779
|
*** Settings ***
|
|
759
780
|
Library DataDriver my_model_file.pict
|
|
760
781
|
|
|
761
|
-
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=``.
|
|
762
783
|
|
|
763
784
|
.. code :: robotframework
|
|
764
785
|
|
|
@@ -876,6 +897,7 @@ dialect=
|
|
|
876
897
|
|
|
877
898
|
You may change the CSV Dialect here.
|
|
878
899
|
The dialect option can be one of the following:
|
|
900
|
+
|
|
879
901
|
- Excel-EU
|
|
880
902
|
- excel
|
|
881
903
|
- excel-tab
|
|
@@ -934,14 +956,14 @@ Usage in Robot Framework®
|
|
|
934
956
|
.. code :: robotframework
|
|
935
957
|
|
|
936
958
|
*** Settings ***
|
|
937
|
-
Library DataDriver my_data_file.csv dialect=
|
|
959
|
+
Library DataDriver my_data_file.csv dialect=excel-tab
|
|
938
960
|
|
|
939
961
|
|
|
940
962
|
|
|
941
963
|
.. code :: robotframework
|
|
942
964
|
|
|
943
965
|
*** Settings ***
|
|
944
|
-
Library DataDriver my_data_file.csv dialect=
|
|
966
|
+
Library DataDriver my_data_file.csv dialect=unix
|
|
945
967
|
|
|
946
968
|
|
|
947
969
|
|
|
@@ -995,7 +1017,7 @@ Using Custom DataReader
|
|
|
995
1017
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
996
1018
|
|
|
997
1019
|
DataReader classes are loaded dynamically into DataDriver while runtime.
|
|
998
|
-
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``.
|
|
999
1021
|
|
|
1000
1022
|
|
|
1001
1023
|
Select Reader by File Extension:
|
|
@@ -1015,9 +1037,9 @@ Select Reader by Option:
|
|
|
1015
1037
|
.. code :: robotframework
|
|
1016
1038
|
|
|
1017
1039
|
*** Settings ***
|
|
1018
|
-
|
|
1040
|
+
Library DataDriver file=mydata.csv reader_class=generic_csv_reader dialect=userdefined delimiter=\\t encoding=UTF-8
|
|
1019
1041
|
|
|
1020
|
-
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.
|
|
1021
1043
|
|
|
1022
1044
|
|
|
1023
1045
|
Create Custom Reader
|
|
@@ -1082,7 +1104,7 @@ See other readers as example.
|
|
|
1082
1104
|
Selection of Test Cases to Execute
|
|
1083
1105
|
----------------------------------
|
|
1084
1106
|
|
|
1085
|
-
Because test cases
|
|
1107
|
+
Because test cases are created by DataDriver during execution after parsing,
|
|
1086
1108
|
it is not possible to use some Robot Framework® methods to select test cases.
|
|
1087
1109
|
|
|
1088
1110
|
|
|
@@ -1127,7 +1149,7 @@ Select a list of test cases:
|
|
|
1127
1149
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1128
1150
|
|
|
1129
1151
|
It is possible to set a list of test case names by using the variable ${DYNAMICTESTS} (plural).
|
|
1130
|
-
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 (``|``).
|
|
1131
1153
|
|
|
1132
1154
|
Example:
|
|
1133
1155
|
|
|
@@ -1137,6 +1159,11 @@ Example:
|
|
|
1137
1159
|
|
|
1138
1160
|
It is also possible to set the variable @{DYNAMICTESTS} as a list variable from i.e. python code.
|
|
1139
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
|
+
|
|
1140
1167
|
|
|
1141
1168
|
Re-run failed test cases:
|
|
1142
1169
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
@@ -1160,10 +1187,12 @@ Example:
|
|
|
1160
1187
|
robot --prerunmodifier DataDriver.rerunfailed:original.xml --output rerun.xml tests # then re-execute failing
|
|
1161
1188
|
rebot --merge original.xml rerun.xml # finally merge results
|
|
1162
1189
|
|
|
1190
|
+
This also works with ``pabot --testlevelsplit``: the failed tests are distributed to the pabot processes.
|
|
1191
|
+
|
|
1163
1192
|
|
|
1164
1193
|
Be aware, that in this case it is not allowed to use "``:``" as character in the original output file path.
|
|
1165
1194
|
If you want to set a full path on windows like ``e:\\myrobottest\\output.xml`` you have to use "``;``"
|
|
1166
|
-
as argument
|
|
1195
|
+
as argument separator.
|
|
1167
1196
|
|
|
1168
1197
|
Example:
|
|
1169
1198
|
|
|
@@ -1189,7 +1218,7 @@ To filter the source, the normal command line arguments of Robot Framework® can
|
|
|
1189
1218
|
See Robot Framework® Userguide_ for more information
|
|
1190
1219
|
Be aware that the filtering of Robot Framework® itself is done before DataDriver is called.
|
|
1191
1220
|
This means if the Template test is already filtered out by Robot Framework®, DataDriver can never be called.
|
|
1192
|
-
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
|
|
1193
1222
|
fulfills these requirements.
|
|
1194
1223
|
|
|
1195
1224
|
.. _Userguide: https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#tag-patterns
|
|
@@ -1249,7 +1278,7 @@ Usage in Robot Framework®
|
|
|
1249
1278
|
Create File ${CURDIR}/test321.csv
|
|
1250
1279
|
... *** Test Cases ***,\\${var},\\n123,111,\\n321,222, # generating file
|
|
1251
1280
|
${new_config}= Create Dictionary file=test321.csv # set file attribute in a dictionary
|
|
1252
|
-
|
|
1281
|
+
RETURN ${new_config} # returns {'file': 'test321.csv'}
|
|
1253
1282
|
|
|
1254
1283
|
|
|
1255
1284
|
|
|
@@ -1262,16 +1291,16 @@ DataDriver supports ``--testlevelsplit`` from pabot only if the PabotLib is in u
|
|
|
1262
1291
|
Use ``--pabotlib`` to enable that.
|
|
1263
1292
|
|
|
1264
1293
|
When using pabot like this, DataDriver automatically splits the amount of test cases into nearly same sized groups.
|
|
1265
|
-
|
|
1294
|
+
It uses the processes count from pabot to calculate the groups.
|
|
1266
1295
|
When using 8 processes with 100 test cases you will get 8 groups of tests with the size of 12 to 13 tests.
|
|
1267
1296
|
These 8 groups are then executed as one block with 8 processes.
|
|
1268
1297
|
This reduces a lot of overhead with Suite Setup and Teardown.
|
|
1269
1298
|
|
|
1270
1299
|
You can switch between three modes:
|
|
1271
1300
|
|
|
1272
|
-
- ``Equal``: means it creates equal
|
|
1273
|
-
- ``Binary``: is more complex.
|
|
1274
|
-
- ``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.
|
|
1275
1304
|
|
|
1276
1305
|
This can be set by ``optimize_pabot`` in Library import.
|
|
1277
1306
|
|
|
@@ -1303,3 +1332,49 @@ Binary creates with 40 test cases and 8 threads something like that:
|
|
|
1303
1332
|
P14: 38
|
|
1304
1333
|
P15: 39
|
|
1305
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``
|