Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMeter - how to simulate an email address AND a confirm email address

I'm trying to setup a JMeter test plan and need to create unique email addresses for submission. I saw this that suggested using the Random Function.

The problem is that I need to generate an email address AND reference that same created email in the confirm_email field. I need to randomly generate an email address and then use it twice. How do I do that?

Thanks.

like image 723
Scott Avatar asked Dec 04 '25 10:12

Scott


1 Answers

I learned that there's an extra parameter to the __Random function that can hold a variable name that you can reference later.

So, my Parameters are:

email : ${__Random(1,10000000,refName)}@jmeter.com
email 2 : ${refName}@jmeter.com

Voila!

like image 127
Scott Avatar answered Dec 07 '25 11:12

Scott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!