Skip to content

Allow a minimal "echo" step without url, operation and assertions #800

Closed

Description

@authorjapps

Summary

A step with an empty url and operation makes no call. It returns its request as the response. Scenarios use it to hold values for later steps, e.g. ${$.signup.request.role}. Today the step only works if url, operation and assertions are all written out, even though they are empty:

{
    "name": "vars",
    "url": "",
    "operation": "",
    "request": {
        "role": "ADMIN"
    },
    "assertions": {}
}

This issue proposes that the short form below works the same way:

{
    "name": "vars",
    "request": {
        "role": "ADMIN"
    }
}

Problem

Checked on master (with a throwaway scenario run by TestOnlyZeroCodeUnitRunner):

Something like this is the current behaviour:

Step written as Result
url: "", operation: "", assertions: {} OK
operation left out (url: "", assertions: {}) OK
url left out Fails with NullPointerException
assertions left out Fails the assertion

Proposal

1. A step without url is an echo step (same as "vars" step above)

operation can already be left out, so nothing changes there.

2. An echo step without assertions has no assertions

If an echo step has no assertions (and no validators/verify), it passes without comparing anything, as "assertions": {} does today.

3. Behaviour

  • Backwards compatible. Steps that already have "url": "", "operation": "" and "assertions": {} behave the same.
  • Steps that make a call are unchanged. Leaving out assertions on an HTTP, Java or Kafka step still fails as it does today. Whether that should change is a separate question (see "Open question").

Tests

  • Make sure backward compatibility is maintained.

Docs

  • Document the echo step (no url = no call, response = request) with the short form above.
  • Mention that operation and assertions can be left out for it.
  • Update doc site via a separate PR

Activity

  1. authorjapps commented on Oct 24, 2026

    @authorjapps
    OwnerAuthor

    Thanks anyingiit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions