This project is created to generate data for ui-coverage plugin
- Record used locators during testing (in pages and blocks):
- The codebase: ui_coverage_helpers.py
- Usage for Pages
- Usage for Blocks
- Save all recorded locators after all tests are done. The code is in: conftest.py
- Run all tests in the project with Pytest
- Copy coverage results file:
ui_coverage/used_locators_gw0.json
- Run all tests in the project with Pytest and xdist
- Run the following command to merge all coverage results:
python merge_ui_coverage_files.py
- Copy coverage results file:
used_locators.json