Search code examples
testingdesign-patternsautomationgang-of-four

Gang of four patterns usage in automation frameworks


I would like to know which Gang of four design patterns may have important applications when developing an automation framework.

For example Page Object Model (not a Gof pattern btw) is one of the most commonly used design patterns which are incorporated while developing automation frameworks.

In the similar context, I would like to know which of Gof patterns are commonly considered.

Lastly, it could be for any type of automation framework (Key-word, data driven etc).

Thanks.


Solution

  • Well the design patterns are

    general reusable solution to a commonly occurring problem within a given context in software design.

    so they will be applied regardless you're

    developing an automation framework.

    or not. A very good and useful book of xUnit patterns will give you a guidance, as summary:

    enter image description here

    Another thing to turn to are those blogs:

    • myqaengineering with stuff like Hybrid UI test framework, Enterprise Meta API Test framework, Selenium layout image verification and How to test your Data WareHouse

    • automatetheplanet with stuff like Decorator, Observer, Strategy, Sigleton design patterns and their place in automation