StopLocalServer
Hierarchy
- Interaction
- StopLocalServer
Index
Methods
Constructors
Methods
staticifRunning
Stops the server if itโs running. If the server hasnโt been started, this interaction does nothing.
Returns Interaction
instantiationLocation
Returns the location where this Activity was instantiated.
Returns FileSystemLocation
toString
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
becomesWendy clicks on a button
.Returns string
performAs
Parameters
actor: UsesAbilities & CollectsArtifacts & AnswersQuestions
Returns Promise<void>
Constructors
constructor
Parameters
description: string
optionallocation: FileSystemLocation
Returns 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.