Skip to main content

externalLog

Instructs the Actor to collect arbitrary static values and answers to answerables, so that they can be sent to the stage crew members and printed to the terminal by the ConsoleReporter or attached to the HTML report by the SerenityBDDReporter.

Logging static and Answerable values

import { actorCalled, Log } from '@serenity-js/core'
import { Page } from '@serenity-js/web'

await actorCalled('Laura').attemptsTo(
Log.the('Current page', Page.current().title(), Page.current().url()),
)

Hierarchy

Index

Methods

staticexternalthe

externalinstantiationLocation

  • instantiationLocation(): FileSystemLocation
  • Returns the location where this Activity was instantiated.


    Returns FileSystemLocation

externalperformAs

externaldescribedBy

  • Resolves the description of this object in the context of the provided actor.


    Parameters

    Returns Promise<string>

externaltoString

  • toString(): string
  • Returns a human-readable description of this object.


    Returns string