2

In JMeter, I have recorded a script in HTTP test script recorder and generated a test script. I'm passing 10 users into the thread group.

In the view result tree, I get the result for the 10 users, but I want to check the response time for each user.

enter image description here

How can I identify the individual user response times?

2 Answers 2

2

You can do this as follows:

  1. Add __threadNum() function as a prefix (or postfix) for all HTTP Request samplers like:

    HTTP Request User: ${__threadNum}
    

    This way JMeter will append current virtual user number to sampler name (label)

    JMeter Append User ID to sampler

  2. Once done you will be able to use Filter Results Tool to filter the results to only that user you are particularly interested in.

    Filter results tool can be installed using JMeter Plugins Manager

    JMeter Plugins Manager Filter Results Tool

1

You can use the "View Results in Table" listener. Here, you can select all rows (Ctrl+A) and then copy/paste all the data into an excel sheet. Now, you need to filter by column "Thread Name". The number in Thread Group value (i.e. 1-2) represents the sent request for the corresponding "virtual user". After the filter is applied, you can sort all records and the result will be requests per user with all statistic data available.

enter image description here

EDIT: A better solution would be to use Simple Data Writer and add it to your test group. I am not sure how it's configured by default but you can select all necessary data you want to extract from the "Configure" button. In my case I created a .csv file and when I open it, I can sort the requests by user (column threadName). Here's a screenshot: enter image description here

1
  • While this is a valid answer, could you please expand on it to explain how the results in table listener will display individual user response times?
    – Kate Paulk
    Feb 14, 2018 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.