Filter for response in the request-response / single read samplers

Issue #260 new
Sergii Iampol created an issue

Current approach assumes getting 1st available response which is not always suitable.

For example if I send a request and waiting for 5 to 10 responses back from the server. I don’t know the order as well as I don’t know the exact amount of possible responses. What I do know is for example some param in the response I'm interesting for (lets say it’s smth like “ID“: 13 - meaning that I'm waiting for that particular response and don’t care about other. For example “ID“: 12 - is the request [LoginRequest] in terms of my app protocol. And “ID“: 13 - is the LoginResponse).

So would be great if I could specify the pattern I’m waiting for in the response. Also great if this pattern could be a regex.

Next is the possible error on am app protocol level. Lets say “ID“: 14 is the LoginError and once I got it - I don’t want to wait for whole Read response timeout to fail that request. So I need to specify similar pattern as for the response I’m waiting for but for the possible error. Again regex is a great plus.

Next about other responses/notifications that may happen before the response/error I’m waiting for. It’s good to have kind of a checkbox that will indicate whether I want to see all those in the Jmeter response for the current request or not. (smth like dump responses)

So if I have this checkbox checked and after sending “ID“: 12 - I got “ID“: 1; “ID“: 2; “ID“: 5; “ID“: 13; “ID“: 7; “ID“: 111 - I should get “ID“: 1; “ID“: 2; “ID“: 5; “ID“: 13; as a response for “ID“: 12 and “ID“: 7; “ID“: 111 remaining in a responses queue.

Such checkbox should cover both response and error pattern (where the response is expected)

Also similar checkbox is a nice to have for the possible unexpected crashes/errors. This is to have a possibility to see all the available responses in case of unexpected crashes.

Comments (2)

  1. Sergii Iampol reporter

    Filters are using for ignoring some messages. In my case I may need several responses for the request.

    Another situation filter doesn’t cover is when I got responses in random order. In such case I can’t exclude some response via filter (since I need it) and at the same time I don’t know when it can may occur

  2. Log in to comment