• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

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.
0
softbless
Asked:
softbless
2 Solutions
 
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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now