TakeScreenshotOnFailureInterceptor
class TakeScreenshotOnFailureInterceptor(screenshotOptions: ScreenshotOptions = ScreenshotOptions(
format = Bitmap.CompressFormat.PNG,
scale = 1.0f
), description: String = "Screenshot of failure") : CariocaInstrumentedInterceptor
A CariocaInstrumentedInterceptor that triggers a screenshot when the test fails using the configuration provided via screenshotOptions
Parameters
screenshotOptions
the options for the screenshot file
description
the description of the attachment file
Constructors
Link copied to clipboard
constructor(screenshotOptions: ScreenshotOptions = ScreenshotOptions(
format = Bitmap.CompressFormat.PNG,
scale = 1.0f
), description: String = "Screenshot of failure")