Repository navigation
ISSUE-800 # Allow a minimal echo step without url and assertions - #801
Merged
authorjapps merged 3 commits intoOct 24, 2026
Merged
Conversation
A step without a url makes no call and returns its request, and when it has no assertions, verify or validators it passes without comparing anything. Steps that make a real call still fail without assertions.
authorjapps
approved these changes
Oct 24, 2026
authorjapps
approved these changes
Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow a minimal echo step without url and assertions
Fixed Which Issue?
Allow a minimal "echo" step without url, operation and assertions #800
Motivation and Context
A step with an empty
urlandoperationmakes no call and returns itsrequestas its response, which is handy for keeping values for later steps. Until now it only worked ifurl,operationandassertionswere all written out, even when empty. This lets the step be just anameand arequest:{ "name": "store_ids", "request": { "orderId": 1001 } }Two changes in
ZeroCodeMultiStepsScenarioRunnerImpl:urlomitted:executeApitreats a missingurlas empty. Before, resolving the null url threw aNullPointerException.assertionsomitted:compareStepResultspasses a step without comparing anything when it makes no call (ApiType.NONE) and has noassertions,verifyorvalidators. Before, the missing assertions were compared asnullagainst the echoed request and the step failed.Everything else behaves as before:
"url": "","operation": ""and"assertions": {}are unchanged.assertionsis omitted. I left that open question from the issue alone.urlbut nooperationwas already an echo step (no call is made). If it also has noassertions, it now passes instead of failing.The doc site update is for a separate PR, as the issue says.
Checklist:
1. New Unit tests were added
ZeroCodeMultiStepsScenarioRunner_EchoStepTestrunse2e/EchoStepShortFormwith two scenarios underintegration_test_files/echo_step/:nameandrequest, reads them back in a step withouturl/operation, and in one with the empty values. It passes.MimeTypeConverter.jsonBlockToJson) with noassertionsstill fails.NullPointerException.2. Integration tests were added
3. Test names are meaningful
4. PR doesn't break any of the earlier features for end users
mvn -pl core testruns 457 tests. The only failures areDbSqlExecutorScenarioPostgresTest, which needs a running Postgres, andKafkaFileRecordHelperTest.test_dodgyFile, and both fail the same way onmasterin my environment.5. PR doesn't break the HTML report features directly
6. PR doesn't break any HTML report features indirectly
7. Branch build passed in CI
8. No 'package.*' in the imports
9. Relevant Documentation page added or updated: not in this PR, per the issue, the doc site goes in a separate PR.
10.1 Not applicable. The changes did not affect HTTP automation flow
11.1 Not applicable. The changes did not affect Kafka automation flow
Disclosure
I prepared this with help from an AI coding assistant (Claude Code), reviewed the change myself, and ran the tests above.