k1308517
k1308517

Reputation: 213

Repeat user input JMeter

I need to record what I do in my FireFox browser. After, I need to repeat this a few hundred times. I also need to change a part of the data which goes to the server (such as increment a number in the text I POST).

How can I go about doing this in JMeter?

Thank you.

Upvotes: 4

Views: 95

Answers (1)

GreyndBlue
GreyndBlue

Reputation: 331

Easiest way to generate incrementing number is using Add > Logic Element > Count and set the counter initial value followed by maximum value also set the reference name. Check image for counter setup You can access the reference name by providing ${reference name} in the request.

Generating unique random Go to Add > Pre processor > User Parameters Enter the parameter name which you want to have it unique and assign this method to generate unique number to${__V(${__Random(30002,40000,)})}

If you want to generate unique string, check this attached image

You can also generate number in incremental order using Bean Shell scripting Add > Pre processor > BeanShell Processor.

Hope this helps.

Upvotes: 5

Related Questions