shrusthip
shrusthip

Reputation: 95

How to get request and response size in gatling

In Postman I can see request and response size enter image description here

How do I get this in gatling ? I need to validate the size.

Upvotes: 1

Views: 803

Answers (1)

Amerousful
Amerousful

Reputation: 2545

You can validate size via check and bodyLength where pass expected size in bytes.

val request = http("request")
    .get("localhost")
    .check(
      bodyLength.is(221)
    )

Upvotes: 1

Related Questions