For this task i have to capture not only month and year but also the entire string starting from i.e < a href using dummy sampler and regular expression extractor can u pls suggest me
You can go for something like:
<a href="(/statement.php\?month=(\d+)&year=(\d+))">
This will result in the following matches:
Match[1][0]=<a href="/statement.php?month=07&year=2018">
Match[1][1]=/statement.php?month=07&year=2018
Match[1][2]=07
Match[1][3]=2018
Demo:
References:
-
for the above task how to Create a two variables , assign month as one variable and year as one variable and Pass these assigned variables into another request.using bean shell post processor and dummy sampler . – Guruganesh Jul 18 '18 at 10:18