I have tried:
${__ RandomString (qwerty,"@",".com") }
but it is not fine. I wonder how can I create this type of random email addresses? I haven't added anything in the Random Variable because I am not sure that I need to use it.
As per Using JMeter Functions guide __RandomString() function takes 3 parameters: Length of the desired random string. Source characters. If you need to store generated string into a JMeter variable you can provide variable name as 3rd argument.
JMeter Functions and User Variables JMeter functions are special values that can populate fields of any Sampler or other element in a test tree. _functionName matches the name of a function. For example ${__threadNum}.
As per Using JMeter Functions guide __RandomString() function takes 3 parameters:
So to get line of 10 alphabet characters you can use __RandomString function as follows:
${__RandomString(10,abcdefghijklmnopqrstuvwxyz,)}
mail format:
RandomString(COUNT_OF_CHARS,LIST_OF_CHARS,) + '@' + RandomString(COUNT_OF_CHARS,LIST_OF_CHARS,) + '.' + RandomString(COUNT_OF_CHARS,LIST_OF_CHARS,)
We can specify how many characters it should contain using function ${__Random(MIN,MAX,)}
So finaly it may look like:
${__RandomString(${__Random(3,9,)},abcdefghijklmnopqrstuvwxyz,)}@${__RandomString(${__Random(2,3,)},abcdefghijklmnopqrstuvwxyz,)}.${__RandomString(${__Random(2,3,)},abcdefghijklmnopqrstuvwxyz,)}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With