Skip to main content

Performance testing with Karate Gatling

What is Karate Gatling? Github page of this project has the tag line API performance testing made simple . Simply put this should help in performance testing of the api test written using Karate by leveraging performance testing capabilities of karate. On reviewing the documentation available on GitHub following capabilities are listed: Re-use karate tests as performance tests executed by Gatling Gatling and scala required only for defining the load model Everything else can be defined in Karate  Karate assertion failure also appear in the Gatling report Anything that can be written in Java can be performance tested. Option to scale out over multiple hardware nodes or Docker containers In this post we will see how to reuse Karate tests for execution using Gatling We will see step by step on how to setup Karate Gatling performance tests. There are a few prerequisites for setting up your karate Gatling tests. Prerequisites: JDK should be installed and availabl...

[~]$ whoami


[~]$ whoami
A.k.a. KALIMOH
Quality explorer 
#SupportOpenSource
 
 If you stay in a Mega CITY you never know where your next job / project might take you too or how much one might need to travel.
It is during these travels that I got hooked on to listening to Podcasts which have a magical world of their own.

Some of my favorites podcasts are:
  • Test Guild  
    • Formerly known as the Joe Colantonio show
    • Always get to learn something new
  • Darknet Diaries
    • One of the best shows out there, 
    • Really love the journey and growth of @JackRhysider as a creator and presenter
    • This is the one that got me addicted to podcasts and Security Testing
  • Hackable
    • A podcast by McAfee
    • Where the host ends up getting hacked almost every show
    • My favorite is the one where the Host gets locked out of his own house 
  • Talk Python to me
    •  This podcast is reason of my love for Python

Full list in another post maybe☺. It was during one of my travels that I attended an live presentation by Dave Hefner. Where he introduced concepts on how to support Open Source community. One of the means that he suggested helps is, spreading the word and this has stuck with me since then. This is my attempt to spread the word for #SupportOpenSourceSoftware.

Through this blog I intend to begin with a series of How To's, starting with Karate DSL (also some people tend to call it as Karate Framework for API testing). Share tips / tricks / tools that are useful in API testing, using short tutorials.
This will also complement my youtube channel where I post most of the content I make to share it with the community.

It was in one of the Test Guild shows that introduced me to Karate, which in turn has introduced me into a totally different world of creating logs of my journey while exploring Karate features. 

The person who was instrumental in my starting to blog is @askNilan. He introduced me to blogging when I was working with him in London. Although the idea to blog took some time to grow but the seeds were sown by him.

Disclaimer: I’m not affiliated to any of the shows mentioned above nor any of the software. This blog is an attempt to #SupportOpenSourceSoftware.   

Comments

Popular posts from this blog

Performance testing with Karate Gatling

What is Karate Gatling? Github page of this project has the tag line API performance testing made simple . Simply put this should help in performance testing of the api test written using Karate by leveraging performance testing capabilities of karate. On reviewing the documentation available on GitHub following capabilities are listed: Re-use karate tests as performance tests executed by Gatling Gatling and scala required only for defining the load model Everything else can be defined in Karate  Karate assertion failure also appear in the Gatling report Anything that can be written in Java can be performance tested. Option to scale out over multiple hardware nodes or Docker containers In this post we will see how to reuse Karate tests for execution using Gatling We will see step by step on how to setup Karate Gatling performance tests. There are a few prerequisites for setting up your karate Gatling tests. Prerequisites: JDK should be installed and availabl...

Getting started with karate-config.js

In this post we will see how to add an configuration file (karate-config.js) to our sample karate project. This configuration file is similar to the properties file that you would have used for other automation projects.  I'll be using the Karate-Zip release version for this post too. Still unaware about it, check out my last post . When using the config file we need to understand a few basics about it: When Karate starts-up it expects a file called karate-config.js in the classpath This config file should be a Javascript function . The function is expected to return a json object All Keys and values in the json object will be made available as script variable So what is classpath when using the Karate Standalone Jar or the Zip release version of Karate? To understand this lets open the karate.bat file and try to see what it contains, it has this command java -cp karate.jar;. com.intuit.karate.Main %* So com.intuit.karate.Main is the entry point for the Karate command line app A...

Karate - Quick Start with Maven Archetype

 What is Karate? Karate enables you to script a sequence of calls to any kind of web-service and assert that the responses are as expected.  Karate provides an easy to use DSL which natively supports json and xml. Karate is not just limited to API automation. After the initial releases which supported API automation, now the capabilities include Performance testing, UI  automation, Desktop automation (a release candidate was made available just a few weeks ago with this capability). Why Karate?  Is based on the popular Cucumber / Gherkin standard, and IDE support and syntax-coloring options exist  You can run tests and generate reports like any standard Java project. But instead of Java - you write tests in a language ( DSL ) designed to make dealing with HTTP, JSON or XML Java knowledge is not required and even non-programmers can write tests Embedded JavaScript engine that allows you to build a library of re-usable functions  Gherki...