Using TestNG setup/teardowns with data provider combinations

Sometime back, I tried to update my Kotlin test code using TestNG to use data providers and Before/After annotations and it did not work immediately. After some research I found the solution. Here is a post, explaining how to use these constructs well with an example.

Using IntelliJ to speed up your dev workflow

Give your development experience superpowers!I do the bulk of my test automation development in Kotlin/Java or Python languages. After the programming language, a very important component for the dev workflow is a good IDE.While the purists generally rave about the use of Editors like Sublime, VSCode or even use of Vim/Emacs over full-fledged IDE's like … Continue reading Using IntelliJ to speed up your dev workflow

Understanding reporting and logging in TestNG

TestNG is a popular test framework that needs no introduction in the JVM (Java virtual machine) ecosystem and can be used for automating your tests regardless of their size. For example: Large (functional) or medium/small level tests (Integration/Unit). It is a highly customizable framework and provides great flexibility around how you want to structure your … Continue reading Understanding reporting and logging in TestNG

How to do reverse lookup enum constant by value in Kotlin

    This is a neat trick I discovered recently enums are a very useful concept in programming and allow us to define constant values which can easily hold grouped data and even declare members I use them heavily in my automation code to define constant values and they work very well when we have … Continue reading How to do reverse lookup enum constant by value in Kotlin

Working with TestNG data providers in Kotlin

Photo by Juan Gomez on Unsplash Hello there, TestNG needs no introduction, It is one of the more popular test frameworks available in Java/JVM ecosystem and offers many advanced features like running tests in parallel, flexible annotations to do setups and teardowns at different levels and group tests and run them selectively. One of the more useful features … Continue reading Working with TestNG data providers in Kotlin

Vol 2: How Kotlin eased my life in a Java world

2nd part in a series on how to write idiomatic Kotlin. Read the 1st part here. Mutable (var) and Immutable types (val) in Kotlin In Kotlin, variables are typically preferred to be declared as val and borrows these constructs from other languages. Consider below example We have a Robot Class with 3 properties which are val … Continue reading Vol 2: How Kotlin eased my life in a Java world

Vol 1: How Kotlin eased my life in a Java world

Part 1 of a series of posts on why coding in kotlin makes so much sense over java. A Kotlin function Hello wonderful people, Over my 8 years of experience as a coder/Quality engineer the language which gave me the comfort of feeling at home was and still is “Python” 🐍 till date. It allowed me to … Continue reading Vol 1: How Kotlin eased my life in a Java world

How to run your grouped testNG tests using Gradle

Walking through how to group and run your testNG tests via gradle and to avoid common pitfalls. https://unsplash.com/photos/46T6nVjRc2w Hello people, When building a test framework, one of the most crucial decisions to make is the choice of the test framework in your language ecosystem. For Instance in Kotlin/Java world we could choose JUnit, TestNG, Cucumber … Continue reading How to run your grouped testNG tests using Gradle