LetsFlow
  • Introduction
  • Tutorial
    • The basics
    • A handshake
    • A conversation
    • A proper introduction
    • Group meeting
    • Quote
  • Cookbook
  • ENGINE
    • Installation
    • Authentication
    • API
    • Services
      • Configuration
      • Messaging
        • ZeroMQ
        • AMQP 0-9-1
        • Webhook
      • Engine service
  • Integration
    • Frontend
      • React
      • Angular
      • Vue
      • Svelte
    • Backend
  • Reference
    • Scenario
      • Actor
      • Action
        • Update instruction
      • State
        • Transition
          • Log
        • Notify
      • Data function
    • Schema
    • Process
      • Current state
      • Previous log
      • Prediction
      • Events
        • Instantiate event
        • Action event
        • Timeout event
  • Libraries
    • Core library
    • JMESPath
    • Test suite
      • Given
      • When
      • Then
        • Assert state
        • Assert actor
        • Assert variable
        • Assert service
        • Assert event
      • Customize
  • Advanced topics
    • Deep integration
    • Decentralized workflows
    • Custom JMESPath functions
    • Custom YAML tags
Powered by GitBook
On this page
  • Actor exists
  • Actor property

Was this helpful?

  1. Libraries
  2. Test suite
  3. Then

Assert actor

Actor exists

Assert that the actor is defined in the process

Then the process has actor "admin"
Then the "main" process has actor "admin"

Specify the key of the actor. By default, the "main" process is used.

Actor property

Check if a property of an actor has the expected value.

Then actor "admin" has "name" is "Joe"
Then actor "admin" in the "main" process has "age" is 42

Then actor "admin" has "address":
   | street | Red street 10 |
   | city   | Amsterdam     |
Then actor "admin" has "pets":
   """yaml
    - dog
    - cat
    - bird
   """

If the property is a string, number, or boolean, it can be given inline. You can use a data table, if the response is a simple object with a shallow structure. For arrays and more complex objects, use YAML or JSON.

PreviousAssert stateNextAssert variable

Last updated 22 days ago

Was this helpful?