0

I am running jmeter to perform performance testing on a web application. The web application restricts the creation of the duplicate task. When I record that using blazemeter and run it with 100 threads, it shows that the task creation url is failed in the report, as it tries to create a task with the same name. How to avoid this?

Naanavanalla
  • 1,412
  • 2
  • 27
  • 52
  • 1
    You need to parameterized that on variable which is responsible to make the URL different and accepted. – sunny_teo Aug 10 '18 at 13:16

1 Answers1

0

In the majority of cases you simply cannot record and replay JMeter script without prior modifications as you need to perform correlation and parameterization.

In particular your case you need to identify the task id, most probably it is a parameter of a POST request and replace recorded hard-coded value with a JMeter Function which will generate a random value, i.e.

  • __Random() - for a random number in the given range
  • __RandomString() - for a random string from the given characters
  • __UUID() - creates a GUID-like structure with a very high chance of being unique, i.e. 123e4567-e89b-12d3-a456-426655440000
Dmitri T
  • 159,985
  • 5
  • 83
  • 133