Hi All, I use BrowserMobProxy as a proxy for ChromeDriver to collect data in HAR file and then save it to a file. I use the file as an additional source of information (together with PageSource and Screenshots) when analyzing test results.
Currently If initiate and start an instance of BrowserMobProxy in my Spec class. And I save the HAR to a file in cleanup() method. I wanted to find a way to move the saving HAR to file code from cleanup() method into a CustomReporter class. So whenever a test fails - this report would save HAR file. However I wasn't able to understand how to pass the BrowserMobProxy object into the writeReport() method that does everything in CustomReporter classes. Do you have an idea how this could be done? Regards, Alex -- 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/06b5bdbc-fa5b-4529-b9d6-eb798172e936%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
