JMeter Concept

Hi Guys,

I'm using JMeter to load and stess test.

I have some questions :
If i create a script that fill a field (this field value should be unique/primary key). For example the values that I input is : MyContent01.

Normally if it's in browser, if I reinput that MyContent01 again : It will and should give error, because it must be unique value.

What happen if in JMeter, I declare that the parameter is MyContent01, and loop for more than 1 time.

Will it be error? Or it won't give error because Jmeter only simulate the creation, not actually creating it. Which one is right?

Please advise. Thanks.
softblessAsked:
Who is Participating?
 
objectsCommented:
you'll get an error. jmeter still sends the request the same way a browser would.
so the second time will give an error because the value is not unique

what you can do is send a second request that removes the unique value. that way when its run the secod time the value will still be unique.
0
 
for_yanCommented:

Isn't it that JMeter allows you to provide different input for each test using
the functions and variables for populating fields, such like the counter function:

http://jakarta.apache.org/jmeter/usermanual/functions.html#__counter

I guess, it is quite common situation that you want different
input from different users in the form
0
 
softblessAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.