logo logo
JdbcTemplate for Java automated database tests

JdbcTemplate for Java automated database tests

Often in automation, our tests need to perform actions on the database. Sometimes we need to set up some test data. Other times we need to query the database in search for test...

Using Spring to switch environments in automated tests

Using Spring to Switch Environments in Automated Tests

When we create our automated tests, we don't only want to run them in one test environment. We also don't want to create one automated test per each test environment. However, we...

Performing Page Interactions with Selenium Actions

Performing Page Interactions with Selenium Actions

Selenium Actions are used whenever you need a more complex interaction with an HTML element. More complex means it could be either: a double click, a hover, a right-click, or even...

Using Selenium WebDriver Waits as Retries in Your Tests

Using Selenium WebDriver Waits as Retries in Your Tests

The topic of Selenium tests failing due to timing issues comes up quite a lot. Random failures are attributed to the interaction being done too early, when the page has either not...

Using Java Enums in Test Automation Code

Using Java Enums in Test Automation

When deciding what data types to use for storing test data, you might want something that: Allows the declaration of several properties Has no behavior or has minimal...

Tips for Working with IFs in Java

Tips for Working with IFs in Java

Our Java test automation code is full of 'if' blocks. There is always some condition we need to evaluate. Based on the result of the condition evaluation, we need to execute some...

Java Test Automation

Java Test Automation Good Practices

In my previous post on the TestProject blog, I looked at some common good practices for having clean code in your automation project. Now, let's focus on some Java test automation...

What is Clean Code

Clean Code in Tests: What, Why and How?

As testers, we want the features we release to the customers to have a high level of quality. It should be the same with the code we write for our automation tests. We want to...