import {TakePhotosOfInteractions} from '@serenity-js/protractor/lib/stage/crew/photographer/strategies'
TakePhotosOfInteractions
Configures the Photographer to take photos (a.k.a. screenshots) when the the Actor in the spotlight performs any Interaction.
This strategy works best when you want the results of your automated tests to become comprehensive living documentation of your system.
Please note that taking screenshots affects the performance of your tests.
Extends:
Method Summary
Protected Methods | ||
protected |
photoNameFor(event: InteractionFinished): string |
|
protected |
shouldTakeAPhotoOf(event: DomainEvent): boolean |
Inherited Summary
From class PhotoTakingStrategy | ||
public |
considerTakingPhoto(event: ActivityStarts | @serenity-js/core/lib/events~ActivityFinished, stage: Stage): * Takes a photo of the web browser held by the Actor in the spotlight. |
Protected Methods
protected photoNameFor(event: InteractionFinished): string source
Params:
Name | Type | Attribute | Description |
event | InteractionFinished |
Returns:
string |
protected shouldTakeAPhotoOf(event: DomainEvent): boolean source
Params:
Name | Type | Attribute | Description |
event | DomainEvent |
Returns:
boolean |