I am looking for random user type checkout for our ecommerce website with 2 types of users :
What my question is there will be diff. requests and POST
parameters if I do checkout as guest
and diff. parameters if I do checkout as loggedin user
. So here how to handle it.
Random controller can be used but how can I tell jmeter that if random controller do checkout with guest
then follow X number of requests in test plan otherwise follow Y number of requests for logged in user.
The easiest option would be using If Controller like:
You can distinguish whether user is registered or not via i.e. Regular Expression Extractor
foo
Use the following line in the If Controller condition area for the registered user
"${foo}" != "null"
Use the following line in the If Controller condition area for the guest user
"${foo}" == "null"