This week my newest article was released, this time on how to use Log4j to log relevant test automation information: https://blog.testproject.io/2021/05/05/logging-test-automation-information-with-log4j/. Check it out!
We are quite familiar with the concept of randomly failing automated tests. Those are the tests that even though there is no change in the feature they are testing, they either fail randomly at the same step, or they fail at random steps. Handling the results of such tests can be tricky, and some teams… Read More
I write a lot of automated tests. Most of the times, it all goes nice and smooth, like a good song. But once in a while i run into an automation situation that leaves me completely baffled. Debugging does not reveal how to fix it, and it is not very obvious to me what is… Read More
As you have probably seen, my new course on JUnit 5 is now available at Test Automation University. It’s an introduction to all the amazing features of this framework that you can use in your automated tests, with, of course, plenty of examples.
Read all about how to configure your test environment specific data in property files with Spring, to help run your automated TestNG and JUnit tests on any test environment you need: https://blog.testproject.io/2021/02/09/using-spring-to-switch-environments-in-automated-tests/. Enjoy.
My latest article is now published, and it’s all about using Selenium Actions for more interesting and complex interactions, like mouse double clicking, mouse right clicking or mouse hovering. Read all of it and follow the examples i present right here: https://blog.testproject.io/2021/01/29/performing-page-interactions-with-selenium-actions/ . Enjoy!
Checkout this article i wrote on how to use WebDriverWaits as retries for more test automation success: https://blog.testproject.io/2021/01/13/using-selenium-webdriver-waits-as-retries-in-your-selenium-tests/. If you haven’t used Waits yet, or you have, but are still having issues with tests randomly failing, this is the right approach for your tests. Enjoy.
If in your tests you need to generate date values representing, let’s say, today’s date, or yesterday’s, or one year from today, or the last day of the current month, this post will help you do just that. Using Java’s LocalDate, you will be able to generate the date (meaning year, month, day) your tests… Read More
Check out this new article i wrote for TestProject: https://blog.testproject.io/2020/08/04/using-java-enums-in-test-automation/. It shows examples of when and how you can use Enums in your Java based automation tests. Enjoy!