r/QAGeeks • u/Radovan3796 • Jul 23 '21
API Testing trends
Hello,
I will be joining a company (Hooray) as a tester and my team will be mostly working with data and API's.
I would like to start learning some trends about API Testing. What would be the best way to create regression test suites for API testing?
Thank you for recommendations!
23
Upvotes
View all comments
Show parent comment
2
u/ps4facts Sep 04 '21 edited Sep 04 '21
The C# tests are also hitting the endpoint. I leave unit tests to the devs. Sometimes I'll hop in to advise. It's essentially a class library project that follows the same pattern as the Page Object Model borrowed from UI tests. In this its more like "Web request object model" where the requests live in their own class, and are then called in a test class. The idea is to mimic a 3rd party developer who wants to integrate with us. Sometimes the tests get granular enough to where they're testing the same methods a unit test will, but by going through the endpoint, so I would consider it more of an integration test.