Do virtual users perform actual actions on the website?
If I run a script for creating a user on a website with 1000 virtual users, will 1000 users be created on the website during the run?
If the script is designed properly the answer is yes, but you need to send different data for each virtual user elsewise 1 user will be created and remaining 999 will fail on duplicate user name constraint.
So consider the following:
- Parametrization make sure that each virtual user has some unique parameter. The simplest way is sticking to virtual user's number (1 for 1st thread, 2 - for second, etc. Relevant JMeter's function is __threadNum()
- Correlation - in some cases website requires dynamic mandatory parameter for security or to track where user currently resides. See Correlation in JMeter for details and howto.
- Real Browser Simulation - it is important to configure JMeter to fetch embedded resources like scripts, images, styles, etc, to properly handle browser cookies, to simulate browser cache and headers. To learn how these tips can be implemented see How to make JMeter behave more like a real browser guide.
Thanks. But I ran a script which involves a user logging in, adding an academic program after filling a short form and logging out. But, there was no program created on the site. What wrong must I be doing?
Yes.. provided you have developed the script correctly. Else check for correlation & parameterization
Originally Posted by testingpiso