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…

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…

How to setup a load test via Locust

Walkthrough of how we can use Locust to set up a simple test for a mocked API Locust.io website Hello there, Recently at my workplace, we had to ship the rewrite of an API from Ruby on rails to Go. This was a critical API for the business and we wanted to see how it…

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…

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…

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…