diff --git a/page-object/README.md b/page-object/README.md index 6f21070a3..8209a0fc5 100644 --- a/page-object/README.md +++ b/page-object/README.md @@ -39,6 +39,14 @@ selenium.dev says > > Page Object is a Design Pattern that has become popular in test automation for enhancing test maintenance and reducing code duplication. A page object is an object-oriented class that serves as an interface to a page of your AUT. The tests then use the methods of this page object class whenever they need to interact with the UI of that page. The benefit is that if the UI changes for the page, the tests themselves don’t need to change, only the code within the page object needs to change. Subsequently, all changes to support that new UI are located in one place. +Mind map + +![Page Object mind map](./etc/page-object-mind-map.png) + +Flowchart + +![Page Object flowchart](./etc/page-object-flowchart.png) + ## Programmatic Example of Page Object Pattern in Java The Page Object design pattern is a popular design pattern in test automation. It helps in enhancing test maintenance and reducing code duplication. A page object is an object-oriented class that serves as an interface to a page of your Application Under Test (AUT). The tests then use the methods of this page object class whenever they need to interact with the UI of that page. The benefit is that if the UI changes for the page, the tests themselves don’t need to change, only the code within the page object needs to change. Subsequently, all changes to support that new UI are located in one place. diff --git a/page-object/etc/page-object-flowchart.png b/page-object/etc/page-object-flowchart.png new file mode 100644 index 000000000..b32c413b7 Binary files /dev/null and b/page-object/etc/page-object-flowchart.png differ diff --git a/page-object/etc/page-object-mind-map.png b/page-object/etc/page-object-mind-map.png new file mode 100644 index 000000000..c8af6acce Binary files /dev/null and b/page-object/etc/page-object-mind-map.png differ diff --git a/parameter-object/README.md b/parameter-object/README.md index bbb1c73d9..226d4073a 100644 --- a/parameter-object/README.md +++ b/parameter-object/README.md @@ -40,6 +40,14 @@ wiki.c2.com says > Replace the LongParameterList with a ParameterObject; an object or structure with data members representing the arguments to be passed in. +Mind map + +![Parameter Object mind map](./etc/parameter-object-mind-map.png) + +Flowchart + +![Parameter Object flowchart](./etc/parameter-object-flowchart.png) + ## Programmatic Example of Parameter Object Pattern in Java The Parameter Object design pattern is a way to group multiple parameters into a single object. This simplifies method signatures and enhances code maintainability enabling Java developers to streamline complex method calls, focusing on cleaner and more maintainable Java code. diff --git a/parameter-object/etc/parameter-object-flowchart.png b/parameter-object/etc/parameter-object-flowchart.png new file mode 100644 index 000000000..c63b41f75 Binary files /dev/null and b/parameter-object/etc/parameter-object-flowchart.png differ diff --git a/parameter-object/etc/parameter-object-mind-map.png b/parameter-object/etc/parameter-object-mind-map.png new file mode 100644 index 000000000..3f920502f Binary files /dev/null and b/parameter-object/etc/parameter-object-mind-map.png differ