Script generating page-object files from JSON data object.
- create project folder under projects
- create "input_data" and "templates" folders in project folder
- add json file(s) with locator data (see example file)
- add template file to template folder, make sure the file format is: "[name_of_template].[file_extension].[tmpl]" (see example template files)
- set correct values in "config.properties" configuration files
- run "pagenerator.py"
- verify page object files have been created under project folder > "output" folder
pip install Jinja2
- enhance existing templates and JSON files to support generation of more complex structures
- connect with some tool that would automatically parse locator information from pages generating output JSON file (which this script could use as input value)