Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More explicit chaining of queries #224

Open
vnaydionov opened this issue Jul 25, 2020 · 3 comments
Open

More explicit chaining of queries #224

vnaydionov opened this issue Jul 25, 2020 · 3 comments
Labels
Feature New feature or request Needs Investigation Needs more investigation

Comments

@vnaydionov
Copy link

I'd like to propose an externsion to the testing feature.
Since the spec .yml file essentially maps to a linear chain of calls, it would be useful sometimes to alter the execution order of those queries.

  1. For example, if some call fails an assertion there might not make much sense to run the rest of the call chain. This could be signalled somehow in the tests section.

  2. Another case when further execution may better be stopped is when there's been a problem with computing a variable value from a response.

  3. Yet another thing that might appear useful would be possibility to retry certain call until a user-defined condition is met, maybe specify it in a similar way that assertions are specified. Of course here we would need to be able to set time limits and inter-call delays.

Together these features would allow for more complex scenarios with objects having their state changed by some background tasks.

@supakeen
Copy link
Contributor

supakeen commented Jul 25, 2020

Steering close to a DSL 👍 if it is decided that things will move that way then #51 is probably part of the same change.

@camilamaia camilamaia added the Feature New feature or request label Aug 4, 2020
@camilamaia
Copy link
Member

@vnaydionov I've created a separated issue for the 3rd point: #298

@camilamaia camilamaia added the Needs Investigation Needs more investigation label Oct 8, 2020
@taconi
Copy link
Member

taconi commented Nov 29, 2022

Perhaps can be added a parameter --fail-limit. I can take this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request Needs Investigation Needs more investigation
Projects
None yet
Development

No branches or pull requests

4 participants