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
  • State
  • Actor
  • Variables
  • Service
  • Event

Was this helpful?

  1. Libraries
  2. Test suite

Then

PreviousWhenNextAssert state

Last updated 21 days ago

Was this helpful?

Then steps are used to describe an expected outcome or result. They perform an assertion.

State

  • - Assert that the process is in the expected state

  • - Assert that the process is in the expected end state

  • - Assert that a property of the current state has the expected value

Actor

  • - Assert that the actor is defined in the process

  • - Assert that a property of an actor has the expected value

Variables

  • - Assert that a process variable (vars) has the expected value

  • - Assert that the process result has the expected value

  • - Assert that the process has or doesn't have a specific tag

Service

Event

- Assert that a service has (or hasn't) been notified

- Assert that the previous action has failed

- Assert that the previous action was applied successfully

- Assert that there are no failed actions

- Assert that the previous state change was caused by a timeout

Skipped event
Successful event
No skipped events
Timeout event
Actor exists
Actor property
Running state
End state
State property
Process variables
Process result
Tags
Notification