简体   繁体   中英

How to load test a registration of account in JMeter?

I would like to ask on how to do a load test using JMeter for registration of account? The requests are already setup on my local with random email and password parameters, then after running the test run it is successful. Unfortunately, when validating the created users, no new user was even created. Is there anyone that can help me with this issue?

Regards,

then after running the test run it is successful

your assumption is wrong. If you don't see any errors it doesn't necessarily mean that the request is not successful. JMeter automatically treats HTTP Status Codes below 400 as successful and doesn't check response data.

A simple example of a pseudo-successful request of JMeter Bugzilla login :

在此处输入图像描述

So if you need to additionally check the presence of content specific for the registered user like "Success" message or "Welcome" text - add Response Assertion to the request and put your pass/fail criteria there.

In the absolutely majority of cases JMeter scripts are not doing what they're supposed to be doing due to:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM