Search code examples
jmeterjmeter-pluginsjmeter-5.0blazemeter

jmeter, regular expression extractor with parallel controller


Sorry for my poor English, and thank you in advance.

I'm trying to make a thread group that makes jmeter logged in our system. to accomplish this, I need to POST data which contains ID, password, and token.

The token generated every time when the page has opened and hold in hidden value. So, the usual solution which is like GET response, do the regular expression extractor, and make the value variable and POST it later request doesn't work for me. since the token become different from when jmeter GET token and POST it.

Then, I found a parallel controller and this might be a solution for me. but I can't find a way to do it. also, there are no references in my mother language(Japanese). I want POST token to certain login action so I need to do regular expression extractor with parallel controller. then POST the token with ID and password at same time.

I want to know the way of the above or if it's impossible, is there any alternative solution that might work for me.

Thank you a lot for your help.


Solution

  • Don't worry about language at all :) I will add a solution according to how I understand your problem.

    As I understood, your scenario is,

    • We Request a page
    • We will get a response with token
    • We fetch the token and send the next request with the token
    • We will get a response with a different token
    • Need to fetch the new token and send another request

    In this case, I think you are trying to use the first token in all the requests. Without doing that what if you fetch the token per each request?

    The problem with the parallel controller is if you want to fetch the token from a previous request. It might not work.

    Please correct me if I haven't understood the question correctly