JMETER a $ {__ RandomString function which is used to generate email addresses

I tried:

${__ RandomString (qwerty,"@",".com") }  

      

but that's not okay. I wonder how I can generate this type of random email addresses? I haven't added anything to the random variable because I'm not sure if I need to use it.

+7


source to share


2 answers


According to the JMeter Functions Guide , the __RandomString () function takes 3 parameters:

  1. Length of the desired random string
  2. Original characters
  3. If you need to store the generated string into a JMeter variable, you can supply the variable name as the third argument.


Thus, to get a string of 10 letters of the alphabet, you can use the __RandomString function like this:

${__RandomString(10,abcdefghijklmnopqrstuvwxyz,)}

      

+23


source


${__RandomString(${__Random(3,9,)},abcdefghijklmnopqrstuvwxyz,)}@${__RandomString(${__Random(2,3,)},abcdefghijklmnopqrstuvwxyz,)}.${__RandomString(${__Random(2,3,)},abcdefghijklmnopqrstuvwxyz,)}

      



-1


source







All Articles