Groovy Script of Transaction Log results and details
When running all of the functional tests from within the ReadyAPI UI, you can view a list of steps run across all Suites and Test Cases from the Transaction Log tab. If a step fails (for example a REST Request step), you can click on it to access additional information such as the Raw Request and Raw Response (both shown under the Message Exchange tab).
I would like to log all of the failed steps (specifically if the step is a REST Request) to the Script Log along with some information from those tabs under the Message Exchange tab (Raw Response). I can't seem to figure out how to access that information via a groovy script though. I know I can add some logging within, for example, the Rest Request assertions, but that leaves a lot of room for error as we may forget to add that script to every new test case we write.
Also, it is correct that this type of script would need to exist in the TearDown Script tab?
I'm still struggling to understand the SDK for ReadyAPI (I'm not a developer, but have some general understanding of class structures). Does anyone know if there is a class diagram showing how all these classes are related?