page refresh till specific string appears

35 views
Skip to first unread message

riyaz shaik

unread,
Oct 5, 2023, 4:23:58 AM10/5/23
to jmeter-plugins
Hi,
I want to refresh order history page till my latest order id reflects. And it should show one sample only in aggreagte report for all refreses. I extracted order id from submit order page. how can i achieve same. I tried loop and if controllers not working even through it works it is generating multiple samples for all.
    Thanks in advance.
Thanks,
Riyaz.

Dmitri T

unread,
Oct 5, 2023, 9:49:17 AM10/5/23
to jmeter-plugins
I think you need a While Controller, it will repeat its child(ren) until the condition evaluates to "true". In your case you could use i.e. __jexl3() function configured like:

${__jexl3("${variable-holding-full-or-partial-response-of-the-request-which-does-refresh}".contains("${variable-holding-order-id}"),)}

So you need to extract full (or partial) response into a JMeter Variable using Regular Expression Extractor or Boundary Extractor and use the above condition to check whether the response contains the order ID you're looking for.
Reply all
Reply to author
Forward
0 new messages