Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using UUID in JMeter for Post Data

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.

like image 211
karmaker Avatar asked Apr 03 '18 20:04

karmaker


1 Answers

Just use __UUID function

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

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

like image 187
UBIK LOAD PACK Avatar answered Oct 29 '22 20:10

UBIK LOAD PACK