Gabriel
Gabriel

Reputation: 575

jmeter auto create user/password account

I'm trying to use jmeter to simulate 500 usernames/passwords being created on a test site I have. The home page has 3 fields, username,email address, and password. How can I get jmeter to auto-fill those fields? The next question is can jmeter then go to the next page and fill in credit information for example?

Upvotes: 0

Views: 553

Answers (2)

Dmitri T
Dmitri T

Reputation: 168157

JMeter has possibility to use either external pre-defined data or generate some random values.

To use existing username/password/email combinations there are following options:

In regards to "go to the next page", it is also possible given that you have a HTTP Cookie Manager

Remember that JMeter acts on protocol level so you'll need to properly construct HTTP Requests.

The best way to trace execution and visualize requests/responses is using View Results Tree listener.

Upvotes: 1

KitKarson
KitKarson

Reputation: 5647

One thing to note here is JMeter is not like QTP / Selenium. It is not a pure functional testing tool. However, It can be used for functional testing when you know how to use it!

For your question,

  • Record the http requests for creating the user and entering the credit information. Check this for more information. http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
  • Then update the recorded scripts to parameterize the username, password email etc
  • Then you can update the loop count to rerun it again and again to create the data you want to create

JMeter is an excellent tool for performance testing, functional testing and for creating test data etc.

Upvotes: 1

Related Questions