Report this

What is the reason for this report?

Hi I recorded jmeter script when i try to run it is not working exactly like manually

Posted on January 15, 2018

not getting any error message but it is not working exactly like manually script.Not able to see response for few transactions after executing.If suppose for 5 users i am adding party it should create 5 partys right?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

To help you diagnose the issue and ensure your script is working as it should, I recommend the following steps:

  1. Verify correlation and dynamic parameters: Ensure that you’ve properly handled any dynamic parameters and correlated values in your JMeter script. These values might include session IDs, CSRF tokens, or other unique identifiers that change between sessions or users. You’ll need to extract these values using JMeter’s Post-Processors, like the Regular Expression Extractor or JSON Extractor, and then pass them as variables to subsequent requests.

  2. Add Assertions: Incorporate assertions into your JMeter script to validate that each request is generating the expected response. For example, you can use the Response Assertion to check for specific text or patterns in the response, or the JSON Assertion to validate JSON responses.

  3. Examine response data: In JMeter, add a View Results Tree listener to your test plan. This listener will allow you to examine the request and response data for each transaction in your script. Make sure the requests and responses are as expected and investigate any discrepancies.

  4. Configure ramp-up time and pacing: Ensure that your test plan has an appropriate ramp-up time and pacing between requests to avoid overwhelming the server or causing unexpected behavior. You can adjust the ramp-up time in the Thread Group settings and add Timers (like the Constant Timer or Gaussian Random Timer) to control the pacing between requests.

  5. Use the Debug Sampler and Log Viewer: Add a Debug Sampler to your test plan to view the values of JMeter variables and properties during script execution. This can help you identify any issues with variable extraction or usage. Additionally, enable the Log Viewer in JMeter (Options > Log Viewer) to check for any error messages or warnings during script execution.

  6. Parameterize user data: If your script involves actions like creating parties or other user-specific data, make sure you’ve parameterized the data to avoid conflicts between users. Use the CSV Data Set Config or another data source to provide unique data for each user in your test plan.

After following these steps, your JMeter script should better mimic the manual process you’re trying to replicate. If you’re still encountering issues, consider sharing more information about your test plan, the specific requests causing problems, and any relevant server-side logs or error messages to help diagnose the issue further.

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.