Karate gatling name resolver not working properly for GET call

Viewed 50

My name resolver isn't working for some reason. I want to group all the calls together as a single entity in results but the result is showing it as separate call.

Issue in having them separately is I am having 500,000 such request and when gatling tries to generate report its giving heap dump memory issues.

Below is my feature file

Given path '/hometown/process?requestId='+__gatling.ID+'&includeSystemComments=true'
And header karate-name = 'Request History'
When method GET
Then status 200

I've also used

val protocol = karateProtocol("/hometown/process?requestId={requestID}&includeSystemComments=true" -> Nil)
protocol.nameResolver = (req, ctx) => req.getHeader("karate-name")

Still in the results I am getting all of them as separate Rest calls.

I wanted these calls in results to be grouped as single entity. Below is what I have the results as: enter image description here

Any help would be appreciable.

1 Answers

Actually I think you don't even need a name resolver. Just try this:

val protocol = karateProtocol(
  "/hometown/process" -> Nil
)

Or also try without anything, e.g. val protocol = karateProtocol().

Else maybe there's some other call that is "escaping". No one will be able to tell from your question, so please follow this process: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

Related