This could be achieved in the future by adding support for passing a WaitStatisticsListener instance to waitFor() calls. It would be a single abstract method interface which would mean that a closure can be used instead and it would get passed a statistics object after completion of a waitFor() all containing number of tries, waiting time and status so that you could implement any custom logic via such listener.
Please feel free to add an issue for this if you're interested in this being delivered in a future release. On Sat, Jul 16, 2016 at 9:04 PM, Lowery, Jeff <[email protected]> wrote: > I'd like to log the actual response times in stdout. > > On Jul 16, 2016 7:02 AM, "Marcin Erdmann" <[email protected]> > wrote: > >> No, there isn't. What is your use case? >> >> On Fri, Jul 15, 2016 at 5:56 PM, Jeff Lowery <[email protected]> >> wrote: >> >>> if I do: >>> >>> waitFor 10, {…} >>> >>> is there a way to see if it took, for example, 8 seconds? >>> >>> — Jeff >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Geb User Mailing List" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/geb-user/7D3EAD9B-75DE-4398-BA17-FE6BE7B3F2CA%40mavericklabel.com >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Geb User Mailing List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/geb-user/CA%2B52dQQDjF4NfZ8tiwXJhoEctbQma9wp3kLVXi7E%3D5DDcvM_hw%40mail.gmail.com >> <https://groups.google.com/d/msgid/geb-user/CA%2B52dQQDjF4NfZ8tiwXJhoEctbQma9wp3kLVXi7E%3D5DDcvM_hw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Geb User Mailing List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/geb-user/CANHC0Z%2BqQjsM8vHzHAuwFAQEoA9g1wnNOV8dvrMQCoXYo6iuvQ%40mail.gmail.com > <https://groups.google.com/d/msgid/geb-user/CANHC0Z%2BqQjsM8vHzHAuwFAQEoA9g1wnNOV8dvrMQCoXYo6iuvQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/CA%2B52dQQyhLN0ciU9bA7%2B-7hwj2NqCjgGDiznPatfwK2ZcMJxjA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
