-
Notifications
You must be signed in to change notification settings - Fork 487
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
How to do if-then-else during testing #1862
Comments
Supporting a
|
In the Postman world, this is solved with something that boils down to |
This is the current challenge with hurl for me. I love the simplified DSL approach to scripting tests. But we're missing features to enable certain types of testing. Simple conditional logic or branching, full persisted captures for analysis & interrogation and hooks for cleanup. Maybe people have a few tricks to achieve the above. I'd be interested to hear if they do |
|
Will hurl ever see syntax for if-else, or even for-loops? The template language stands too much in the way for expressiveness... |
Hi Greetings,
I'm testing some APIs. sometimes, I need to call an API based on the response of the previous API. For example, in below hurl file, if the user with user_email is not available, I want to skip the DELETE entry.
For now, if I run above hurl file, it complains
I am not sure if I can do this in hurl, or is there a good practice doing this?
BR,Austin
The text was updated successfully, but these errors were encountered: