java.lang.Object
net.serenitybdd.screenplay.InParallel
Run a series of Performable tasks in parallel with different actors
-
Method Summary
Modifier and TypeMethodDescriptionvoideachAttemptTo(Collection<Performable> tasks) voideachAttemptTo(Performable... tasks) Have several actors perform a given task in parallel, for example:voidvoidvoidstatic InParalleltheActors(Collection<Actor> actors) Useful if you have a collection or cast of actors.static InParallelPerform the specified tasks in parallel.
-
Method Details
-
theActors
Perform the specified tasks in parallel. For example:InParallel.theActors(johny, gina, jimmy).perform( () -> johnny.attemptsTo(BookFlight.from("New York).to("London")), () -> gina.attemptsTo(BookFlight.from("New York).to("Los Angeles")), () -> jimmy.attemptsTo(BookFlight.from("Sydney).to("Hong Kong")), ); -
theActors
Useful if you have a collection or cast of actors. -
perform
-
perform
-
perform
-
eachAttemptTo
Have several actors perform a given task in parallel, for example:InParallel.theActors(johny, gina, jimmy).eachAttemptTo(BookFlight.from("New York).to("London")); -
eachAttemptTo
-