Cicada

Cicada

  • Docs
  • Guides
  • API
  • Runners
  • Help

›API

Introduction

  • Quickstart
  • Tests
  • State
  • Actions and Asserts
  • Runners
  • Reports

Guides

  • REST API Guide
  • Async App Guide
  • gRPC Server Guide
  • Kubernetes Guide

API

  • Test
  • Action
  • Assert
  • Config
  • Test Engine
  • Verification

Runners

  • REST Runner
  • SQL Runner
  • Kafka Runner
  • S3 Runner
  • gRPC Runner

Action


actions:
  - type: string (required)
    name: string
    template: string
    executionsPerCycle: int
    secondsBetweenExecutions: float
    storeVersions: bool
    params: Map
    outputs: List[Output]
    asserts: List[Assert]

Action Params

Type

REQUIRED Type of action (See runner's supported action types)

Name

Name of action. If not specified, it will be inferred from the runner's type.

Template

Template string to be rendered into action using the state container

Execution Per Cycle

Number of times for each runner to execute the action during one cycle.

Defaults to 1 execution per cycle

Seconds Between Executions

Number of seconds to wait between each execution for a particular action.

Defaults to 0

Store Versions

Store all results of an action in the state container. If false, will overwrite the last result and store action results as a single value instead of a list.

Defaults to true

Params

Parameters to provide to action (See runner's supported action params)

Outputs

Outputs are used to store extra information from an action call (like an index value or the length of a list returned in action).

The value is stored under the output section of the action in the state container. value is stored as a list if storeVersions is set to true ( Defaults to false)

outputs:
  - name: string (REQUIRED)
    template: string
    storeVersions: bool
    value: Any (REQUIRED)

Asserts

Asserts that run based on the results of the action. JSON returned by runner is compared against element in expected section.

Result of action is available to template section under the key result. Example:

action:
  ...
  asserts:
    - expected: 5
      template: >
        actual: {{ result['items']|length }}

See Asserts for more information.

← TestAssert →
  • Action Params
    • Type
    • Name
    • Template
    • Execution Per Cycle
    • Seconds Between Executions
    • Store Versions
    • Params
    • Outputs
    • Asserts
Cicada
Docs
Getting StartedAPI Reference
More
GitHubStar
Copyright © 2021 Cicada