Basically our test scenario is about adding a party, so whenever we execute the script, every time it should be able to add a new party. But we are unable to see any party created apart from the one that was created while recording the script. I believe this can probably be a issue of some dynamic value but unable to identify it. We used a reg exp for view states already, And session Id is getting generated in the cookie, so do we need to manage anything for that too.
closed as unclear what you're asking by c32hedge, IAmMilinPatel, Bharat Mane, Nitin Rastogi, NarendraC Jan 24 '18 at 10:28
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
As per 4 Things You Should Never Do with Your JMeter Script guide:
Don’t run the script exactly as you recorded it
After recording your script, there is still some work to do before you run it. It’s necessary to correlate variables, parameterize and add elements, to faithfully simulate users.
So make sure you:
- add HTTP Cookie Manager to your Test Plan
- correlate all dynamic parameters using relevant JMeter Post-Processors
- inspect all request and especially response details using View Results Tree listener - it might be the case your application returns response indicating what went wrong. If not - just make sure JMeter sends the same requests as browser does (apart from dynamic parameters)
- JMeter automatically considers HTTP Status Codes below 400 as successful, it doesn't do any extra checks so if you want JMeter to automatically fail requests which did not generate "parties" - consider adding i.e. Response Assertion to them and define pass/fail criteria.