0

I’m testing a web application with a shopping cart. I want to do a load testing using jmeter. First of all, I recorded a script for the action in which user selects an item and adds it to the shopping cart and submits and completes the order (no payment gateways involved as a testing site). Now If I replay the script with 100 users (Thread count = 100), should it create 100 order requests in the database?

However, I didn’t see jmeter creating any multiple orders in the database in my trial rounds. There’re some failed requests as well. Is my script wrong? Should jmeter create new requests if I do the test correctly?

1 Answer 1

0

Assuming your script implementation is correct it should behave exactly like it would be a real user completes the order using the real browser.

The most common problem is missing or incorrectly implemented correlation. In majority of cases you cannot just replay the recorded script without handling dynamic parameters.

Try running your test scenario with 1-2 users and iterations and inspect request and response details using View Results Tree listener to ensure that your test is doing what it is supposed to be doing.

It could also be a good idea to add Response Assertions so JMeter would check anticipated text presence in the responses and automatically fail the requests if you've landed in the wrong page.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.