# Ask Me Anything: API Testing

**URL:** <https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408>\
**Category:** 🗓️ Events\
**Tags:** ask-me-anything, api-testing\
**Created:** [12 May 2020 19:05 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408 "2020-05-12T19:05:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![heather\_reid](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/heather_reid/32/29_2.png) [@heather\_reid](https://club.ministryoftesting.com/u/heather_reid)\
**Post date:** [12 May 2020 19:05 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/1 "2020-05-12T19:05:06Z")

</div>

Tonight we were joined by the fabulous @g33klady for an Ask Me Anything all about API Testing.

I’ll add all the resources mentioned in the webinar to this thread along with any questions we don’t get to. If I miss any resources or you thought of a question you’d like to add, why not add it to this thread?

If you missed the live session, a recording will be available on the [Ministry of Testing website](https://www.ministryoftesting.com/dojo/series/testing-ask-me-anything) for all Club level members once we’ve edited it and added captions.

---

<div class="post-metadata">

**Author:** ![heather\_reid](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/heather_reid/32/29_2.png) [@heather\_reid](https://club.ministryoftesting.com/u/heather_reid)\
**Post date:** [12 May 2020 20:12 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/2 "2020-05-12T20:12:13Z")

</div>

## Resources mentioned in the AMA

If you want to join or create API testing discussions here on The Club, head to [the API testing category](https://club.ministryoftesting.com/c/all-testing-talk/api/99)

Hilary’s TestBash talk that Vernon mentioned  
[https://www.ministryoftesting.com/dojo/lessons/spying-on-your-application-how-to-be-a-super-sleuth-tester-hilary-weaver-robb?s\_id=202407](https://www.ministryoftesting.com/dojo/lessons/spying-on-your-application-how-to-be-a-super-sleuth-tester-hilary-weaver-robb?s_id=202407)

> **[Charles Web Debugging Proxy • HTTP Monitor / HTTP Proxy / HTTPS & SSL...](https://www.charlesproxy.com/)**
>
> Charles Web Debugging Proxy - Official Site

> **[Web Debugging Proxy and Troubleshooting Tools | Fiddler](https://www.telerik.com/fiddler)**
>
> Explore Fiddler's web debugging tools and proxy solutions to debug, mock, capture, and modify web and network traffic.

> <https://twitter.com/techgirl1908/status/1259178675037106176>

Pop a unicode snowman into your API and see what happens [http://unicodesnowmanforyou.com/](http://unicodesnowmanforyou.com/)

> **[Postman: The World's Leading API Platform | Sign Up for Free](https://www.postman.com/)**
>
> Accelerate API development with Postman's all-in-one platform. Streamline collaboration and simplify the API lifecycle for faster, better results. Learn more.

> **[The World’s Most Popular API Testing Tool | SoapUI](https://www.soapui.org/)**
>
> SoapUI is the world’s most widely-used automated testing tool for SOAP and REST APIs. Write, run, integrate, and automate advanced API Tests with ease. See why millions of users trust SoapUI for testing their APIs today!

> [@Getting started with testing APIs](https://club.ministryoftesting.com/t/getting-started-with-testing-apis/10852):
>
> If someone asked you “How would I get started with testing APIs?” what would be the first thing that springs to mind for you? For me it’s either [30 Second APIs](https://dannydainton.com/2017/05/15/30-second-apis/amp/) by @daniel.dainton or [Restful-Booker](http://www.mwtestconsultancy.co.uk/api-testing-demo/) from @mwinteringham. I recently took Marks Web Services training course where we got to use Restful-Booker and I found it to be a great resource. When I’m trying something new, I always like to have a sandbox to try it in first. Maybe you have more than one resource that is your go to, I know I do …

How to choose API testing tools [Search results for 'api testing tools' - The Club: Software Testing & Quality Engineering Community Forum | Ministry of Testing](https://club.ministryoftesting.com/search?q=api%20testing%20tools)

Restful booker from @mwinteringham [https://restful-booker.herokuapp.com/](https://restful-booker.herokuapp.com/)

some exercises for getting started with pytest and the requests library in Python: [GitHub - j19sch/building-an-api-testing-framework: Learn to build an API testing framework in Python](https://github.com/j19sch/building-an-api-testing-framework)

> **[OWASP API Security Project | OWASP Foundation](https://owasp.org/www-project-api-security/)**
>
> The API Security project focuses on strategies and solutions to understand and mitigate the unique vulnerabilities and security risks of Application Programming Interfaces (APIs)

Danny Daintons Postman guide [GitHub - DannyDainton/All-Things-Postman: A selection of examples using Postman REST Client](https://github.com/DannyDainton/All-Things-Postman)

@ezagroba shared in case you haven’t memorized http status codes [https://httpstatuses.com/](https://httpstatuses.com/)

## Questions we didn’t get to

1. Is it wrong to make my suite’s tests dependent on each other?
2. what is the best way to structure api endpoint tests with ~300 endpoints in your repository? many of the calls are divided in get, post, patch, delete calls and there are also different endpoints for lists and single objects? Each should be tested against JSON Schema and data param-values for ex. thank you
3. The automation pyramid is made up of the unit layer, api layer and the UI layer. I know the difference between each of these layers - how do you decide what tests scenarios should be covered in the GUI layer and what should be covered in the API layer?
4. is soap ui used even now or been replaced by postman
5. Any specific tool to check which APIs are used in app. Also, how to know which APIs are triggered upon app activity (eg: App Launch) and the time taken. I use Charles Proxy.
6. how different is swagger tool, is it more popular than postman, difference between the two
7. Have you used any tools that automatically create tests from a Swagger json? How useful have you found them?
8. How do API tests of different types usually sit within the “software testing pyramid” for you? In particular, testing APIs/services that should integrate to give particular behaviour vs. testing an API/service in isolation.
9. How to effectively test multiple interactions between different APIs? Which level of test automation does this fit in?
10. What is the value of doing contract testing (with a tool like PACT) vs. functional testing of API responses?
11. Hello, I am looking for an API testing framework with the following specifications: - tests are written in some scripting language using an IDE - the same functional tests can be used also for performance testing - extensible (ability to mock other interacting components) I am considering: [karate/karate-gatling at master · karatelabs/karate · GitHub](https://github.com/intuit/karate/tree/master/karate-gatling) [https://gatling.io/](https://gatling.io/) [https://locust.io/](https://locust.io/) [GitHub - naver/ngrinder: enterprise level performance testing solution](https://github.com/naver/ngrinder) Any suggestions?  
11.1 John Smith said: we use Karate for GraphQL it is awesome: [GraphQL Testing With Karate - Codemotion Magazine](https://www.codemotion.com/magazine/dev-hub/web-developer/graphql-testing-with-karate/)
12. What are your thoughts on codeless automation platforms such as cloudqa, endtest, etc. ?
13. How do you decide which test cases should be part of the REST API suite and which should be part of the backend integration test suite? Should the tests (REST API and integration) complement each other or there could be some duplication?
14. What approach is better to use: - Creating a custom framework for Feature testing through the API. Which will combine test cases into test scenarios and run them as test runs and will be testing all the layers of the app (HTTP, Logic layer, Data layer) OR use the tool and make an end-to-end testing directory and keep it in the same code repo with the project?
15. what tool should i start with, soap ui or postman as a beginner
16. Can you suggest any open source tools or library for time travel feature?
17. When thinking of end to end testing..may include different service types like Kafka, JMS, REST, etc..what tools would help you build and maintain these tests?
18. Can you add SQL db checks in postman API tests
19. **API testing for Non-technical teams/ beginners** My dev team use postman with lot collections per project. I am from QA team where most of members are not that much technical. What you suggest how we can pick API testing in most efficient way? because developer always suggest their own way, which are most of the time too complex for test team
20. When the develops a new endpoint, he creates an hardcoded endpoint in NGINX for other teams to develop against. Is there a better way? How to make a more multipurpose mock?
21. there are new tables being populated for a change request in my project. can we use api testing for the same, is it not additional efforts since once the testing completes those apis are not going to be used anymore
22. We as a team adopting API testing with a use of mocha and Mountebank. I’m beginner API tester, what would be the best approach to tackle this. What are the pros and cons of such framework? What tool would you recommend for contract testing?
23. We are moving from REST APIs to gRPC APIs. Is there a suggested best tool for testing gRPC?
24. Hi (though I know it’s more commonly used as a performance testing tool) is jmeter a good tool to use for api testing compared to something like soapui?
25. Any tips about mocking proto message?
26. Is there a specific methodology you follow?
27. Hi, which is the best tool to test APIs that are in sequence, Ex, API 1 out is the input of API 2 and API 3. It is better to include each API test into a pipeline by CI or there is a tool that could perform it all alone?
28. What do you think of checking that a json (or xml) schema received is valid? Is it a good strategy to start with?
29. Do you test REST specific post/get/delete/put for some uri?
30. Do you check headers in api testing?
31. Which of these tools do you like for API testing: retrofit2, Apache Http Client, RestAssure, Other?
32. Can a well defined API-testsuite reduce or remove the need for unit tests in a distributed system with well-defined microservices.
33. Can we rely 100% on API tests before releasing a backend application? If yes, how can we make sure that nothing will break in the frontend application?
34. What are your thoughts on GraphQL and related tools e.g. GraphiQL etc? Is this likely to increase in popularity? The POSTMAN support is indeed improving
35. can we do security or performance tests using API?
36. Do you check error texts for 400/401/403/etc? And try to avoid 500 answers from the backend.
37. Why different requests are there? Other than GET and POST.
38. Do you have a pyramid ( kind of ) for testing API based on your personal experience?
39. What does containerization mean for API Testing?
40. What is a soap api?
41. Beginner’s question: key factors to prioritise when you have 200+ end points?
42. Do you use a lot of mock data when automating to validate against? When is it good time to mock or not?
43. Do you have any suggestions on where to go to get API training resources?

## Questions Hilary wanted to come back to

1. Could you please share if you have any “special” API checks which were discovered while testing or after missing a bug? (“special” means-\> you did not think about it previously but after discovering the problem or missing the bug you have started to check )

For the person who had a Graph QL query, maybe @jamesespie can help

> I have been through several API training courses and they all basically show how to structure API requests. I would like to know how to structure tests for a completed GraphQL API. Do you use user journeys (if so how can I confirm all API endpoints have been covered) OR do you create tests for each query and mutation??

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [12 May 2020 20:22 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/3 "2020-05-12T20:22:03Z")

</div>

> [@heather\_reid](#):
>
> Is it wrong to make my suite’s tests dependent on each other?

For me, yes. Automated checks of all types should by atomic, meaning they depend only on themselves. If they depend on other checks/tests, you start to get a maintenance nightmare when something goes wrong

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [12 May 2020 20:28 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/4 "2020-05-12T20:28:21Z")

</div>

**Questions that are unclear or need more context!**  
I’ve grouped together questions I can kinda vaguely answer because I don’t have enough clarity or context on the question itself. Feel free to message me or reply to this with further details!

> [@heather\_reid](#):
>
> what is the best way to structure api endpoint tests with ~300 endpoints in your repository? many of the calls are divided in get, post, patch, delete calls and there are also different endpoints for lists and single objects? Each should be tested against JSON Schema and data param-values for ex. thank you

I’m not sure what you mean by “structure” - do you mean like file structure of your automation, or the structure of the tests/checks themselves?  
That’s a LOT of endpoints for one repository! I guess with file structure, I’d set it up like the api controllers themselves (so files for each endpoint). If you have a lot of checks for each endpoint, maybe divide that up as well - smoke checks (those that don’t make any changes) and functional checks (those that make changes). Definitely have shared utility methods to do the checking for various things, and utilize parameterization where you can. It’s hard to say more specifically without details!

> [@heather\_reid](#):
>
> What approach is better to use: - Creating a custom framework for Feature testing through the API. Which will combine test cases into test scenarios and run them as test runs and will be testing all the layers of the app (HTTP, Logic layer, Data layer) OR use the tool and make an end-to-end testing directory and keep it in the same code repo with the project?

I think they both have their merits. I think there are some details here I’m not getting that would better inform an answer. I hate to say “it depends” but it really does! Feel free to provide more detail and I’ll try to answer better 😃

> [@heather\_reid](#):
>
> Can you suggest any open source tools or library for time travel feature?

I have no idea lol I wish I could time travel… not sure what you’re referring to here unfortunately

> [@heather\_reid](#):
>
> there are new tables being populated for a change request in my project. can we use api testing for the same, is it not additional efforts since once the testing completes those apis are not going to be used anymore

I’m not super clear on the question here, but if you’re just looking to make sure tables are populated and there’s no existing API endpoint, you can query the database (assuming you have access to do so)…

> [@heather\_reid](#):
>
> Is there a specific methodology you follow?

I’m not sure what you mean by methodology here, like functional vs non-functional? All of the above really! An API can and should be tested like any other application.

> [@heather\_reid](#):
>
> Do you test REST specific post/get/delete/put for some uri?

I’m not sure the question here - basic API testing would be testing each available method (GET/POST/PUT/DELETE/PATCH/etc) for a given endpoint, yes.

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [12 May 2020 20:30 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/5 "2020-05-12T20:30:22Z")

</div>

> [@heather\_reid](#):
>
> The automation pyramid is made up of the unit layer, api layer and the UI layer. I know the difference between each of these layers - how do you decide what tests scenarios should be covered in the GUI layer and what should be covered in the API layer?

In the API layer, I’m more looking at business processes and logic, whereas on the GUI layer, I’m looking at user experience as I go through the user processes and flows. These can cross-over a lot, but that’s the general standpoint I start with.

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [12 May 2020 20:37 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/6 "2020-05-12T20:37:22Z")

</div>

> [@heather\_reid](#):
>
> is soap ui used even now or been replaced by postman

I believe SoapUI is still used as Postman doesn’t support SOAP services and those are still out there!

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [12 May 2020 20:39 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/7 "2020-05-12T20:39:05Z")

</div>

**Questions that could use Community input!**  
These are questions I don’t know the answer to - API testing is a huge area, and there’s lots I haven’t done yet 😃 Hopefully the community can answer some of these questions!

> [@heather\_reid](#):
>
> Any specific tool to check which APIs are used in app. Also, how to know which APIs are triggered upon app activity (eg: App Launch) and the time taken. I use Charles Proxy.

Is this for mobile apps? I believe you can do that with Charles, as well as Fiddler - set up a proxy from your device so you can see the traffic on your computer that is going on the device. I’m not a mobile tester, so would love some other ideas here if anyone has them!

> [@heather\_reid](#):
>
> Hello, I am looking for an API testing framework with the following specifications: - tests are written in some scripting language using an IDE - the same functional tests can be used also for performance testing - extensible (ability to mock other interacting components) I am considering: [https://github.com/intuit/karate/tree/master/karate-gatling](https://github.com/intuit/karate/tree/master/karate-gatling) [https://gatling.io/](https://gatling.io/) [https://locust.io/](https://locust.io/) [GitHub - naver/ngrinder: enterprise level performance testing solution](https://github.com/naver/ngrinder) Any suggestions?  
> 11.1 John Smith said: we use Karate for GraphQL it is awesome: [https://www.codemotion.com/magazine/dev-hub/web-developer/graphql-testing-with-karate/](https://www.codemotion.com/magazine/dev-hub/web-developer/graphql-testing-with-karate/)

Great question for the community! I don’t write my API tests for performance testing (we have a separate team that uses their own tools for that), so I’m not sure which would be best. Folks, feel free to chime in on this one!

> [@heather\_reid](#):
>
> What are your thoughts on codeless automation platforms such as cloudqa, endtest, etc. ?

I haven’t used them, but in general I like to see the code I’m working with. “codeless” to me just means configurations that creates code that you can’t see/touch. I prefer to have full control over the automation I’m writing. Maybe other folks in the community have experience with these, though?

> [@heather\_reid](#):
>
> When thinking of end to end testing…may include different service types like Kafka, JMS, REST, etc…what tools would help you build and maintain these tests?

The same tools you’re using to write individual tests should work for end to end as well. I haven’t worked with Kafka so I’m not sure of the nuances there

> [@heather\_reid](#):
>
> When the develops a new endpoint, he creates an hardcoded endpoint in NGINX for other teams to develop against. Is there a better way? How to make a more multipurpose mock?

This isn’t an area that I’m very experienced in - I’ve used mocks in unit tests, but not for developing against. I know there’s a feature in Postman but beyond a brief tutorial I haven’t used it.  
I suggest googling or asking the community!

> [@heather\_reid](#):
>
> We are moving from REST APIs to gRPC APIs. Is there a suggested best tool for testing gRPC?

I have never tested gRPC but I’m sure the community has some great ideas!

> [@heather\_reid](#):
>
> Hi (though I know it’s more commonly used as a performance testing tool) is jmeter a good tool to use for api testing compared to something like soapui?

Unfortunately I’ve never used jmeter so you’d need to ask the community this one!

> [@heather\_reid](#):
>
> Any tips about mocking proto message?

I’m not familiar with proto messages, so I’m not sure how mocking them would differ from mocking otherwise. Maybe the community can help?

> [@heather\_reid](#):
>
> What are your thoughts on GraphQL and related tools e.g. GraphiQL etc? Is this likely to increase in popularity? The POSTMAN support is indeed improving

As I said in the AMA, I haven’t had the opportunity to work in the GraphQL world so I’m not sure. The community could help on this one!

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [12 May 2020 20:41 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/8 "2020-05-12T20:41:20Z")

</div>

> [@heather\_reid](#):
>
> how different is swagger tool, is it more popular than postman, difference between the two

Swagger or OpenAPI is souped-up API documentation that is generated by the code itself. It’s a quick/starter tool for manually testing an API but it’s not customizable as a user. It’s more for a single session at a time, and not saved  
Postman/Insomnia/etc are customizable and you can save those settings and share with your team etc, build automated tests within them, etc

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [12 May 2020 20:43 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/9 "2020-05-12T20:43:04Z")

</div>

> [@heather\_reid](#):
>
> Have you used any tools that automatically create tests from a Swagger json? How useful have you found them?

I have not used any tools that do that. One thing to remember is the Swagger/OpenAPI documentation is generated from the code, and more often comments in the code (not the API code itself). This means it’s not always accurate or up to date.  
They could be a good starting point, but I don’t have any experience.

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [12 May 2020 20:45 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/10 "2020-05-12T20:45:00Z")

</div>

> [@heather\_reid](#):
>
> How do API tests of different types usually sit within the “software testing pyramid” for you? In particular, testing APIs/services that should integrate to give particular behaviour vs. testing an API/service in isolation.

I think of it more like a cloud within a slice of the pyramid, if that makes sense. They all kind of mingle together on that section. Or maybe all side by side? Hope that makes sense!

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [12 May 2020 20:58 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/11 "2020-05-12T20:58:06Z")

</div>

> [@heather\_reid](#):
>
> How to effectively test multiple interactions between different APIs? Which level of test automation does this fit in?

This is certainly still integration testing, in my opinion.  
For how to effectively test them, I would think about it like user stories or flows. That way you can prioritize the testing as well based on priority of those flows/processes.

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [12 May 2020 21:24 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/12 "2020-05-12T21:24:58Z")

</div>

> [@heather\_reid](#):
>
> What is the value of doing contract testing (with a tool like PACT) vs. functional testing of API responses?

Both of these types of testing have their place. Contract testing is done when you’re consuming an API from a 3rd party generally (whether it’s another team, or company). These are good to help you both (provider and consumer) ensure that changes being made by the provider of the API don’t break things the consumer(s) need/use. This is down to things like datatypes as well as the structure of the responses and response code/response body pairings.  
Functional tests actually make sure things still function the way they used to! A provider of an API may or may not make any changes, but we need functional tests to make sure we didn’t screw things up either.

---

<div class="post-metadata">

**Author:** ![heather\_reid](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/heather_reid/32/29_2.png) [@heather\_reid](https://club.ministryoftesting.com/u/heather_reid)\
**Post date:** [13 May 2020 08:04 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/13 "2020-05-13T08:04:50Z")

</div>

@lgibbs captured sketchnotes from the session too!

> <https://twitter.com/Louise_J_Gibbs/status/1260325706162192391>

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [13 May 2020 17:57 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/16 "2020-05-13T17:57:31Z")

</div>

> [@heather\_reid](#):
>
> How do you decide which test cases should be part of the REST API suite and which should be part of the backend integration test suite? Should the tests (REST API and integration) complement each other or there could be some duplication?

I see those as one and the same, so I’m not sure how you’re differentiating here.  
I answered a question during the live AMA about separating tests between API and database, for instance, if that’s what you’re getting at here?  
For that, essentially “it depends” of course, but you need to see what your database is doing vs what the API is doing, and verify they’re doing their things correctly.  
For instance, if a DELETE from the API isn’t actually supposed to delete from the database (it sets a flag in the record, a type of “soft delete”), then you’d want to check both the API and database for that operation. But if it’s really supposed to remove from the database, then an API GET for that same item you deleted would suffice in my opinion.

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [13 May 2020 17:59 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/17 "2020-05-13T17:59:43Z")

</div>

> [@heather\_reid](#):
>
> What approach is better to use: - Creating a custom framework for Feature testing through the API. Which will combine test cases into test scenarios and run them as test runs and will be testing all the layers of the app (HTTP, Logic layer, Data layer) OR use the tool and make an end-to-end testing directory and keep it in the same code repo with the project?

I think they both have their merits. I think there are some details here I’m not getting that would better inform an answer. I hate to say “it depends” but it really does! Feel free to provide more detail and I’ll try to answer better 😃

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [13 May 2020 18:01 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/18 "2020-05-13T18:01:26Z")

</div>

> [@heather\_reid](#):
>
> what tool should i start with, soap ui or postman as a beginner

This depends on the API you’re testing. It looks like postman does support SOAP (which I didn’t think it did), so that might be a good place to start. There are a lot of great tutorials out there, and it’s a pretty well used product so you can get support (on The Club, slack, or twitter) if you’re stuck.

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [13 May 2020 18:02 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/19 "2020-05-13T18:02:03Z")

</div>

> [@heather\_reid](#):
>
> Can you suggest any open source tools or library for time travel feature?

I have no idea lol I wish I could time travel… not sure what you’re referring to here unfortunately

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [13 May 2020 18:04 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/21 "2020-05-13T18:04:46Z")

</div>

> [@heather\_reid](#):
>
> Can you add SQL db checks in postman API tests

That’s something you’d need to Google, I really don’t know. I would assume not - you might need to use SQL Server Management Studio or similar to do that

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [13 May 2020 18:09 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/22 "2020-05-13T18:09:58Z")

</div>

> [@heather\_reid](#):
>
> **API testing for Non-technical teams/ beginners** My dev team use postman with lot collections per project. I am from QA team where most of members are not that much technical. What you suggest how we can pick API testing in most efficient way? because developer always suggest their own way, which are most of the time too complex for test team

First, I think that anyone that works in software is very technical, we just have different specializations!  
I think if they’re not familiar with how APIs work, I’d start there. There are some great courses on The Dojo for that like [https://www.ministryoftesting.com/dojo/courses/introduction-to-http](https://www.ministryoftesting.com/dojo/courses/introduction-to-http) and [https://www.ministryoftesting.com/dojo/courses/the-building-blocks-of-the-internet-mark-winteringham](https://www.ministryoftesting.com/dojo/courses/the-building-blocks-of-the-internet-mark-winteringham)

Once they have that familiarity, I think folks can do some tutorials with a tool like Postman to become familiar with that and how it interacts with the APIs.  
There’s a lot of value in using the same tools as the dev team, so having one of the devs run folks through how things work with your APIs in Postman would help, too.

---

<div class="post-metadata">

**Author:** ![g33klady](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/g33klady/32/734_2.png) [@g33klady](https://club.ministryoftesting.com/u/g33klady)\
**Post date:** [13 May 2020 18:15 UTC](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408/24 "2020-05-13T18:15:05Z")

</div>

> [@heather\_reid](#):
>
> there are new tables being populated for a change request in my project. can we use api testing for the same, is it not additional efforts since once the testing completes those apis are not going to be used anymore

I’m not super clear on the question here, but if you’re just looking to make sure tables are populated and there’s no existing API endpoint, you can query the database (assuming you have access to do so)…

[Next page](https://club.ministryoftesting.com/t/ask-me-anything-api-testing/38408.md?page=2)
