Live data from Hacker News

Hurl 4.0.0

hurl.dev

41–50 of 104 posts

Re: Hurl 4.0.0

#41
post #25

Feedback: The homepage ( https://hurl.dev/ ) doesn't really make it clear - is this an interactive tool or not? If I understand it correctly, you're supposed to save that example as a file and run 'hurl example.hurl'. It would make it easier to understand if that sample code box had a headline saying e.g. [example.hurl].

Noted, I'll try to make it clearer. We’ve been more explicit on the samples page [1]

[1] https://hurl.dev/docs/samples.html

Re: Hurl 4.0.0

#42

Are there use cases beyond testing that anyone here has actually done?

Actually done? No. However, one use-case that i couild think of - beyond testing - would be to modularize some dev work. For example, maybe i have a junior dev who knows some http, but not experienced enough to be a lead dev, or something like that. I could give the junior dev a task like draft up some tech spec...Or, i could have them use their basic http skills and craft Hurl files...one for each function that will inevitably be a function in code...either to be done by a more senior dev, or who knows, maybe this same junior dev could eventually learn to code based on their own hurl files...which someone else might call pseudo-code (or pseudo-code in tech docs)...which eventually gets turned into production code...and those same hurl files can also be turned into test cases.

Anyway, for me, hurl looks like an evolution of curl...which makes sense since its built off of curl (https://hurl.dev/#powered-by-curl). So, for uses-cases that might reach beyond curl, that's when i might reach for hurl as well. No doubt, there could be other use-cases for hurl.

Re: Hurl 4.0.0

#44
post #10

Please make this the industry standard for testing APIs. I'm tired of having to look at Postman screenshots sent from QA. I'm tired of having to wait for them to press Send once I've implemented a fix. I know they're tired of waiting for me to do that, too. Hurl is something both the devs and QA can speak and write. It can be automated and a part of CI. It makes communicating expectations straightforward. It can be c…

I personally like the approach of defining things via an OpenAPI and then using Dredd to validate the spec against itself. Even for tools that generate the spec from source code, it is usually still possible for user error to define the metadata for an endpoint incorrectly. Dredd catches that.

I also think that validating an API against it's OpenAPI schema is a great methodology. You should checkout schemathesis, it's fantastic for doing that.

https://github.com/schemathesis/schemathesis

Re: Hurl 4.0.0

#45
I've been following hurl for sometime. Where it shines from others is that it has its own DSL For testing. It is not only to make http request, but to assert response and capture data. Having said that, and hoping the maintainer is reading this: please please make it such that assertion can passed to an external script. Why am I asking this? Because, an example, you cannot still assert that a property in a collection of items all have the same value (ex.: all titles should be XXX without using nth selector or make it possible to do nth = * ). And proving a DSL for all use cases is kinda huge effort. Would be great to pass the the output of jsonpath to jq for example and if that returns true, the test pass.

Re: Hurl 4.0.0

#46
post #10

Please make this the industry standard for testing APIs. I'm tired of having to look at Postman screenshots sent from QA. I'm tired of having to wait for them to press Send once I've implemented a fix. I know they're tired of waiting for me to do that, too. Hurl is something both the devs and QA can speak and write. It can be automated and a part of CI. It makes communicating expectations straightforward. It can be c…

The bigger problem here is that you have QA, not the lack of tooling.

Re: Hurl 4.0.0

#47
post #28

This is one of the best examples of a modern Unix program I have seen: - It accepts input on stdin - It sends output to stdout - Does not appear to be littered with unicode emoji everywhere - It comes with man pages (and pretty good ones too!) - The hurl file extension is four characters long instead of three, thank goodness we're finally past MS-DOS compatibility concerns! This looks like something I might take seri…

> thank goodness we're finally past MS-DOS compatibility concerns!

and VMS!

Re: Hurl 4.0.0

#48

We at Adaptive[1] extensively use hurl.dev to automate our testing. All our internal product flows are tested via hurl. It is the best thing that we have ever implemented in our org to stabilize the product. Everytime before we deploy, we run bunch of automated tests written in hurl, for onboarding, signups, critical flows etc. That are containerized and can run in parallel. We have been building internal tools aroun…

Does it support OAuth flow out of the box, or do you need hardcoded tokens for that? (I checked the docs, couldn't find anything about it)

Re: Hurl 4.0.0

#49
post #46
post #10

Please make this the industry standard for testing APIs. I'm tired of having to look at Postman screenshots sent from QA. I'm tired of having to wait for them to press Send once I've implemented a fix. I know they're tired of waiting for me to do that, too. Hurl is something both the devs and QA can speak and write. It can be automated and a part of CI. It makes communicating expectations straightforward. It can be c…

The bigger problem here is that you have QA, not the lack of tooling.

The bigger problem here is that you have devs, devs make bugs.

if you don't have devs there are no bugs, problem solved.

Re: Hurl 4.0.0

#50
post #49
post #46

Earlier quoted context omitted.

The bigger problem here is that you have QA, not the lack of tooling.

The bigger problem here is that you have devs, devs make bugs. if you don't have devs there are no bugs, problem solved.

If devs have to do QA themselves, many issues magically disappear.
Post reply on HN