Skip to content

Howto define a complex Task involving the actor #2326

Discussion options

You must be logged in to vote

Serenity/JS offers a much stronger separation between tasks, interactions and questions than our original implementation in Serenity BDD, as well as a stronger preference towards composition over inheritance:

  • Tasks are typically simple aggregates of other activities, which makes it very easy to move them around, remodel, and re-compose if the workflow changes
  • Interactions are the low-level activities that use Abilities to act on the system, and potentially mutate its state
  • Questions retrieve or transform data, but shouldn't mutate the system, so that you can safely use them in assertion and synchronisation statements

You're, of course, free to implement your tasks using the original inh…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jan-molak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants