Flower VII The Parameters Spam
Warning people with knowledge of good coding practices and faint heart should skip this post. Viewer Discretion is advised. This post is part of series dedicated to anti-patterns in test…
In Poland, stories about some silly mistake that you or someone else has made are called flowers. Probably after THE LITTLE FLOWERS OF SAINT FRANCIS OF ASSISI.
And that why this series of automation mistakes is called Flowers. I will write here about broken principals and anti-patterns which I have encountered in my automation career. I will also show how to fix them. I will concentrate on small mistakes. There are easy to ignore, and by themselves are not harmful. But they have a tendency to multiply and then they are a time-consuming nuisance.
All code examples of bad Practices are based on an actual 'production’ code. It was running as part of regressions suites, CI pipelines, etc. I have stripped it of all unnecessary elements: other antipatterns, redundant logic. I have also anonymized it, so at least Names and locators will be different
Warning people with knowledge of good coding practices and faint heart should skip this post. Viewer Discretion is advised. This post is part of series dedicated to anti-patterns in test…
I am a firm believer in self-documenting code so if you see a code and you see the comment; it means something is wrong. Yes, there are exceptions to the…
This post is part of longer series about code smell and antipatterns in tests automation you can see more here. Today we will take a look at abuse of try…
This post is part of longer series you can see more here There are many bad practices that you can observe in the test code. Some of them are minuscule…
Single Responsibility Principle is one of the core guidelines for object-oriented programming. In short, it means one class has does one thing only. Same for methods it does exactly one…
The following post is part of series called 'Flowers.' You can find a previous entry here: Flower 1 Wet Locators This time we start with this masterpiece of an if statement.…
Flower Series Introduction In Poland, stories about some silly mistake that you or someone else has made are called flowers. Probably after THE LITTLE FLOWERS OF SAINT FRANCIS OF ASSISI.…