JMeter Concept

Posted on 2011-04-19
Last Modified: 2012-05-11
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.
Question by:softbless
    LVL 92

    Accepted Solution

    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.
    LVL 47

    Assisted Solution


    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:

    I guess, it is quite common situation that you want different
    input from different users in the form

    Author Closing Comment


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    count8 challlenge 13 69
    powerN  challenge 3 36
    countHi2 challenge 7 31
    java  and programming certification ? 4 35
    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now