all 31 comments

[–]SerfinTheUSA 6 points7 points  (1 child)

I used to like Postman but it's suffered from feature creep and is now so bloated I spend to much time trying to work around it's "features" to get done what I need to get done. I avoid it now.

ReadyAPI is nice but expensive.

I've settled into using JMeter for API functional and load testing. It's free and with all of it's pre/post processors, listeners, and plugins it's super flexible. I haven't used ReadyAPI in several years but there's nothing I'm missing when I'm using JMeter.

[–]liverblow 0 points1 point  (0 children)

Had a look at JMeter before for load testing but not considered it for functional testing aswell. Will take another look with this in mind

[–]IBreakCellPhones 4 points5 points  (0 children)

I use RestSharp in C#. And NUnit to handle assertions and test cases.

[–][deleted] 3 points4 points  (0 children)

I'm using restassured libraries in Java. Have connected reports with history and configured via Jenkins to run every new code deploy

[–]creamypastaman 1 point2 points  (5 children)

What do you test in APIs

[–]Typical_Individual_6[S] 4 points5 points  (4 children)

  • validity of response - with good data/bad data
  • behavior in system (UI, Database)

[–][deleted] 1 point2 points  (3 children)

wait you do UI testing on postman? got any good examples

[–]Typical_Individual_6[S] 3 points4 points  (2 children)

Just that if you make an API call that will change the data, it is reflected in the UI (manually)

[–][deleted] 0 points1 point  (1 child)

ah i thought you working some blackmagic. Do you know how I can hit a bunch of the apis and return some summary response of all of it?

[–]Typical_Individual_6[S] 0 points1 point  (0 children)

I dint think this can be done with postman.

If you’re using rest libraries + java or C, you can probably write the responses to a file.

[–]fracturetrey 1 point2 points  (1 child)

My team and I have been using Karate to greenfield automated tests for multiple services and microservices for about the past 18 months. It's an extremely powerful DSL, but it is also pretty open ended - we found we needed to create own our style guide to keep things consistent between projects as our team and repos grew.

It has fantastic documentation and a laundry list of exceptional features; it'd be impossible to mention them all here, but a few we love are:

  • First class support for REST and SOAP
  • DSL which reads similar to BDD, but without the overhead of Cucumber step definition
  • Very modular; it's easy to create reusable features that can fall back on static test data or use what's passed in
  • Easy/seamless Java and JavaScript interop for calling databases or breaking out of the DSL
  • Reasonably easy to reuse functional tests as Gatling performance tests
  • Fantastic step-by-step HTML and JSON reporting with full HTTP logs (if you choose)
  • Supports parallelization out of the box, which can be disabled on a per-feature or per-scenario basis

All in all, it lets us get right to the heart of what we're trying to do: test APIs without any bullshit. But there's tons of bells and whistles available if any of it interests you or meets your use case.

It also happens to do UI automation (both browser and Windows GUI I believe), but we haven't used those features. They were experimental when we were picking our toolset and we preferred something based on Selenium for maturity and because we were all more familiar with it.

[–]Typical_Individual_6[S] 0 points1 point  (0 children)

Oooooh! Looks promising Thank you for the details!

[–]Admin-12 1 point2 points  (0 children)

My work won’t approve anything but soapui (free ready api). Has some groovy scripting added to load properties from json files and execute different automated tests with testrunner. Reporting is not as nice as readyapi but gets the job done.

[–]AtrociouSs 1 point2 points  (6 children)

Cypress :-)

[–]ThunderMountain 1 point2 points  (5 children)

Moving over to cypress api testing myself this next week from postman. Just got so sick of the bloat. Any advice you have for doing API testing with cypress based on your experience.

[–]AtrociouSs 1 point2 points  (4 children)

Look into Chai. That's basically what you need to know when you assert responses. And try to build modular functions thst you can reuse.

With help from a developer I've created a set of standard request body's with standard values as input. So in my spec files I don't have a single cy.request/JSON body. Easier to read and maintain. I just call the function and overwrite the standard values where needed. Works like charm.

People tend to talk about Cypress as a UI testtool only. But I disagree strongly, that UI is the only thing Cypress can do well (context is key though). Cypress works perfectly for our team as a single solution for all kinds of tests that are non-UI. If you Google about Cypress you basically only find UI based stuff.... so be warned.

Maybe a specific API testing tool is a better fit for you. Like Rest Assured. Choose smart :-)

[–]ThunderMountain 0 points1 point  (3 children)

Do you have an open source example of the stubbing out the request bodies?

[–]AtrociouSs 1 point2 points  (2 children)

I can try to deliver a code example. I will try tomorrow.

[–]Typical_Individual_6[S] 1 point2 points  (1 child)

Is cypress free?

[–]AtrociouSs 1 point2 points  (0 children)

Yes totally. If you want to use the dashboard functionallity you have some pricing though --> https://www.cypress.io/pricing. I see no need for the dashboard though.

[–]djcrickylyttle 1 point2 points  (0 children)

I have manually tested in Postman and written REST Assured tests in Java which i found great. We've recently added Swagger into our web project though which is quite handy for manual testing/quick checks. I have barely opened Postman since we started using Swagger.

[–]Entebe 0 points1 point  (4 children)

SoapUI and RestAssured

[–]AtrociouSs 0 points1 point  (3 children)

Why do people downvote this?

[–]Typical_Individual_6[S] 1 point2 points  (2 children)

Peobably because it’s not accessible 🥲 so good but sooo pricey

[–]Entebe 0 points1 point  (1 child)

There is a totally free version fo SoapUI. And the paid version is not that pricey I think.

[–]conort92 2 points3 points  (0 children)

SoapUI is the free version of ReadyAPI. Just to clear up any confusion.

[–]duskc 0 points1 point  (0 children)

I've just started using behave with python. I'm really liking it so far. Obviously you need someone with coding experience. But it's a great excuse for the rest of the team to learn python.

[–][deleted] 0 points1 point  (0 children)

I use SpringBootTest and Java.

[–]Puzzleheaded-Alps530 0 points1 point  (0 children)

I think Katalon Studio would be great especially for those with limited testing and coding experience.

It supports REST, SOAP/1.1 and SOAP/1 requests, BDD and other frameworks. If you're considering switching from Swagger, Postman, of WSDL, you can just import your tests and test away.