Using UUID in JMeter for Post Data
Asked Answered
M

1

9

I have to perform load test using JMeter on POST REST API which send JSON data in the request body as follows

{
  id="",
  name="abc",
  age="34"
 }

I want to use UUID feature in JMeter to auto generate UUID for the value of "id" which should be unique for every record created in the backend.

The value for "id" should be unique for every Thread executed in that Thread Group in JMeter.

Modish answered 3/4, 2018 at 20:38 Comment(0)
V
17

Just use __UUID function

  {
    id="${__UUID}",
    name="abc",
    age="34"
   }

If you're looking to learn jmeter correctly, this book will help you.

Vaporimeter answered 3/4, 2018 at 21:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.