Skip to main content

StopLocalServer

Stops the local server. Should be used in afterEach block to make sure that the server is correctly shut down even when the test fails.

Hierarchy

  • Interaction
    • StopLocalServer

Index

Constructors

constructor

  • new StopLocalServer(description: string, location?: FileSystemLocation): StopLocalServer
  • Parameters

    • description: string
    • optionallocation: FileSystemLocation

    Returns StopLocalServer

Methods

staticifRunning

  • ifRunning(): Interaction
  • Stops the server if it’s running. If the server hasn’t been started, this interaction does nothing.


    Returns Interaction

instantiationLocation

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


    Returns FileSystemLocation

toString

  • toString(): string
  • Generates a human-friendly description to be used when reporting this Activity.

    Note: When this activity is reported, token #actor in the description will be replaced with the name of the actor performing this Activity.

    For example, #actor clicks on a button becomes Wendy clicks on a button.


    Returns string

performAs

  • performAs(actor: UsesAbilities & CollectsArtifacts & AnswersQuestions): Promise<void>
  • @inheritDoc

    Parameters

    • actor: UsesAbilities & CollectsArtifacts & AnswersQuestions

    Returns Promise<void>