'Does Karate DSL Framework has the capability of performing load testing

Currently, we've automated all of our web services using the Karate framework and it is super cool.Is there any way we can do the load testing with this tool? Example: Given when I enroll a member 1000 times Then the average response time should be 2.7 milliseconds



Solution 1:[1]

I'm the developer of Karate and it is great to hear this feedback, thanks !

Karate was not designed for load-testing - but we would like to support it in the future. But it is not a priority now, and there are things like mocking we want to get to sooner which we feel is a more critical need for many teams.

If you or the community would be willing to investigate and contribute, that would be great. One experiment I can think of is using the Java API try to create multiple threads and run a *.feature file.

EDIT: Karate now has Gatling integration: https://github.com/ptrthomas/karate-gatling-demo

Solution 2:[2]

Yesterday as part of my POC work w.r.t API demonstrated Karate in my office people were very much impressed. thanks for Karate team.

Solution 3:[3]

It is possible to turn the api automation you wrote with karate into a getling project. You can translate your project by making the implimentation in the link I have shared below. You can increase the amount of load you want by using loadium.

https://github.com/karatelabs/karate/tree/master/karate-gatling

https://loadium.com/gatling-load-testing

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Vivek Sr
Solution 3 BatuhanZafer