HNHacker News
TopNewBestAskShowJobs

ptrthomas

55 karma · joined February 11, 2017

https://karatelabs.io
submissionscomments
ptrthomas··on Show HN: Lama2 - Plain-Text Powered REST API Client for Teams
Congrats on the launch ! I'm the lead dev of Karate[1] and was wondering if you had come across it. I strongly agree with you that collaboration should be via Git and the IDE[2] and that traditional solutions fall short. I hope Karate's syntax passes your "memory friendly" test :) We get regular feedback is that it is easy to read and even non-programmers can pick it up.

One thing I feel we do really well is chaining of HTTP requests. And we have plugins for IntelliJ[3] and Visual Studio Code[4].

Maintaining a tool like this as open-source is a big effort, all the best !

[1] https://github.com/karatelabs/karate

[2] https://www.karatelabs.io/first-class-citizens

[3] https://plugins.jetbrains.com/plugin/19232-karate

[4] https://marketplace.visualstudio.com/items?itemName=karatela...

ptrthomas··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
Very interesting point. I'm aware of the Microsoft UI Automation interface, which at least on Windows I think does exactly this: https://en.wikipedia.org/wiki/Microsoft_UI_Automation - and most Windows UI test-automation tools depend on this.
ptrthomas··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
Thanks! Great to hear this and I completely resonate with your experience. Really appreciate it, we will reach out.
ptrthomas··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
Karate is open-source and will remain so. The IntelliJ plugin and Studio SaaS mentioned in the OP description are optional and you can find the pricing on our site.
ptrthomas··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
Yes in the case of Postman, you need a separate tool (Newman) to run headless or CI in the cloud. In Karate, there is no separate headless-runner, there is just one tool which includes the test-runner. This simplifies things.
ptrthomas··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
When you have a basic API test which makes an HTTP call and validates the response, it is quite simple. We've seen teams get started by just referring to an existing test or example. But you are right, when you start getting into complex business-logic or assertions, you will start using JavaScript. What people seem to like about Karate is that you can start off simple, but the tool can flex as you learn more.
ptrthomas··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
I agree the syntax takes some getting used to. Do pass on to the team that there is an IntelliJ plugin and a VS Code plugin. You can easily call a database or any external system using Java interop: https://stackoverflow.com/a/52714248/143475
ptrthomas··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
To be honest my experience with Storybook is limited, and I see it more specialized for design-system consistency and review. Karate is a generic browser automation framework, which can do cross-browser testing. With some tweaks it could possibly complement Storybook, for instance, here is an example of an accessibility test-report: https://twitter.com/getkarate/status/1338892932691070976

Thanks for the pointer, we will certainly explore the possibilities here!

ptrthomas··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
Thank you for your support!
ptrthomas··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
Postman is a "UI driven" tool, it is great for exploratory testing of APIs and sharing the knowledge on how you call an API (e.g. collections) with others.

But Karate tests are scripts that can be checked into version-control just like any other code in your team.

Karate allows you to write hybrid tests, which means you can switch between API calls and UI actions within the same test script. You can also re-use API tests as performance tests with Karate. Tests are executed in parallel and you get a single HTML report.

Finally, in my opinion - the assertions that Karate gives you out of the box for complex JSON payloads are hard to beat.

ptrthomas··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
Thanks Uday!
ptrthomas··on Launch HN: Axiom (YC W21) – No-code browser automation a.k.a. RPA for everyone
Thanks, that makes sense
ptrthomas··on Launch HN: Axiom (YC W21) – No-code browser automation a.k.a. RPA for everyone
> We built Axiom on a pretty popular framework, Puppeteer, which requires desktop binaries to run. This means you need an Electron app, too.

I thought it was Playwright that depends on patched browser binaries and that Puppeteer works with stock Chrome and does not need Electron. Can you clarify, just trying to learn here.

ptrthomas··on Karate: Test Automation Made Simple
see my other comment: https://news.ycombinator.com/item?id=24183517
ptrthomas··on Karate: Test Automation Made Simple
Common question, addressed here: https://hackernoon.com/yes-karate-is-not-true-bdd-698bf4a9be...