Hi list!

I have a Jmeter script with a three-part process on an airline search API:

   1. search for flights
   2. choose a flight at random and attempt to confirm the costing (each
   flight has a unique reference number extracted from the search results via a
   regexp)
   3. if the costing succeeds, book it

I'm only interested in the booking part, but (because of the dire state of
the third party test system I am connecting to), about 80% of costings fail.
This makes for a lot of tedious Ctrl-R hammering before I get to where I
want to be.

Ideally, I'd modify the script to:

   1. Search for flights
   2. Loop through each output from the Regular Expression Extractor,
   costing each one in turn, until one succeeds
   3. Book the one that succeeded

So I need a sort of hybrid between the While controller (to loop until a
costing succeeds) and the ForEach controller (to iterate around the
reference numbers). I can't quite figure out how to do this within JMeter's
existing logic controllers though. Can anyone suggest a solution?

Kind regards,

Richard

Reply via email to