Skip to main content

CollectsArtifacts

Describes an Actor who can collect Artifacts, such as Photos or JSONData, while the scenario is being executed

Learn more

Implemented by

Index

Methods

Methods

collect

  • collect(artifact: Artifact, name?: Name): void
  • Makes the Actor collect an Artifact so that it can be included in the test report.


    Parameters

    • artifact: Artifact

      The artifact to be collected, such as JSONData

    • optionalname: Name

      The name of the artifact to make it easy to recognise in the test report

    Returns void