Vairamuthu
Vairamuthu

Reputation: 568

How can i auto generate username & password in staff enrollment process while running jmeter3.0?

Can you explain step by step process for generating username & password in staff enrollment process while running jmeter3.0. Kindly refer the snapshot.

Upvotes: 0

Views: 1183

Answers (1)

Dmitri T
Dmitri T

Reputation: 168002

You can use __RandomString() function to generate random username and password and store it into JMeter Variables if needed.

For example:

  • ${__RandomString(10,abcdefjhikklmnopqrstuvwxyz0123456789,)} - generates random alphanumeric string of 10 characters
  • ${__RandomString(10,abcdefjhikklmnopqrstuvwxyz0123456789,username)} does the same and stores the result into ${username} variable

Demo:

RandomString demo

See Using JMeter Functions - Part I for a little bit more detailed explanation and instructions on how you can use __RandomString() function to generate random username and passwords

Upvotes: 1

Related Questions