jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Schumacher <felix.schumac...@internetallee.de>
Subject Re: Passing values from regular expression
Date Thu, 22 Jun 2017 05:36:39 GMT


Am 21. Juni 2017 18:31:43 MESZ schrieb praveen tiwari <praveentiwari5@gmail.com>:
>Hi All,
>
>I have a scenario as below and seeking for help on same.
>
>I have a request and it's response contains data as below which I am
>able
>to extract using regular expression:
>
>For
>Fare 1

What is fare? I don't understand it?

>ABC 1, ABC 1, ABC 1 (multiple times)
Is ABC 1, ABC 1, ABC 1 already multiple times, or is it three times x ABC 1

Maybe you could give a more concrete example with?

>XYZ 1, XYZ 1, XYZ 1  (multiple times)
>
>Fare 2
>ABC 2, ABC 2, ABC 2 (multiple times)
>XYZ 2, XYZ 2, XYZ 2  (multiple times)
>
>Fare n
>ABC n, ABC n, ABC n (multiple times)
>XYZ n, XYZ n, XYZ n  (multiple times)
>
>Required scenario is:
>when I am getting fare 1, I need to select ABC 1 and XYZ 1.
>when I am getting fare 2, I need to select ABC 2 and XYZ 2.
>when I am getting fare n, I need to select ABC n and XYZ n.
>
>Problem I am facing is I am able to fetch "fare n" but when same number
>(n)
>is applied on ABC/XYZ in regular expression (templates), I am getting
>value
>from different fare section. e.g if I consider fare 2 (defined number
>in
>regexp template is 2), I am getting 2nd value from Fare 1 (ABC 1 and
>XYZ 1
>which is at 2nd position).

I don't understand the description. Could you give the concrete regex and templates you are
using?

Regards,
 Felix

>
>Any help with implementation of above login would be highly
>appreciated.
>If required more details, please let me know.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message