Class Stage
java.lang.Object
net.serenitybdd.screenplay.actors.Stage
public class Stage
extends java.lang.Object
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
-
Method Summary
Modifier and Type Method Description boolean
anActorIsOnStage()
Check whether there is any actor in the spotlight at the moment.void
drawTheCurtain()
This method should be called at the end of the screenplay test to perform teardown actions on each actor.Actor
shineSpotlightOn(java.lang.String actorName)
Place an actor with a given name in the spotlight, without the intent to have them perform an action at this time.Actor
theActor()
A shortened form of theActorInTheSpotight()Actor
theActorInTheSpotlight()
Return the current actor in the spotlight.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.
-