Skip to main content

Posts

Showing posts from January, 2022

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...

Karate zip release | running your tests using jenkins

Some time back there was a question on my youTube channel related to using Jenkins along with Karate's zip release version. So I did a POC to explore the possibility and found that Jenkins can be used when using Karate's zip release version. Problem Statement: Can Jenkins be used to run the tests when using the zip release version of Karate. Pre-requisites: Java should be installed on your system Jenkins should be available How to run Karate tests in Jenkins? Launch Jenkins Create a new Project by clicking on New Item Then enter a name Select 'Freestyle project' Click on OK In the subsequent screen scroll down to the build section For windows OS Select Execute Windows batch command For Linux Will cover in a separate post  Enter the following command inside the text area D: cd D:\karateZipRelease\karate-1.2.0.RC1 ...