Skip to content

Commit ecfd944

Browse files
committed
docs: page object and parameter object diagrams
1 parent 32dbc7f commit ecfd944

File tree

6 files changed

+16
-0
lines changed

6 files changed

+16
-0
lines changed

page-object/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ selenium.dev says
3939
>
4040
> 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.
4141
42+
Mind map
43+
44+
![Page Object mind map](./etc/page-object-mind-map.png)
45+
46+
Flowchart
47+
48+
![Page Object flowchart](./etc/page-object-flowchart.png)
49+
4250
## Programmatic Example of Page Object Pattern in Java
4351

4452
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.
107 KB
Loading
188 KB
Loading

parameter-object/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ wiki.c2.com says
4040

4141
> Replace the LongParameterList with a ParameterObject; an object or structure with data members representing the arguments to be passed in.
4242
43+
Mind map
44+
45+
![Parameter Object mind map](./etc/parameter-object-mind-map.png)
46+
47+
Flowchart
48+
49+
![Parameter Object flowchart](./etc/parameter-object-flowchart.png)
50+
4351
## Programmatic Example of Parameter Object Pattern in Java
4452

4553
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.
Loading
Loading

0 commit comments

Comments
 (0)