Class Agency

java.lang.Object
net.serenitybdd.core.parallel.Agency

public class Agency
extends java.lang.Object
The Agency keeps track of multiple listeners assigned to different agents (which represent actors or activities), to facilitate parallel execution of test tasks. Agents can run in parallel and are used to group steps reported by the Serenity Event Bus.
  • Constructor Details

    • Agency

      protected Agency()
  • Method Details

    • getInstance

      public static Agency getInstance()
    • registerAgent

      public void registerAgent​(Agent agent)
    • baseListenerFor

      public java.util.Optional<BaseStepListener> baseListenerFor​(Agent agent)
    • dropAgent

      public void dropAgent​(Agent agent)
    • currentAgentSpecificListener

      public java.util.Optional<BaseStepListener> currentAgentSpecificListener()