0

Let's say I run a recorded script for 'New User Registration' function of a web site to evaluate the response time for entire scenario. When I run the recorded script from JMeter, for each registration script, is there a new user record getting created in the application database ?

3 Answers3

0

Yes, if you record registration and correlate it (meaning you create a valid unique name for every request) you will create a real user in your environment.

JMeter is simulating a real scenario which effect your environment.

That is part of the reason JMeter will be executed in different environment than production (as stage)

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
0

Well-behaved JMeter script must represent a real user using a real browser as close as it is possible.

  • Browsers execute HTTP requests and render the response
  • JMeter executes the same HTTP requests but doesn't render the response, instead it records performance metrics like response time, connect time, latency, throughput, etc.

HTTP is a stateful protocol therefore given you execute the same request you will get the same response. So if there are no mistakes in your script it either should create a new user or fail due to non-unique username error.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
0

Yes, if your script accurately represents the full set of data flows associated with the business process, "New User Registration," then the end state of that process should be identical to that of the user behavior so modeled.

A record will be created in the database. If not, then your user is not accurate in its behavior

James Pulley
  • 5,606
  • 1
  • 14
  • 14