java.lang.Object
net.serenitybdd.screenplay.actors.Stage
The stage keeps track of the actors currently in a screenplay test, referenced by name.
You rarely need to use this class directly in your tests. Normally you would use the OnStage class instead.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck whether there is any actor in the spotlight at the moment.voidThis method should be called at the end of the screenplay test to perform teardown actions on each actor.shineSpotlightOn(String actorName) Place an actor with a given name in the spotlight, without the intent to have them perform an action at this time.theActor()A shortened form of theActorInTheSpotight()Return the current actor in the spotlight.
-
Constructor Details
-
Stage
-
-
Method Details
-
shineSpotlightOn
Place an actor with a given name in the spotlight, without the intent to have them perform an action at this time. -
theActorInTheSpotlight
Return the current actor in the spotlight. -
theActor
A shortened form of theActorInTheSpotight() -
drawTheCurtain
public void drawTheCurtain()This method should be called at the end of the screenplay test to perform teardown actions on each actor. It will generally be done automatically by Serenity. -
anActorIsOnStage
public boolean anActorIsOnStage()Check whether there is any actor in the spotlight at the moment.
-