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
  • Variables
  • Result
  • Tags
  • Inverse

Was this helpful?

  1. Libraries
  2. Test suite
  3. Then

Assert variable

PreviousAssert actorNextAssert service

Last updated 22 days ago

Was this helpful?

Variables

Assert that a (vars) has the expected value.

Then variable "price" is 100
Then variable "price" in the "main" process is 100

Then variable "requirements" is:
   """
   The product should be good and cheap.
   It must not break
   """
Then variable "address" is:
   | street | Red street 1 | 
   | city   | Amsterdam    |

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.

Result

Assert that the has the expected value.

Then the result is "Foo Bar"
Then the "main" process result is "Foo Bar"

Then the process ended with:
   | document    | somedoc.pdf |
   | description | Foo Bar     |
Then the process ended with:
   """yaml
     documents:
       - quote.pdf
       - plan.pdf
   """

The value can be given inline or as data table, YAML or JSON.

Tags

Then the process has tag "approved"
Then the "main" process has tag "approved"

Inverse

Assert that the process doesn't have a specific tag.

Then the process doesn't have tag "denied"

Assert that the process has a specific .

process variable
process result
tag