Test case life cycle based on state pattern

Going further with our research on different design patterns used on automation testing, we've made a stop around the state pattern. As any developer knows, this one is part of the behavioral family. For testers maybe it's a new concept, so as a short notice, behavioral patterns are responsible for setting up a communication between objects. … Continue reading Test case life cycle based on state pattern

Calling test methods using a beautiful facade

Facade pattern hides the complexity of objects creation under an interface which is exposed to a client. Using it, you can get access to different functions from the whole system without having to be worried about the implementation complexity. A useful thing to consider is that facade is a part of the structural design patterns, which … Continue reading Calling test methods using a beautiful facade

When builder comes in test automation

While playing around with different design patterns in order to increase the efficiency of building a maintainable automation related architecture I've decided to give a chance also to the builder pattern. The main idea of it is to separate the construction of a test from its representation so the builder will implement the whole test logic, and … Continue reading When builder comes in test automation

Apply Factory Pattern over Page Object to enrich the test design flow

The information described here requires a basic understanding of how Page Object Pattern is applied. It is recommended that you read this before moving forward with the content of this article. Factory pattern is useful when there is a large number of page object implementations. With great numbers comes great responsibility and this way the need … Continue reading Apply Factory Pattern over Page Object to enrich the test design flow

Selenium and singleton in Python – part two

Metaclass and Singleton Introduction As I promised, we are coming back with the second part of the tutorial related to singleton implementation in Python 3. Here we will cover two different approaches, much easier to understand and more Python-friendly. We will start with Metaclasses and in the last part, we will cover the singleton based on … Continue reading Selenium and singleton in Python – part two