externalArtifactArchiver
Implements
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externalfileSystem: FileSystem
externaloptionalstage: Stage
The stage this
StageCrewMembershould be assigned to
Returns ArtifactArchiver
Methods
staticexternalstoringArtifactsAt
Instantiates an
ArtifactArchiverstoring artifacts in a givendestination. Thedestinationdirectory will be created automatically and recursively if it doesn't exist.Parameters
externalrest...destination: string[]
Returns StageCrewMember
staticexternalfromJSON
Instantiates an
ArtifactArchiverstoring artifacts in a givenoutputDirectory. TheoutputDirectorywill be created automatically and recursively if it doesn't exist.Parameters
externalconfig: { outputDirectory: string }
externaloutputDirectory: string
Returns StageCrewMember
externalassignedTo
Assigns a
Stageto thisStageCrewMemberParameters
externalstage: Stage
Returns StageCrewMember
externalnotifyOf
Handles
DomainEventobjects emitted by theStageManager.Parameters
externalevent: DomainEvent
Returns void
Stores any artifacts emitted via
ArtifactGeneratedevents on the file system.Note: When using
@serenity-js/html-reporter, you do not need to registerArtifactArchiverseparately — the HTML Reporter handles artifact storage internally.ArtifactArchiveris needed when using@serenity-js/serenity-bddor other reporters that require artifacts to be persisted to disk.Registering Artifact Archiver programmatically
Using Artifact Archiver with Playwright Test
Using Artifact Archiver with WebdriverIO
Using Artifact Archiver with Protractor